Skip to content

Commit 27b0c89

Browse files
committed
[UPDATE] Updating the OSM Import node to properly close multipolygon buildings
1 parent e906309 commit 27b0c89

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

otls/sop_osm_import.hda/INDEX__SECTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Inputs: 0 to 0
1010
Subnet: true
1111
Python: false
1212
Empty: false
13-
Modified: Wed Oct 16 13:35:09 2019
13+
Modified: Tue Nov 19 17:15:56 2019
1414

Binary file not shown.

otls/sop_osm_import.hda/gamedev_8_8Sop_1sop__osm__import/Contents.dir/Contents.mime

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Content-Type: text/plain
3232

3333
sopflags sopflags =
3434
comment ""
35-
position -1.71302 1.95059
35+
position 1.06805 0.372682
3636
connectornextid 1
37-
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
37+
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
3838
outputsNamed3
3939
{
4040
0 "output1"
@@ -47,8 +47,8 @@ inputs
4747
}
4848
stat
4949
{
50-
create 1571246526
51-
modify 1571247218
50+
create 1574181344
51+
modify 1574201750
5252
author MAINGEAR@DESKTOP-P98C1VA
5353
access 0777
5454
}
@@ -81,9 +81,9 @@ Content-Type: text/plain
8181

8282
sopflags sopflags =
8383
comment ""
84-
position -2.68731 8.21972
84+
position -2.68731 10.914
8585
connectornextid 1
86-
flags = lock off model off template on footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
86+
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
8787
outputsNamed3
8888
{
8989
0 "output1"
@@ -97,7 +97,7 @@ inputs
9797
stat
9898
{
9999
create 1500592402
100-
modify 1556832904
100+
modify 1574201674
101101
author Luiz@Luiz-PC
102102
access 0777
103103
}
@@ -354,15 +354,20 @@ class OSMParser(object):
354354
is_building = 1
355355

356356
if is_building:
357-
for member in relation.members:
357+
for member in relation.members:
358358
if member in polys:
359359
poly = polys[member]
360+
poly.setIsClosed(1)
360361
for tag in relation.tags:
361362
clean_value = relation.tags[tag].encode(\"utf-8\")
362363
if tag == \"name\":
363364
poly.setAttribValue(\"hou_name\", clean_value)
364365
else:
365366
poly.setAttribValue(tag, clean_value)
367+
368+
369+
370+
366371

367372

368373
# Marked Nodes
@@ -465,9 +470,9 @@ Content-Type: text/plain
465470

466471
sopflags sopflags =
467472
comment ""
468-
position -2.68731 7.14366
473+
position -2.68731 8.93206
469474
connectornextid 2
470-
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
475+
flags = lock off model off template off footprint off xray off bypass off display on render on highlight off unload off savedata off compress on colordefault on exposed on
471476
outputsNamed3
472477
{
473478
1 "output1"
@@ -483,7 +488,7 @@ inputs
483488
stat
484489
{
485490
create 1508267018
486-
modify 1548951305
491+
modify 1574201708
487492
author Luiz@Luiz-PC
488493
access 0777
489494
}
@@ -885,7 +890,7 @@ Content-Type: text/plain
885890

886891
sopflags sopflags =
887892
comment ""
888-
position -2.68731 6.09934
893+
position -2.68731 6.99354
889894
connectornextid 1
890895
flags = lock off model off template off footprint off xray off bypass off display off render off highlight off unload off savedata off compress on colordefault on exposed on
891896
outputsNamed3
@@ -902,7 +907,7 @@ inputs
902907
stat
903908
{
904909
create 1522783210
905-
modify 1544806806
910+
modify 1574201704
906911
author MAINGEAR@DESKTOP-P98C1VA
907912
access 0777
908913
}

0 commit comments

Comments
 (0)