Hi list, I'm having some problems trying to extract some features from a GetFeature request using POST method. In the back-end I have GeoServer. I get a positive response from GeoServer but OpenLayers cannot read. If load it with Desktop GIS software I can see the features.
The response: <?xml version="1.0" encoding="UTF-8"?> <wfs:FeatureCollection numberOfFeatures="0" timeStamp="2010-10-14T09:51:43.270+02:00" xsi:schemaLocation="http://192.168.1.38/ikt http://192.168.1.38:8080/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=IKT%3AMunicipios http://www.opengis.net/wfs http://192.168.1.38:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:tiger="http://www.census.gov" xmlns:cite="http://www.opengeospatial.net/cite" xmlns:nurc="http://www.nurc.nato.int" xmlns:IKT="http://192.168.1.38/ikt" xmlns:sde="http://geoserver.sf.net" xmlns:wfs="http://www.opengis.net/wfs" xmlns:topp="http://www.openplans.org/topp" xmlns:it.geosolutions="http://www.geo-solutions.it" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="http://www.openplans.org/spearfish" xmlns:ows="http://www.opengis.net/ows" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"><gml:boundedBy><gml:Envelope><gml:lowerCorner>496423.679996142 4754010.95044515</gml:lowerCorner><gml:upperCorner>509368.999996142 4771586.64994515</gml:upperCorner></gml:Envelope></gml:boundedBy><gml:featureMembers><IKT:Municipios gml:id="Municipios.37"><gml:boundedBy><gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#23030"><gml:lowerCorner>496423.679996142 4754010.95044515</gml:lowerCorner><gml:upperCorner>509368.999996142 4771586.64994515</gml:upperCorner></gml:Envelope></gml:boundedBy><IKT:PROVINCIA>1</IKT:PROVINCIA><IKT:MUNICIPIO>2</IKT:MUNICIPIO><IKT:NOMBRE_EUS>Amurrio</IKT:NOMBRE_EUS><IKT:NOMBRE_CAS>Amurrio</IKT:NOMBRE_CAS><IKT:COMARCA>CANTABRICA ALAVESA</IKT:COMARCA><IKT:AREA_FUN>LLODIO</IKT:AREA_FUN><IKT:FECHA_INI>2007-12-31Z</IKT:FECHA_INI><IKT:GEOMETRY><gml:MultiGeometry><gml:geometryMember><gml:MultiSurface><gml:surfaceMember><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>509050.389996142 4766105.19304515 508993.219096142 ... 4754165.29004515 502131.849996142 4754165.96004515</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></gml:geometryMember></gml:MultiGeometry></IKT:GEOMETRY></IKT:Municipios></gml:featureMembers></wfs:FeatureCollection> And I'm parsing it with the following code: var theParser = new OpenLayers.Format.GML(); theParser.internalProjection = null; theParser.externalProjection = null; theParser.extractStyles = false; theParser.extractAttributes = true; var features = theParser.read(data); We also have a custom select feature control and it works perfect. The only difference is that we are requesting the data over GET method. And we can see that the responses are also different. If someone needs the full geometry, please ask me. It's a bit big to send it in the email. Can someone help me, please? Thanks. Un saludo, ·················································································· David Alda Fernández de Lezea Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad IKT Granja Modelo s/n · 01192 · Arkaute (Araba) ·················································································· Tlfnos.: 945-00-32-95 Fax: 945-00.32.90 ·················································································· email: [email protected] web: www.ikt.es ·················································································· _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
