Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Need example of a GetFeature request...

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
ca0v
2059 Views, 4 Replies

Need example of a GetFeature request...

I've already posted to gis.stackexchange but did not get a response.  I have minimal Autodesk experience and I think I simple need a working example of a WFS request like the one below:

 

<Filter xmlns="http://www.opengis.net/ogc">
      <Intersects>
        <PropertyName>Geometry</PropertyName>
        <Polygon srsName="EPSG:26910" xmlns="http://www.opengis.net/gml">
          <exterior>
            <LinearRing>
              <posList>

I am getting FBO errors:

 

Error: An exception occurred in FDO component.
        String does not represent a valid filter. 
 StackTrace:
  - MgFeatureServiceHandler.ProcessOperation() line 83 file d:\build\ims2013\build_52.8\ent\os\server\src\services\feature\FeatureServiceHandler.cpp
Tags (2)
4 REPLIES 4
Message 2 of 5
jackie.ng
in reply to: ca0v

Perhaps all your XML elements need to be fully qualified with the necesary ogc: gml: and wfs: prefixes?

 

- Jackie

Message 3 of 5
ca0v
in reply to: jackie.ng

By explicitly providing a prefix it worked.  So it is not enough to provide a namespace declaration on the element.

 

<GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.1.0" maxFeatures="500" xmlns="http://www.opengis.net/wfs">
  <wfs:Query typeName="ns63133509:ST_WASTE_CONTAINER" SRSNAME="EPSG:26910">
    <ogc:Filter xmlns="http://www.opengis.net/ogc">
      <ogc:Intersects>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="EPSG:26910" xmlns="http://www.opengis.net/gml">
          <gml:exterior>
            <gml:LinearRing>...</gml:posList>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>
      </ogc:Intersects>
    </ogc:Filter>
  </wfs:Query>
</GetFeature>

 

I also confirmed that the namespace declaration is not necessary in this case:

 

<GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.1.0" maxFeatures="500" xmlns="http://www.opengis.net/wfs">
  <wfs:Query typeName="ns63133509:ST_WASTE_CONTAINER" SRSNAME="EPSG:26910">
    <ogc:Filter>
      <ogc:Intersects>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="EPSG:26910">
          <gml:exterior>
            <gml:LinearRing>
              <gml:posList>...</gml:posList>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>
      </ogc:Intersects>
    </ogc:Filter>
  </wfs:Query>
</GetFeature>

 

Message 4 of 5
ca0v
in reply to: jackie.ng

I'm not out of the woods yet...when I provide an explicit namespace declaration it fails.  Is my declaration wrong:

 

wfs -> default

ogc -> http://www.opengis.net/ogc

gml -> http://www.opengis.net/gml

 

 

<GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.1.0" maxFeatures="500" xmlns="http://www.opengis.net/wfs">
  <wfs:Query typeName="ns84533269:VanCity" SRSNAME="EPSG:26910">
    <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
      <ogc:Intersects>
        <ogc:PropertyName>Geometry</ogc:PropertyName>
        <gml:Polygon srsName="EPSG:26910"
        xmlns:gml="http://www.opengis.net/gml">
          <gml:exterior>
            <gml:LinearRing>
              <gml:posList>...</gml:posList>
            </gml:LinearRing>
          </gml:exterior>
        </gml:Polygon>
      </ogc:Intersects>
    </ogc:Filter>
  </wfs:Query>
</GetFeature>

 

http://www.opengis.net/gml
Message 5 of 5
ca0v
in reply to: ca0v

Issue is resolved when a space is added between the <posList> and the first value.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report