Hello List,

Does anyone know of a working example of loading a GML3 file and 
displaying it?
I'd like to work on from that to create a GML-layer with pop-ups which 
shows attributes.

I've been desparetely trying to get it to work, but I never get any 
features loading.

I've been trying things like:
tma = new OpenLayers.Layer.GML("CDG TMA", "wkt/tmaCDG.gml",
     {
         format: OpenLayers.Format.GML.v3,
         formatOptions : {
             featureType: "feature",
             featureNS: "http://www.flysafe-eu.org/wims";,
             geometryName: "geometry",
             srsName: "urn:x-ogc:def:crs:EPSG:4326",
             schemaLocation: "http://www.flysafe-eu.org/wims memo.xsd"
         }
     });

and a gml file like:
<?xml version="1.0" encoding="UTF-8"?>
<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"; 
fid="OpenLayers.Feature.Vector_125"><feature:geometry><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>9.140625
 
48.8671875 20.390625 38.3203125 37.96875 40.4296875 37.96875 58.7109375 
9.140625 
48.8671875</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></feature:geometry></feature:feature></gml:featureMember>

Anyt help greatly appreciated, MArco
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to