Hi all,
I want to find out minimum bounding box for every feature instance of a
feature type in WFS. I need this for my project purpose. Can anybody tell
me how this can be done?
Since schema for each feature type may vary, I'm not getting how to parse
the response of getFeature request. Is there any standard parser available
which can parse the response of getFeature request? Because it's very
difficult for me to find out exactly which attribute of a feature type
represents geometry of that feature type.
Kindly tell me the solution for this or place where I can look for the
solution.
Thanks,
Sanket Patle
Student
IIT Bombay, India.
Sanket Chandulal Patle ha scritto:
Hi all,
I want to find out minimum bounding box for every feature instance of a
feature type in WFS. I need this for my project purpose. Can anybody tell
me how this can be done?
Since schema for each feature type may vary, I'm not getting how to parse
the response of getFeature request. Is there any standard parser available
which can parse the response of getFeature request? Because it's very
difficult for me to find out exactly which attribute of a feature type
represents geometry of that feature type.
Well, this is the nature of WFS, you never know what the output will
look like, you have to parse the response of DescribeFeatureType (which
is a xml schema) in order to determine which attributes are geometric,
and also what element names will be used for them and for the features.
Past that, mind that GeoServer can be configured to return the
envelope of each feature, go into the GeoServer WFS configuration and
enable the generation of feature by feature bounding boxes, this way
you'll just have to reach for it instead of parsing the geometry
and computing it bbox.
Hope this helps
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
There are frameworks that can help you parse WFS and GML data.. one
for Java comes to mind especially = geotools, on which geoserver is
built 
/Björn
On Mon, Mar 16, 2009 at 14:58, Andrea Aime <aaime@anonymised.com> wrote:
Sanket Chandulal Patle ha scritto:
Hi all,
I want to find out minimum bounding box for every feature instance of a
feature type in WFS. I need this for my project purpose. Can anybody tell
me how this can be done?
Since schema for each feature type may vary, I'm not getting how to parse
the response of getFeature request. Is there any standard parser available
which can parse the response of getFeature request? Because it's very
difficult for me to find out exactly which attribute of a feature type
represents geometry of that feature type.
Well, this is the nature of WFS, you never know what the output will
look like, you have to parse the response of DescribeFeatureType (which
is a xml schema) in order to determine which attributes are geometric,
and also what element names will be used for them and for the features.
Past that, mind that GeoServer can be configured to return the
envelope of each feature, go into the GeoServer WFS configuration and
enable the generation of feature by feature bounding boxes, this way
you'll just have to reach for it instead of parsing the geometry
and computing it bbox.
Hope this helps
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users