forked from just-the-docs/just-the-docs
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
727c831
commit 58d95e0
Showing
5 changed files
with
81 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
layout: default | ||
title: File size | ||
nav_exclude: true | ||
permalink: /filesize/ | ||
--- | ||
|
||
# File size | ||
|
||
## Table of contents | ||
{: .no_toc .text-delta } | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
--- | ||
|
||
|
||
## CityJSON vs CityGML-XML: 7X compression | ||
|
||
{% assign ds = site.data.datasets | sort: 'name' %} | ||
|
||
<table > | ||
<tr> | ||
<th>dataset</th> | ||
<th>CityJSON v2.0</th> | ||
<th>CityGML-XML v3.0</th> | ||
<th>textures</th> | ||
<th>details</th> | ||
<th>compression</th> | ||
</tr> | ||
{% for i in ds %} | ||
<tr> | ||
<td><a href="{{ i.url }}">{{ i.name }}</a></td> | ||
<td>{{ i.json-size }}MB (<a href="https://3d.bk.tudelft.nl/opendata/cityjson/3dcities/v2.0/{{ i.json }}">download)</a></td> | ||
<td>{{ i.gml-size-wo }}MB (<a href="https://3d.bk.tudelft.nl/opendata/cityjson/3dcities/citygml/{{ i.gml }}">download</a>)</td> | ||
<td> | ||
{% if i.textures %} | ||
<a href="https://3d.bk.tudelft.nl/opendata/cityjson/3dcities/citygml/{{ i.textures }}">[ZIP]</a> | ||
{% else %} | ||
none | ||
{% endif %} | ||
</td> | ||
<td>{{ i.details }}</td> | ||
<td><b>{{ i.gml-size-wo | divided_by: i.json-size | round: 1 }}X</b></td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
||
<i class="fas fa-exclamation-circle"></i> Observe that the file size doesn't take into account the size of the textures files (PNG, JPG, etc) since CityJSON refers to the same ones. | ||
|
||
<i class="fas fa-exclamation-circle"></i> CityGML-XML files have all the carriage returns, tabs and spaces removed with this script, for a fair estimation of the compression factor. | ||
|
||
<i class="fas fa-exclamation-circle"></i> CityJSON files do not contain CR or spaces or any formatting. | ||
|
||
|
||
- - - | ||
|
||
## CityJSON compared to traditional computer graphic formats | ||
|
||
This very nice study ([evaluation of file formats in the context of geo-referenced 3D geometries](https://github.com/FHOOEAIST/geofiles)) compares several file formats for 3D geometries, with a focus on geographical datasets. | ||
|
||
The outcome is that CityJSON is nearly as compact as much simpler formats (OBJ, STL, OFF), and it still allows different CRS, textures, complex attributes, complex geometries, etc. | ||
|
||
The [summary graph](https://github.aist.science/geofiles/) is particulary nice, click to get an interactive graph! | ||
|
||
[![](summary.png)](https://github.aist.science/geofiles/) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters