I finally found out that geometryName has to be e x a c t l y this way:
geometryName: 'mne:posicionEspacial/mne:PosicionEspacial/mne:geometria',
and - following the same upper and lower case pattern - filter property now is
also working
property: 'mne:nombreEntidad/mne:NombreEntidad/mne:nombre',
But there still no access to the feature.attributes.
The higher level namespaces ‘nombreEntidad’, ‘tipoEntidad’ etc. are there but
null. The information I actually want sits one level lower (‘nombre’, ‘tipo’
etc.).
Any idea how I can drill down to the information?
The gazetteer layer is now:
var myFilter = new OpenLayers.Filter.Comparison({
type: "~",
property: 'mne:nombreEntidad/mne:NombreEntidad/mne:nombre',
value: "Madrid"
});
var myLayer = new OpenLayers.Layer.Vector( "my title", {
strategies: [new OpenLayers.Strategy.BBOX({ ratio:1, resFactor:1 })],
protocol: new OpenLayers.Protocol.WFS({
url: "http://www.idee.es/IDEE-WFS-Nomenclator-NGC/services?",
featureType: 'Entidad',
featurePrefix: 'mne',
featureNS : "http://www.idee.es/mne",
geometryName: 'mne:posicionEspacial/mne:PosicionEspacial/mne:geometria',
readFormat: new OpenLayers.Format.GML(),
srsName: "EPSG:4230",
version: '1.1.0',
extractAttributes: true
}),
projection: new OpenLayers.Projection("EPSG:4230"),
filter: myFilter;
});_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users