openlayersgmlgwt-openlayers

GML v3 loading with OpenLayers


I rewrote the question to be more readable:

the example program is not able to load this. It seems a limitation of OpenLayers library in general that is not able to properly load some kind of GML files, or what? Am I specifying an invalid GML xml string? Do you know about some limitation on supporting some advanced features of the GML format in OpenLayers?

Thanks.


Solution

  • I cannot answer the OpenLayers question but I can provide some information regarding GML viz KML. GML and KML are designed to solve two different (but related) interoperability requirements. GML was designed and specified to allow the modeling and encoding of geospatial content, including geometry, features, topology, dictionaries, and so forth. KML was designed and specified to enable the portrayal of simple geospatial content in an earth browser system. KML is not a general data modeling standard. Please read the preamble to the KML standard on the OGC website for more information. I should add that GML and KML use the same geometry model as specified in ISO 19107: Spatial Schema. However, KML does not support complex geometries nor does KML support the concept of features. There are excellent resources that describe GML and its use (see wikipedia entry for GML and related links.

    So, if you need to model and encode geospatial content that requires features with properties, then use GML. If yo wish to encode simple geospatial content for portrayal, then use KML.