If I make this request: http://localhost:8080/geoserver/wfs/GetFeature?typeName=fire:fire
I get this:
<?xml version="1.0" encoding="UTF-8" ?>
- <#> <wfs:FeatureCollection xmlns:wfs="*http://www.opengis.net/wfs*" xmlns:fire="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire*" xmlns:gml="*http://www.opengis.net/gml*" xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*" xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=fire:fire http://www.opengis.net/wfs http://localhost:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd*">
- <#> <gml:boundedBy>
- <#> <gml:Box srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*">
<gml:coordinates decimal="*.*" cs="*,*" ts="">-97.85191152,35.02873002 -97.85191152,36.59758438 -95.00858369,36.59758438 -95.00858369,35.02873002</gml:coordinates>
</gml:Box>
</gml:boundedBy>
- <#> <gml:featureMember>
- <#> <fire:fire fid="*fire.1*">
- <#> <fire:the_geom>
- <#> <gml:MultiPolygon srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*">
- <#> <gml:polygonMember>
- <#> <gml:Polygon>
- <#> <gml:outerBoundaryIs>
- <#> <gml:LinearRing>
<gml:coordinates decimal="*.*" cs="*,*" ts="">-97.53175228,35.7981875 -97.47783435,35.79790521 -97.46273169,35.79804636 -97.44014826,35.79776407 -97.42829197,35.79790521 -97.41587108,35.79790521 -97.41587108,35.79621145 -97.41643567,35.79155362 -97.41657682,35.7887307 -97.41643567,35.78463745 -97.41615338,35.77645096 -97.41587108,35.76868791 -97.41587108,35.76558269 -97.41601223,35.76374778 -97.41572994,35.761066 -97.41587108,35.74935085 -97.41601223,35.74455187 -97.41615338,35.73989404 -97.41615338,35.73086067 -97.41629452,35.72846118 -97.41587108,35.72507367 -97.53118769,35.72549711 -97.53161113,35.72719086 -97.53175228,35.72959035 -97.53161113,35.73241328 -97.53146999,35.76092485 -97.53161113,35.79296509 -97.53175228,35.79663489 -97.53161113,35.79804636 -97.53175228,35.7981875</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gml:polygonMember>
</gml:MultiPolygon>
</fire:the_geom>
<fire:ID>7</fire:ID>
<fire:NAME>Oak Cliff</fire:NAME>
<fire:COUNTY>Logan</fire:COUNTY>
<fire:COUNTY_ID>42</fire:COUNTY_ID>
<fire:EDIT_DATE>2002/06/28</fire:EDIT_DATE>
</fire:fire>
</gml:featureMember>
......
So, now I ask for the following property name: http://localhost:8080/geoserver/wfs/GetFeature?typeName=fire:fire&propertyname=fire:the_geom/gml:MultiPolygon
and I get this:
<?xml version="1.0" encoding="UTF-8" ?>
- <#> <wfs:FeatureCollection xmlns:wfs="*http://www.opengis.net/wfs*" xmlns:fire="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire*" xmlns:gml="*http://www.opengis.net/gml*" xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*" xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=fire:fire http://www.opengis.net/wfs http://localhost:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd*">
- <#> <gml:boundedBy>
- <#> <gml:Box srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*">
<gml:coordinates decimal="*.*" cs="*,*" ts="">0,0 0,-1 -1,-1 -1,0</gml:coordinates>
</gml:Box>
</gml:boundedBy>
- <#> <gml:featureMember>
<fire:fire fid="*fire.1*" />
</gml:featureMember>
.......
So, my question is: Why doens't geoserver return something like this??:
<?xml version="1.0" encoding="UTF-8" ?>
- <#> <wfs:FeatureCollection xmlns:wfs="*http://www.opengis.net/wfs*" xmlns:fire="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire*" xmlns:gml="*http://www.opengis.net/gml*" xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*" xsi:schemaLocation="*http://picasso.dlsi.uji.es/schemas/oklahoma/fire http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=fire:fire http://www.opengis.net/wfs http://localhost:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-basic.xsd*">
- <#> <gml:boundedBy>
- <#> <gml:Box srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*">
<gml:coordinates decimal="*.*" cs="*,*" ts="">-97.85191152,35.02873002 -97.85191152,36.59758438 -95.00858369,36.59758438 -95.00858369,35.02873002</gml:coordinates>
</gml:Box>
</gml:boundedBy>
- <#> <gml:featureMember>
- <#> <fire:fire fid="*fire.1*">
- <#> <fire:the_geom>
- <#> <gml:MultiPolygon srsName="*http://www.opengis.net/gml/srs/epsg.xml#13869*">
</gml:MultiPolygon>
</fire:the_geom>
</fire:fire>
</gml:featureMember>
...........
--
Miguel Ángel Esbrí
Dept. Information Systems
(Lenguajes y Sistemas Informáticos)
Universitat Jaume I
E-12071 Castellón, Spain
mailto:maesbri@anonymised.com
http://edugi.uji.es