+ Reply to Thread
Results 1 to 2 of 2

Thread: GIS Beginner

  1. #1
    Ben Richardson
    Join Date
    Aug 2012
    Posts
    3
    Points
    0
    Answers Provided
    0


    0

    Default GIS Beginner

    Hello,

    I've been handed a half built GIS connector between our in house Database system and ArcGIS and have been asked to complete the project. The problem is I don't have the slightest idea how WFS and GIS systems works. So after about a week of reading up as much as I could find online I started modifying the existing code. I've got a test system but ArcMap doesn't seem to be able to find any Feature Types for the server. I've been tearing my hair out for days trying to work it out as it work in Gaia. The test wfs server is here http://wfs.wgim.com/default.aspx I've been using http://suite.opengeo.org/geoserver/wfs? as a bit of a template, since this at least works in ArpMap but I was wondering if anyone would be able to offer any assistance or guidence/general help/best practices/examples/etc.

    Thanks
    Ben

  2. #2
    Ben Richardson
    Join Date
    Aug 2012
    Posts
    3
    Points
    0
    Answers Provided
    0


    0

    Default Re: GIS Beginner

    Ok a little red faced here. I discovered a type I was sending "<WFS_Capibilites>".

    Anyway so that aside I can now see the feature list however when I select any of them I am getting Nogeometry as the name of the service.

    This is exmaple of the describefeaturetype returns this

    Code:
    <xsd:schema xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wgim="http://wfs.wgim.com" targetNamespace="http://wfs.wgim.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:complexType name="Anomalytype">
        <xsd:complexContent mixed="false">
          <xsd:extension base="gml:AbstractFeatureType">
            <xsd:sequence>
              <xsd:element name="AssetName" type="xsd:string" /> 
              <xsd:element name="AssetFullName" type="xsd:string" /> 
              <xsd:element name="AssetFullNamePrimary" type="xsd:string" /> 
              <xsd:element name="the_geom" type="gml:PolygonPropertyType" /> 
              <xsd:element name="DateTime" type="xsd:dateTime" /> 
              <xsd:element name="WebOverviewURL" type="xsd:anyURI" /> 
              <xsd:element name="RefNo" type="xsd:string" /> 
              <xsd:element name="AnomalyName" type="xsd:string" /> 
              <xsd:element name="AnomalyNo" type="xsd:int" /> 
              <xsd:element name="State" type="xsd:string" /> 
              <xsd:element name="Description" type="xsd:string" /> 
              <xsd:element name="CommentaryNotes" type="xsd:string" /> 
            </xsd:sequence>
          </xsd:extension>
        </xsd:complexContent>
      </xsd:complexType>
      <xsd:element name="Anomaly" substitutionGroup="gml:_Feature" type="wgim:Anomalytype" /> 
    </xsd:schema>
    and getFeatures return members like this
    Code:
    <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs">
      <gml:featureMember xmlns:gml="http://www.opengis.net/gml">
        <wgim:Anomaly fid="Anomaly.2043" xmlns:wgim="http://wfs.wgim.com/">
          <wgim:AssetName>12" OEP</wgim:AssetName> 
          <wgim:AssetFullName>Wet Gas / Oil / 12" OEP</wgim:AssetFullName> 
          <wgim:AssetFullNamePrimary>Wet Gas / Oil / 12" OEP</wgim:AssetFullNamePrimary> 
          <gml:Geometry>
            <gml:MultiPoint>
              <gml:pointMember>
                <gml:Point>
                  <gml:coordinates>426522,6724730</gml:coordinates> 
                </gml:Point>
              </gml:pointMember>
              <gml:pointMember>
                <gml:Point>
                  <gml:coordinates>426522,6724730</gml:coordinates> 
                </gml:Point>
              </gml:pointMember>
            </gml:MultiPoint>
          </gml:Geometry>
          <wgim:DateTime>24/03/2009 5:09:22 PM</wgim:DateTime> 
          <wgim:WebOverviewURL>?searchKey=Anomaly&searchValue=2043</wgim:WebOverviewURL> 
          <wgim:RefNo>12" OEP</wgim:RefNo> 
          <wgim:AnomalyName>12" OEP / FS @KP2.22</wgim:AnomalyName> 
          <wgim:AnomalyNo>1</wgim:AnomalyNo> 
          <wgim:Status>Open</wgim:Status> 
          <wgim:State>Open</wgim:State> 
          <wgim:Description>Overlength freespan</wgim:Description> 
          <wgim:Comments /> 
        </wgim:Anomaly>
      </gml:featureMember>
    </wfs:FeatureCollection>
    And getCapabilites
    Code:
    <FeatureTypeList xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wgim="http://wfs.wgim.com/">
      <Operations>
        <Query /> 
      </Operations>
      <FeatureType>
        <Name xmlns="http://www.opengis.net/wfs">wgim:Event</Name> 
        <Title xmlns="http://www.opengis.net/wfs">NEXUS-IC Events</Title> 
        <SRS xmlns="http://www.opengis.net/wfs">EPSG:28352</SRS> 
        <LatLongBoundingBox minx="392925.51" miny="764263.5289" maxx="2755906.55" maxy="8640950.97" xmlns="http://www.opengis.net/wfs" /> 
      </FeatureType>
      <FeatureType>
        <Name xmlns="http://www.opengis.net/wfs">wgim:Anomaly</Name> 
        <Title xmlns="http://www.opengis.net/wfs">NEXUS-IC Anomailies</Title> 
        <SRS xmlns="http://www.opengis.net/wfs">EPSG:28352</SRS> 
        <LatLongBoundingBox minx="392925.51" miny="764263.5289" maxx="2755906.55" maxy="8640950.97" xmlns="http://www.opengis.net/wfs" /> 
      </FeatureType>
    </FeatureTypeList>

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts