ogr_CityJSON.py: improve identify() to recognize https://3d.bk.tudelft.nl/opendata/cityjson/3dcities/v2.0/9-284-556.city.json [ci skip]
This commit is contained in:
parent
bc9a8a6749
commit
1cf6e74667
|
@ -154,7 +154,9 @@ class Dataset(BaseDataset):
|
|||
class Driver(BaseDriver):
|
||||
def identify(self, filename, first_bytes, open_flags, open_options={}):
|
||||
return (
|
||||
b'"type":"CityJSON"' in first_bytes or b'"type": "CityJSON"' in first_bytes
|
||||
b'"type":"CityJSON"' in first_bytes
|
||||
or b'"type": "CityJSON"' in first_bytes
|
||||
or first_bytes.startswith(b'{"CityObjects":{')
|
||||
)
|
||||
|
||||
def open(self, filename, first_bytes, open_flags, open_options={}):
|
||||
|
|
Loading…
Reference in New Issue