- Breaking: Java 11 is now the minimum required version for using citygson.
- Extension properties are also supported for
SemanticsType
in addition toAbstractCityObjectType
. - Updated Gson to 2.11.0.
- Fixed unmarshalling of extension properties.
- Added possibility to search the
CityJSONRegistry
for extension properties based on their property name and class type. - Updated Gson to 2.9.0.
-
Added support for CityJSON 1.0.3.
-
Adapted the
"metadata"
property to reflect the changes introduced with CityJSON 1.0.3 (see CityJSON changelog).Note that these changes in CityJSON 1.0.3 break backwards compatability with previous minor versions. For this reason, this version of citygson only supports metadata based on CityJSON 1.0.3 but no previous versions anymore.
- Updated Gson to 2.8.8.
- Dropped usage of Bintray and JCenter.
- Use real-world coordinates for
"geographicalExtent"
in case the extent is automatically calculated and the city objects use compressed coordinate values.
- Fixed marshalling of empty
"attributes"
property.
- Updated Gson to 2.8.6.
- Added missing attributes to city objects and semantic surfaces.
- Fixed
CityJSONAdapter
to correctly use registered extension property classes.
- Renamed
getParent()
method ofAbstractCityObjectType
intogetParents()
.
- Reworked type adapters to reduce memory footprint when reading CityJSON files.
- As a consequence, you need to register the type adapter factory
CityJSONTypeAdapterFactory
with everyGson
instance. Luckily, this is really easy:
Gson gson = new GsonBuilder() .registerTypeAdapterFactory(new CityJSONTypeAdapterFactory()) .create();
- As a consequence, you need to register the type adapter factory
- Support for CityJSON 1.0.
- In CityJSON 1.0, the
"extensions"
property has been changed to additionally document the version number of the CityJSON Extension used in the dataset (see change log). This required a minor but breaking change in theCityJSON
class.
This is the initial release of citygson.
- citygson has been developed as part of the citygml4j library for parsing and writing CityJSON files based on the Gson binding framework. It has now been moved to its own GitHub place and hopefully is useful for developers who only need an object-based access to CityJSON datasets without the additional functionality offered by citygml4j.
- This version of citygson support CityJSON 0.9.