opengeospatial / 2D-Tile-Matrix-Set

OGC 2D Tile Matrix Set & TileSet Metadata standard
https://www.ogc.org/standards/tms
Apache License 2.0
8 stars 10 forks source link

rename identifier to id to avoid confusion #85

Closed vincentsarago closed 1 year ago

vincentsarago commented 1 year ago

In TMS 2.0, the identifier for both the TileMatrixSet and TileMatrix class was renamed id. I think still having identifier in the doc is confusion

ref: https://docs.ogc.org/is/17-083r4/21-066r1.html#_json_encoding_rules_to_derive_a_more_natural_json_encoding_from_uml

jerstlouis commented 1 year ago

Thanks for reporting this issue @vincentsarago .

The reason this is the case is because id is the result of a JSON encoding rule adopted by the standard that maps identifier at the logical level to id for the JSON encoding. In the XML encoding for example, identifier is still used.

This is explained in Section 7.1 Table 10.

Is there something that we could do to make this less confusing?

vincentsarago commented 1 year ago

Ah! thanks for the answer @jerstlouis

IMO having different way to specify a parameter based on the encoding is a bit weird but I'm sure this was discussed and approved so I'll close this issue 🙏