I rewrote the question to be more readable:
I saw GML format is just a little more 'evolved' than KML. Am I right? Which format is to be considered more standard, more supported and convenient to invest more on?
I tried the example here (http://openlayers.org/dev/examples/vector-formats.html) trying to load a GML v3 circle defined like this:
<gml:featureMember xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <feature:feature xmlns:feature="http://example.com/feature"> <feature:geometry> <gml:CircleByCenterPoint> <gml:pos>11.979491114616 43.847170472145</gml:pos> <gml:radius uom="km">25</gml:radius> </gml:CircleByCenterPoint> </feature:geometry> </feature:feature> </gml:featureMember>
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?
The GML v3 type on OpenLayers has only the possibility to load a GML v3 file passing the xml string via the read() method and not specifying the file to be loaded from the server using a HTTPProtocolOptions. Why this? Is there a way which I haven't understood?
Do you have some working GML file examples which use relative coordinates?
Thanks.