Skip to content

Commit

Permalink
[UPDATE] Updating the OSM Import node to properly close multipolygon …
Browse files Browse the repository at this point in the history
…buildings
  • Loading branch information
lkruel committed Nov 19, 2019
1 parent e906309 commit 27b0c89
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion otls/sop_osm_import.hda/INDEX__SECTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Inputs: 0 to 0
Subnet: true
Python: false
Empty: false
Modified: Wed Oct 16 13:35:09 2019
Modified: Tue Nov 19 17:15:56 2019

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Content-Type: text/plain

sopflags sopflags =
comment ""
position -1.71302 1.95059
position 1.06805 0.372682
connectornextid 1
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
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
outputsNamed3
{
0 "output1"
Expand All @@ -47,8 +47,8 @@ inputs
}
stat
{
create 1571246526
modify 1571247218
create 1574181344
modify 1574201750
author MAINGEAR@DESKTOP-P98C1VA
access 0777
}
Expand Down Expand Up @@ -81,9 +81,9 @@ Content-Type: text/plain

sopflags sopflags =
comment ""
position -2.68731 8.21972
position -2.68731 10.914
connectornextid 1
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
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
outputsNamed3
{
0 "output1"
Expand All @@ -97,7 +97,7 @@ inputs
stat
{
create 1500592402
modify 1556832904
modify 1574201674
author Luiz@Luiz-PC
access 0777
}
Expand Down Expand Up @@ -354,15 +354,20 @@ class OSMParser(object):
is_building = 1

if is_building:
for member in relation.members:
for member in relation.members:
if member in polys:
poly = polys[member]
poly.setIsClosed(1)
for tag in relation.tags:
clean_value = relation.tags[tag].encode(\"utf-8\")
if tag == \"name\":
poly.setAttribValue(\"hou_name\", clean_value)
else:
poly.setAttribValue(tag, clean_value)






# Marked Nodes
Expand Down Expand Up @@ -465,9 +470,9 @@ Content-Type: text/plain

sopflags sopflags =
comment ""
position -2.68731 7.14366
position -2.68731 8.93206
connectornextid 2
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
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
outputsNamed3
{
1 "output1"
Expand All @@ -483,7 +488,7 @@ inputs
stat
{
create 1508267018
modify 1548951305
modify 1574201708
author Luiz@Luiz-PC
access 0777
}
Expand Down Expand Up @@ -885,7 +890,7 @@ Content-Type: text/plain

sopflags sopflags =
comment ""
position -2.68731 6.09934
position -2.68731 6.99354
connectornextid 1
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
outputsNamed3
Expand All @@ -902,7 +907,7 @@ inputs
stat
{
create 1522783210
modify 1544806806
modify 1574201704
author MAINGEAR@DESKTOP-P98C1VA
access 0777
}
Expand Down

0 comments on commit 27b0c89

Please sign in to comment.