Discussed in #213
Originally posted by balazsdukai March 7, 2025
Does the location property in a CityObject require a specific value type (e.g. a MultiPoint geometry), or it can have any type of value?
The source of my confusion is that the specs define that the Building and Bridge CityObject types can have an address member, which can contain a location, and this location must be a MultiPoint geometry. This is clear.
However, the second example of the CityObjectGroup contains a location under attributes (not address), and this location is a regular string.
This suggests that if location is a member of the address then it must be a MultiPoint, but location can also be added anywhere else, in which case it is a regular attribute, or it can also be a geometry, or ... ?
Should we set the schema for the location property? For example, enforce it to be a Geometry, regardless where is it. If it is a member of address, then it must be a MultiPoint.
This would be a breaking change too, I think.
Any thoughts? @hugoledoux ?
Discussed in #213
Originally posted by balazsdukai March 7, 2025
Does the
locationproperty in a CityObject require a specific value type (e.g. a MultiPoint geometry), or it can have any type of value?The source of my confusion is that the specs define that the
BuildingandBridgeCityObject types can have anaddressmember, which can contain alocation, and thislocationmust be a MultiPoint geometry. This is clear.However, the second example of the CityObjectGroup contains a
locationunderattributes(notaddress), and this location is a regular string.This suggests that if
locationis a member of theaddressthen it must be a MultiPoint, butlocationcan also be added anywhere else, in which case it is a regular attribute, or it can also be a geometry, or ... ?Should we set the schema for the
locationproperty? For example, enforce it to be a Geometry, regardless where is it. If it is a member ofaddress, then it must be a MultiPoint.This would be a breaking change too, I think.
Any thoughts? @hugoledoux ?