opencitymodel / opencitymodel

Open citygml data for the United States
224 stars 22 forks source link

why are CityJSON files not zipped too? #9

Closed hugoledoux closed 5 years ago

hugoledoux commented 5 years ago

Also, now it looks like that the GML files are smaller, while they are ~6X larger.

Thanks for building this!

agilliland commented 5 years ago

Hi @hugoledoux , thanks for the question. The principle reason the JSON data is not compressed is to make it easy to utilize the data directly without having to worry about decompressing it first.

The most common example of this would be if you wanted to use the data in AWS and read the data directly into applications running in the cloud. I actually created a simple example of this using AWS Athena to query the data where it sits on S3 without requiring any downloading ... https://github.com/opencitymodel/opencitymodel/blob/master/examples/Query-OpenCityModel-using-AWS-Athena.md

In the case of the GML files we decided that compression was best because the files are massive otherwise and since it's much more involved to parse the data in GML format it was less likely users would intend to stream it directly into other applications.

Even without the compression the JSON data is still a fairly reasonable size to download.

hugoledoux commented 5 years ago

I see your point and I agree: indeed unzipped cityjson files are usable, while the citygml aren't.

Now let's see which applications people will build! We'll try something and let you know.