Implement lod2
This commit is contained in:
parent
366551cf38
commit
9d921da698
|
@ -81,18 +81,18 @@ class CityGml:
|
||||||
if 'lod1Solid' in o['Building']:
|
if 'lod1Solid' in o['Building']:
|
||||||
lod += 1
|
lod += 1
|
||||||
surfaces = self._lod1(o)
|
surfaces = self._lod1(o)
|
||||||
|
else:
|
||||||
for bound in o['Building']['boundedBy']:
|
for bound in o['Building']['boundedBy']:
|
||||||
surface_type = next(iter(bound))
|
surface_type = next(iter(bound))
|
||||||
if 'lod2MultiSurface' in bound[surface_type]:
|
if 'lod2MultiSurface' in bound[surface_type]:
|
||||||
start = datetime.utcnow()
|
start = datetime.utcnow()
|
||||||
lod = 2
|
lod = 2
|
||||||
surfaces = CityGml._lod2(bound)
|
surfaces = CityGml._lod2(bound)
|
||||||
print('lod2 ', surface_type, datetime.utcnow() - start)
|
print('lod2 ', surface_type, datetime.utcnow() - start)
|
||||||
if 'lod3Solid' in o['Building']:
|
if 'lod3Solid' in o['Building']:
|
||||||
lod += 4
|
lod += 4
|
||||||
if 'lod4Solid' in o['Building']:
|
if 'lod4Solid' in o['Building']:
|
||||||
lod += 8
|
lod += 8
|
||||||
|
|
||||||
name = o['Building']['@id']
|
name = o['Building']['@id']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user