This commit is contained in:
Even Rouault 2023-11-26 20:17:38 +01:00
parent bc9a8a6749
commit 1cf6e74667
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D
1 changed files with 3 additions and 1 deletions

View File

@ -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={}):