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"; 
xmlns:wfs="http://www.opengis.net/wfs"; 
xmlns:doris="http://mfgi.hu/doris"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
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";>
    <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";>
                <gml:polygonMember>
                   <gml:Polygon>
                      <gml:outerBoundaryIs>
                         <gml:LinearRing>
                            <gml:coordinates 
xmlns:gml="http://www.opengis.net/gml"; 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"; 
xmlns:it.geosolutions="http://www.geo-solutions.it"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:Inventory="http://mfgi.hu/inventory"; 
xmlns:doris="http://mfgi.hu/doris"; 
xmlns:racalmas_suscmap="http://mysite.hu/racalmas_suscmap"; 
xmlns:topp="http://www.openplans.org/topp"; 
xmlns:sde="http://geoserver.sf.net"; 
xmlns:wfs="http://www.opengis.net/wfs"; 
xmlns:tiger="http://www.census.gov"; 
xmlns:doris_dunaszekcso="http://mfgi.hu/doris_dunaszekcso"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xmlns:sf="http://www.openplans.org/spearfish"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:doris_hollohaza="http://mfgi.hu/doris_hollohaza"; 
xmlns:nurc="http://www.nurc.nato.int"; 
xmlns:ows="http://www.opengis.net/ows"; 
xmlns:cite="http://www.opengeospatial.net/cite"; 
xmlns:mfgi="http://mfgi.hu"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <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>



------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to