Skip to content

Commit 880525d

Browse files
author
Ronald-Mulder
committed
- add / imporve support for rgb coloring
- small changes and fixes
1 parent 9576720 commit 880525d

13 files changed

+129243
-265
lines changed

Installer/Installer.vdproj

Lines changed: 241 additions & 241 deletions
Large diffs are not rendered by default.

PostGIS3DExplorer/Demodata/Demo project 1 - Basisvormen.xml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,25 @@
66
<Query>
77
<Name>Blok</Name>
88
<SQL>select st_astext(&#xD;
9-
(st_dump((st_extrude( st_expand(st_geomfromtext('point(10 10)', 28992), 5, 5), 0, 0, 10)))).geom&#xD;
9+
(st_dump((st_extrude( st_expand(st_geomfromtext('point(10 10)', 28992), 5, 5), 0, 0, 20)))).geom&#xD;
1010
)</SQL>
11-
<FillColor>#80FF80</FillColor>
11+
<Size>1</Size>
12+
<FillColor>Red</FillColor>
1213
<Outline>true</Outline>
1314
</Query>
1415
<Query>
1516
<Name>Lijn</Name>
1617
<SQL>select st_astext(st_geometryfromtext('LINESTRING (10 10 -10, 10 10 20, 15 25 20)'))</SQL>
18+
<Size>1</Size>
1719
<FillColor>Red</FillColor>
1820
<Outline>false</Outline>
1921
</Query>
2022
<Query>
2123
<Name>Cilinder #1</Name>
2224
<SQL>select st_astext(&#xD;
23-
(st_dump(( st_extrude( st_buffer(st_geomfromtext('point(0 20 0)', 28992), 5, 15), 0, 0, 10) ))).geom&#xD;
25+
(st_dump(( st_extrude( st_buffer(st_geomfromtext('point(-20 20 0)', 28992), 5, 15), 0, 0, 10) ))).geom&#xD;
2426
)</SQL>
27+
<Size>1</Size>
2528
<FillColor>Yellow</FillColor>
2629
<Outline>false</Outline>
2730
</Query>
@@ -30,6 +33,7 @@
3033
<SQL>select st_astext(&#xD;
3134
(st_dump(( st_translate( st_extrude( st_buffer(st_geomfromtext('point(0 0 0)', 28992), 2, 15), 0, 0, 30) , 0,0,-10) ))).geom&#xD;
3235
)</SQL>
36+
<Size>1</Size>
3337
<FillColor>Aqua</FillColor>
3438
<Outline>false</Outline>
3539
</Query>
@@ -47,14 +51,32 @@
4751
&#xD;
4852
))).geom&#xD;
4953
)</SQL>
54+
<Size>1</Size>
5055
<FillColor>Lime</FillColor>
5156
<Outline>false</Outline>
5257
</Query>
58+
<Query>
59+
<Name>Query</Name>
60+
<SQL>select &#xD;
61+
ST_AsText(&#xD;
62+
(&#xD;
63+
ST_Dump(&#xD;
64+
ST_Extrude(&#xD;
65+
ST_Buffer(ST_GeometryFromText('POINT(1 1)', 28992), 5),&#xD;
66+
0, 0, 5)&#xD;
67+
)&#xD;
68+
).geom&#xD;
69+
);&#xD;
70+
</SQL>
71+
<Size>6</Size>
72+
<FillColor>#FF8000</FillColor>
73+
<Outline>true</Outline>
74+
</Query>
5375
</Queries>
5476
<PostGISConnection>
5577
<Name>Localhost</Name>
5678
<Host>localhost</Host>
57-
<Database>postgis</Database>
79+
<Database>pg3d</Database>
5880
<Port>5432</Port>
5981
<Schema>wozbag</Schema>
6082
<User_id>postgres</User_id>

PostGIS3DExplorer/Demodata/Demo project 2 - AHN en BAG.xml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ from &#xD;
1111
ahn_sample&#xD;
1212
where &#xD;
1313
classificatie = 2</SQL>
14+
<Size>7</Size>
1415
<FillColor>Yellow</FillColor>
1516
<Outline>false</Outline>
1617
</Query>
@@ -22,8 +23,10 @@ from &#xD;
2223
ahn_sample&#xD;
2324
where &#xD;
2425
classificatie = 2&#xD;
26+
&#xD;
2527
</SQL>
26-
<FillColor>Olive</FillColor>
28+
<Size>6</Size>
29+
<FillColor>Aqua</FillColor>
2730
<Outline>false</Outline>
2831
</Query>
2932
<Query>
@@ -34,6 +37,7 @@ from &#xD;
3437
ahn_sample&#xD;
3538
where &#xD;
3639
classificatie = 6</SQL>
40+
<Size>10</Size>
3741
<FillColor>Fuchsia</FillColor>
3842
<Outline>false</Outline>
3943
</Query>
@@ -45,17 +49,19 @@ from &#xD;
4549
ahn_sample&#xD;
4650
where &#xD;
4751
classificatie = 1</SQL>
52+
<Size>6</Size>
4853
<FillColor>Green</FillColor>
4954
<Outline>false</Outline>
5055
</Query>
5156
<Query>
5257
<Name>Totaal - Pand contouren</Name>
5358
<SQL>select &#xD;
54-
st_AsText( ST_Force3D( ST_ExteriorRing( p.geom )) )&#xD;
59+
st_AsText( st_extrude( ( ST_Force3D( ( p.geom )) ), 0,0,random() * 10) )&#xD;
5560
from &#xD;
56-
pand p&#xD;
61+
groningen.pand p&#xD;
5762
&#xD;
58-
</SQL>
63+
where p.geom &amp;&amp; st_expand(st_geomfromtext('point(233928.46 582078.83)', 28992), 200, 200, 0)</SQL>
64+
<Size>6</Size>
5965
<FillColor>#8080FF</FillColor>
6066
<Outline>true</Outline>
6167
</Query>
@@ -67,6 +73,7 @@ from &#xD;
6773
pand p&#xD;
6874
&#xD;
6975
</SQL>
76+
<Size>6</Size>
7077
<FillColor>#FF0080</FillColor>
7178
<Outline>true</Outline>
7279
</Query>
@@ -85,6 +92,7 @@ and&#xD;
8592
identificatie = '1722100000003767'&#xD;
8693
and&#xD;
8794
classificatie = 6</SQL>
95+
<Size>6</Size>
8896
<FillColor>Red</FillColor>
8997
<Outline>false</Outline>
9098
</Query>
@@ -103,6 +111,7 @@ and&#xD;
103111
identificatie = '1722100000003767'&#xD;
104112
and&#xD;
105113
classificatie = 6</SQL>
114+
<Size>6</Size>
106115
<FillColor>Yellow</FillColor>
107116
<Outline>false</Outline>
108117
</Query>
@@ -139,6 +148,7 @@ from&#xD;
139148
pand&#xD;
140149
where &#xD;
141150
identificatie = '1722100000003767'</SQL>
151+
<Size>6</Size>
142152
<FillColor>Yellow</FillColor>
143153
<Outline>true</Outline>
144154
</Query>
@@ -155,6 +165,7 @@ and&#xD;
155165
identificatie = '1722100000003767'&#xD;
156166
and&#xD;
157167
classificatie = 2</SQL>
168+
<Size>6</Size>
158169
<FillColor>#FF8000</FillColor>
159170
<Outline>false</Outline>
160171
</Query>
@@ -172,12 +183,14 @@ where &#xD;
172183
and&#xD;
173184
classificatie = 2&#xD;
174185
</SQL>
186+
<Size>6</Size>
175187
<FillColor>#80FF00</FillColor>
176188
<Outline>false</Outline>
177189
</Query>
178190
<Query>
179191
<Name>Kabel</Name>
180192
<SQL>select st_astext(st_translate(geom, 0, 0, 5 )) from kabel</SQL>
193+
<Size>6</Size>
181194
<FillColor>Yellow</FillColor>
182195
<Outline>true</Outline>
183196
</Query>
@@ -195,14 +208,26 @@ from &#xD;
195208
ahn_sample&#xD;
196209
where &#xD;
197210
classificatie = 2</SQL>
211+
<Size>6</Size>
198212
<FillColor>Red</FillColor>
199213
<Outline>true</Outline>
200214
</Query>
215+
<Query>
216+
<Name>RGB PointCloud</Name>
217+
<SQL>select &#xD;
218+
st_AsText(geom),&#xD;
219+
r, g, b&#xD;
220+
from &#xD;
221+
public.rgb_sample</SQL>
222+
<Size>6</Size>
223+
<FillColor>#FF8000</FillColor>
224+
<Outline>true</Outline>
225+
</Query>
201226
</Queries>
202227
<PostGISConnection>
203228
<Name>Localhost</Name>
204229
<Host>localhost</Host>
205-
<Database>postgis</Database>
230+
<Database>way2go</Database>
206231
<Port>5432</Port>
207232
<Schema>wozbag</Schema>
208233
<User_id>postgres</User_id>

PostGIS3DExplorer/Demodata/demodata.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ create table public.ahn_sample
77
);
88
copy ahn_sample from '[demodatapath]/ahn_sample.csv' CSV delimiter ';';
99

10+
drop table if exists public.rgb_sample;
11+
create table public.rgb_sample
12+
(
13+
geom geometry(PointZ,28992),
14+
r smallint,
15+
g smallint,
16+
b smallint
17+
);
18+
copy rgb_sample from '[demodatapath]/rgb_sample.csv' CSV delimiter ';';
19+
1020
create index ahn_sample_gidx on public.ahn_sample using gist(geom);
1121

1222
drop table if exists public.pand;
@@ -24,3 +34,9 @@ create table public.kabel
2434
);
2535

2636
insert into public.kabel values (st_GeometryFromText('LINESTRING Z (185764.938985971 594592.399697155 0,185862.536451284 594591.343447531 0)', 28992));
37+
38+
39+
40+
41+
42+

0 commit comments

Comments
 (0)