cityjson / specs

Specifications for CityJSON, a JSON-based encoding for 3D city models
https://cityjson.org
Creative Commons Zero v1.0 Universal
107 stars 25 forks source link

type and version easier to identify that a file is a CityJSON file #4

Closed hugoledoux closed 6 years ago

hugoledoux commented 6 years ago
{
  "type": "CityModel",
  "version": "http://www.cityjson.org/version/0.2",
}

-->

{
  "type": "CityJSON",
  "version": "0.2",
  "schema": "http://www.cityjson.org/en/0.2/_downloads/cityjson-v02.schema.json"
}
kenohori commented 6 years ago

This fixes a big problem with CityGML, which is that a program can't know if a file is a CityGML file easily.

clausnagel commented 6 years ago

@kenohori The CityGML namespaces are fix and independent from a server location. So in fact it's quite simple to understand and check if a XML dataset contains CityGML elements.

kenohori commented 6 years ago

@clausnagel You are right. I was assuming that the namespace URIs were pointing to actual locations...

That being said, I still feel like this is a chance to correct a part of CityGML that doesn't make much sense. I've been trying to go to the addresses of various CityGML namespaces and many of them just point to 404 errors.

clausnagel commented 6 years ago

Namespace URIs are purely formal identifiers. They are not the addresses of a page, and they are not meant to be followed as links. (O'Reilly XML in a nutshell)

With that said, I agree that there nevertheless could be some content at the CityGML namespace URIs, such as the corresponding XML schema document. I can bring that into the CityGML group at OGC.

hugoledoux commented 6 years ago

done 032d46c0bb7d51f2848a0c04401e5fe6c49ef2af