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