[Geoserver-users] WFS 1.1.0 fails to give geometry

Hi All,

I am trying to use WFS GetFeature request to fetch features from a shapefile repository. (Geoserver 2.1.4.)
WFS 1.0.0 request works well, but WFS 1.1.0 fails for the same layer. Geometry is returned empty.

here are the URLS:

this one works well:
http://mysite.hu:8080/geoserver/wfs?version=1.0.0&request=GetFeature&typeName=doris:HollohazaLandslideInventory&maxFeatures=1

this one fails:
http://mysite.hu:8080/geoserver/wfs?version=1.1.0&request=GetFeature&typeName=doris:HollohazaLandslideInventory&maxFeatures=1

I tried to find some posts about this issue, but I have found none. I wonder if anyone ever experienced such a problem.
Please, help me if you have any idea!

Regards,
L.Sores

Responses are below...

WFS 1.0.0 - it is OK:

<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs&quot; xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:doris="http://mfgi.hu/doris&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://mfgi.hu/doris http://mysite.hu:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=doris%3AHollohazaLandslideInventory http://www.opengis.net/wfs http://mysite.hu:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
    <gml:boundedBy>
       <gml:null>unknown</gml:null>
    </gml:boundedBy>
    <gml:featureMember>
       <doris:HollohazaLandslideInventory fid="HollohazaLandslideInventory.1">
          <doris:the_geom>
             <gml:MultiPolygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326&quot;&gt;
                <gml:polygonMember>
                   <gml:Polygon>
                      <gml:outerBoundaryIs>
                         <gml:LinearRing>
                            <gml:coordinates xmlns:gml="http://www.opengis.net/gml&quot; decimal="." cs="," ts=" ">21.30868789,48.51959806 21.30865879,48.51991914 21.30884078,48.52033918 21.30923336,48.52084674 21.31010828,48.52135076 21.31094355,48.52173534 21.31186691,48.522164 21.31279553,48.52231783 21.31360214,48.52243966 21.31457268,48.52236945 21.31512424,48.52178075 21.31490838,48.52117822 21.31422492,48.52052175 21.31345152,48.51997574 21.31275699,48.51965715 21.3118414,48.51940577 21.31092955,48.51924017 21.31008221,48.51917061 21.3092895,48.51916868 21.3087549,48.51935639 21.30868789,48.51959806</gml:coordinates>
                         </gml:LinearRing>
                      </gml:outerBoundaryIs>
                   </gml:Polygon>
                </gml:polygonMember>
             </gml:MultiPolygon>
          </doris:the_geom>
          <doris:UJSORSZAM>0502-060-2</doris:UJSORSZAM>
          <doris:Type>rotational slide</doris:Type>
          <doris:Volume>800000</doris:Volume>
          <doris:Rock_Type>sarmata bedrock and clay, loess, gravel</doris:Rock_Type>
          <doris:Date>unknown</doris:Date>
          <doris:Width_m>600</doris:Width_m>
          <doris:Length_m>800</doris:Length_m>
          <doris:Vertical>10</doris:Vertical>
          <doris:Horizontal>50</doris:Horizontal>
          <doris:Settlement>Abaújvár</doris:Settlement>
       </doris:HollohazaLandslideInventory>
    </gml:featureMember>
</wfs:FeatureCollection>

WFS 1.1.0 - the_geom element is empty:

<wfs:FeatureCollection numberOfFeatures="1" timeStamp="2013-04-12T10:54:32.671Z" xsi:schemaLocation="http://mfgi.hu/doris http://mysite.hu:8080/geoserver/wfs?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;typeName=doris%3AHollohazaLandslideInventory http://www.opengis.net/wfs http://mysite.hu:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd&quot; xmlns:it.geosolutions="http://www.geo-solutions.it" xmlns:gml="http://www.opengis.net/gml&quot; xmlns:Inventory="http://mfgi.hu/inventory&quot; xmlns:doris="http://mfgi.hu/doris&quot; xmlns:racalmas_suscmap="http://mysite.hu/racalmas_suscmap&quot; xmlns:topp="http://www.openplans.org/topp&quot; xmlns:sde="http://geoserver.sf.net" xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:tiger="http://www.census.gov" xmlns:doris_dunaszekcso="http://mfgi.hu/doris\_dunaszekcso&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot; xmlns:sf="http://www.openplans.org/spearfish&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:doris_hollohaza="http://mfgi.hu/doris\_hollohaza&quot; xmlns:nurc="http://www.nurc.nato.int" xmlns:ows="http://www.opengis.net/ows&quot; xmlns:cite="http://www.opengeospatial.net/cite&quot; xmlns:mfgi="http://mfgi.hu" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <gml:featureMembers>
       <doris:HollohazaLandslideInventory gml:id="HollohazaLandslideInventory.1">
          <doris:the_geom/>
          <doris:UJSORSZAM>0502-060-2</doris:UJSORSZAM>
          <doris:Type>rotational slide</doris:Type>
          <doris:Volume>800000</doris:Volume>
          <doris:Rock_Type>sarmata bedrock and clay, loess, gravel</doris:Rock_Type>
          <doris:Date>unknown</doris:Date>
          <doris:Width_m>600</doris:Width_m>
          <doris:Length_m>800</doris:Length_m>
          <doris:Vertical>10</doris:Vertical>
          <doris:Horizontal>50</doris:Horizontal>
          <doris:Settlement>Abaújvár</doris:Settlement>
       </doris:HollohazaLandslideInventory>
    </gml:featureMembers>
</wfs:FeatureCollection>

On Fri, Apr 12, 2013 at 1:26 PM, sores <sores@anonymised.com> wrote:

Hi All,

I am trying to use WFS GetFeature request to fetch features from a
shapefile repository. (Geoserver 2.1.4.)
WFS 1.0.0 request works well, but WFS 1.1.0 fails for the same layer.
Geometry is returned empty.

Rather strange. However, 2.1.x series has been unsupported for over a year
now,
can you try with the 2.3.0 release?

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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

Hi Andrea,

If there seem to be no other solution to this issue, I certainly will.

Best regards,

Laszlo

···

Hi All,

I am trying to use WFS GetFeature request to fetch features from a
shapefile repository. (Geoserver 2.1.4.)
WFS 1.0.0 request works well, but WFS 1.1.0 fails for the same layer.
Geometry is returned empty.

Rather strange. However, 2.1.x series has been unsupported for over a year now,
can you try with the 2.3.0 release?
Cheers
Andrea

==
GeoServer training in Milan, 6th & 7th June 2013! Visit http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it

Hi All,

I have installed Geoserver 2.3.0 and it seem to work well for both WFS 1.0.0 and WFS 1.1.0

Thanks!

Laszlo S.

···

Hi All,

I am trying to use WFS GetFeature request to fetch features from a
shapefile repository. (Geoserver 2.1.4.)
WFS 1.0.0 request works well, but WFS 1.1.0 fails for the same layer.
Geometry is returned empty.

Rather strange. However, 2.1.x series has been unsupported for over a year now,
can you try with the 2.3.0 release?
Cheers
Andrea

==
GeoServer training in Milan, 6th & 7th June 2013! Visit http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it