Hi Casper, that does not look like a valid BBOX to me in RD (EPSG:28992). Such no data is coming back.
displayProjection is used by e.g. the MousePosition control, it will display the X and Y in a different projection than the map is in. What you want is to set projection to EPSG:28992. If you can't figure out the correct map settings for RD, have a look at some existing application in RD such as: http://www.rijkswaterstaat.nl/apps/geoservices/mapviewer2i/ or: https://www.kademo.nl/ Hope this helps. Best regards, Bart -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS [email protected] On Jun 9, 2011, at 4:12 PM, Casper Span wrote: > Hi Bart, Mark, > > There is nothing related to WFS on the console, nor on NET's XHR subtab. Even > when everything is checked. It's like it crashes before it gets there... > (with no error, ofcourse...) I've also tried your suggestion, Mark. Still the > same. > > The DescribeFeatureType: > > <?xml version="1.0" encoding="UTF-8"?> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" xmlns:gs="http://casp-geoserver/" > elementFormDefault="qualified" targetNamespace="http://casp-geoserver/"> > <xsd:import namespace="http://www.opengis.net/gml" > schemaLocation="http://localhost:80/geoserver/schemas/gml/3.1.1/base/gml.xsd"/> > <xsd:complexType name="locatiedossiersType"> > <xsd:complexContent> > <xsd:extension base="gml:AbstractFeatureType"> > <xsd:sequence> > <xsd:element maxOccurs="1" minOccurs="0" name="ID" nillable="true" > type="xsd:decimal"/> > <xsd:element maxOccurs="1" minOccurs="0" name="GEOMETRY" > nillable="true" type="gml:GeometryPropertyType"/> > </xsd:sequence> > </xsd:extension> > </xsd:complexContent> > </xsd:complexType> > <xsd:element name="locatiedossiers" substitutionGroup="gml:_Feature" > type="gs:locatiedossiersType"/> > </xsd:schema> > > > Hmm... I just tried another request from a different pc... now I suddenly DID > get some xhhtp on the NET panel: > > REQUEST: > <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://casp-geoserver/ > http://casp-geoserver/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=gs:locatiedossiers" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <wfs:Query typeName="feature:locatiedossiers" srsName="EPSG:28992" > xmlns:feature="http://casp-geoserver/"> > <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> > <ogc:BBOX> > <ogc:PropertyName>GEOMETRY</ogc:PropertyName> > <gml:Envelope xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:28992"> > <gml:lowerCorner>562664.54279097 6811227.9320805</gml:lowerCorner> > <gml:upperCorner>574130.09703169 6820515.0310153</gml:upperCorner> > </gml:Envelope> > </ogc:BBOX> > </ogc:Filter> > </wfs:Query> > </wfs:GetFeature> > > RESPONSE: > <wfs:FeatureCollection numberOfFeatures="0" > timeStamp="2011-06-09T16:09:36.265+02:00" > xsi:schemaLocation="http://casp-geoserver/ > http://casp-geoserver:80/geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=gs%3Alocatiedossiers > http://www.opengis.net/wfs > http://casp-geoserver:80/geoserver/schemas/wfs/1.1.0/wfs.xsd" > xmlns:gs="http://casp-geoserver/" xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:ows="http://www.opengis.net/ows" xmlns:wfs="http://www.opengis.net/wfs"> > <gml:featureMembers></gml:featureMembers> > </wfs:FeatureCollection> > > > So basically, it can't find anything... Maybe this is a projection related > issue then... The data is EPSG:28992, > > My Map options hash have: > projection: new OpenLayers.Projection("EPSG:4326"), > displayProjection: new OpenLayers.Projection("EPSG:28992"), > > Could there be a mixup there? I still find the projection/displayProjection > really confusing... what's the real difference between the two? > > regards, > Casper > > On Thu, Jun 9, 2011 at 2:33 PM, Mª®k <[email protected]> wrote: > 2011/6/9 Bart van den Eijnden <[email protected]>: > > Hi Casper, > > AJAX requests normally show up in the Console tab of Firebug, make you sure > > you have activated the option to show AJAX requests. > > Without a request XML and response XML it's really difficult to help you. > > Otherwise, send us the output of your DescribeFeatureType request, a common > > mistake is that the featureNS does not exactly match the namespace > > advertized on the WFS. > > my most common mistake here is a trailing slash on the namespace, > always gets me... > You might also want to try adding the featurePrefix : 'gs' to the > options hash (I see you're using that in the schema url). > > Mark > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
