The type of the "location" member #213
balazsdukai
started this conversation in
General
Replies: 1 comment
-
If it's a child of If it's the child of an Agreed that it could lead to confusion, so better to rename the "location" in the CityObjectGroup snippet to "municipality" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
andBridge
CityObject types can have anaddress
member, which can contain alocation
, and thislocation
must be a MultiPoint geometry. This is clear.However, the second example of the CityObjectGroup contains a
location
underattributes
(notaddress
), and this location is a regular string.This suggests that if
location
is a member of theaddress
then it must be a MultiPoint, butlocation
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 ofaddress
, then it must be a MultiPoint.This would be a breaking change too, I think.
Any thoughts? @hugoledoux ?
Beta Was this translation helpful? Give feedback.
All reactions