[Geoserver-users] Geoserver WFS response without geometry

Hey guys, we are trying to send the following to GS 1.3.3

<wfs:GetFeature service=“WFS” version=“1.0.0” outputFormat=“GML2” xmlns:topp=“http://www.openplans.org/topp” xmlns:wfs=“http://www.opengis.net/wfs” xmlns=“http://www.opengis.net/ogc” xmlns:gml=“http://www.opengis.net/gml” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd”>

<wfs:Query typeName=“topp:ESL_04_05”>

CATEGORY

NAME

MAPNAME

the_geom

<gml:Point srsName=“http://www.opengis.net/gml/srs/epsg.xml#4326”>

gml:coordinates115.96683000,-31.90082000</gml:coordinates>

</gml:Point>

</wfs:Query>

</wfs:GetFeature>

As we are only interested in the aspatial data, the_geom is obviously not required in the response and we get the following,

<wfs:FeatureCollection xsi:schemaLocation=“http://www.openplans.org/topp http://xxxxxxx.com/geoserver/wfs/DescribeFeatureType?typeName=topp:ESL_04_05 http://www.opengis.net/wfs http://beta.landgate.com.au:80/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd”>

gml:boundedBy

gml:nullunknown</gml:null>

</gml:boundedBy>

gml:featureMember

<topp:ESL_04_05 fid=“ESL_04_05.52”>

gml:boundedBy

gml:nullunknown</gml:null>

</gml:boundedBy>

topp:CATEGORY1</topp:CATEGORY>

topp:NAMEMetropolitan</topp:NAME>

topp:MAPNAMEMETROPOLITAN CATEGORY 1 BOUNDARY</topp:MAPNAME>

</topp:ESL_04_05>

</gml:featureMember>

</wfs:FeatureCollection>

This results in a significantly smaller and quicker response, but boundedBy always reports as “unknown”. Is there anyway to not request the feature geometry while still returning the Boundedby element?

The obvious application here is doing a point in polygon request, getting the poly attribute and then zooming to its extents. I really do not like the alternative of retrieving 400kb in feature geometry just to get the bbox L

Any ideas?

Chris Tweedie.

This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments.

Hey, sorry for the late response, I'm finally catching up on email.

Do you need the boundedBy for each feature? Or for just for the full extent?

I think we'd need to make this a config option - the reason it reports unknown is because internally when we query the datastore we're not requesting the geometry at all, and thus cutting down on a lot of processing of data (getting the geometries out of the db and turning them in to java objects). So we'd want people to really want to know the bbox's, to bother with the extra processing needed. It's obviously a win on external bandwidth, especially if bandwidth is the same.

And if we're just doing it for the full feature set then it's a good bit easier, since most datastores can do a query just to get the bounds which is much less expensive.

It shouldn't be too hard to code, feel free to file a bug report, though I don't think it's a very popular feature, so we may take awhile to get to it without funding (if there's lots of people who desire the functionality add your vote to the issue and it'll jump the queue).

best regards,

Chris

Chris Tweedie wrote:

Hey guys, we are trying to send the following to GS 1.3.3

<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:topp="http://www.openplans.org/topp&quot; xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;

<wfs:Query typeName="topp:ESL_04_05">

<PropertyName>CATEGORY</PropertyName>

<PropertyName>NAME</PropertyName>

<PropertyName>MAPNAME</PropertyName>

  <Filter>

   <Intersects>

     <PropertyName>the_geom</PropertyName>

      <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;

       <gml:coordinates>115.96683000,-31.90082000</gml:coordinates>

      </gml:Point>

   </Intersects>

  </Filter>

</wfs:Query>

</wfs:GetFeature>

As we are only interested in the aspatial data, the_geom is obviously not required in the response and we get the following,

<wfs:FeatureCollection xsi:schemaLocation="http://www.openplans.org/topp http://xxxxxxx.com/geoserver/wfs/DescribeFeatureType?typeName=topp:ESL_04_05 http://www.opengis.net/wfs http://beta.landgate.com.au:80/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;

<gml:boundedBy>

<gml:null>*unknown*</gml:null>

</gml:boundedBy>

<gml:featureMember>

<topp:ESL_04_05 fid="ESL_04_05.52">

<gml:boundedBy>

<gml:null>unknown</gml:null>

</gml:boundedBy>

<topp:CATEGORY>1</topp:CATEGORY>

<topp:NAME>Metropolitan</topp:NAME>

<topp:MAPNAME>METROPOLITAN CATEGORY 1 BOUNDARY</topp:MAPNAME>

</topp:ESL_04_05>

</gml:featureMember>

</wfs:FeatureCollection>

This results in a significantly smaller and quicker response, but boundedBy always reports as “unknown”. Is there anyway to not request the feature geometry while still returning the Boundedby element?

The obvious application here is doing a point in polygon request, getting the poly attribute and then zooming to its extents. I **really** do not like the alternative of retrieving 400kb in feature geometry just to get the bbox L

Any ideas?

Chris Tweedie.

This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it. While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments.

!DSPAM:1003,44e9100d176651971556521!

------------------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

!DSPAM:1003,44e9100d176651971556521!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:1003,44e9100d176651971556521!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org