EXTENSION in WMS-Mapfile using WFS

Christian Wilmes C.Wilmes at GMX.DE
Wed May 24 11:28:01 EDT 2006


The getCapabilies Document:

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <WFS_Capabilities version="1.0.0" updateSequence="0" xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengeospatial.net/wfs/1.0.0/WFS-capabilities.xsd">
- <!--  MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG 
  --> 
- <Service>
  <Name>MapServer WFS</Name> 
  <Title>WFS Server</Title> 
  <OnlineResource>http://127.0.0.1/cgi-bin/mapserv.exe?</OnlineResource> 
  </Service>
- <Capability>
- <Request>
- <GetCapabilities>
- <DCPType>
- <HTTP>
  <Get onlineResource="http://127.0.0.1/cgi-bin/mapserv.exe?" /> 
  </HTTP>
  </DCPType>
- <DCPType>
- <HTTP>
  <Post onlineResource="http://127.0.0.1/cgi-bin/mapserv.exe?" /> 
  </HTTP>
  </DCPType>
  </GetCapabilities>
- <DescribeFeatureType>
- <SchemaDescriptionLanguage>
  <XMLSCHEMA /> 
  <SFE_XMLSCHEMA /> 
  </SchemaDescriptionLanguage>
- <DCPType>
- <HTTP>
  <Get onlineResource="http://127.0.0.1/cgi-bin/mapserv.exe?" /> 
  </HTTP>
  </DCPType>
- <DCPType>
- <HTTP>
  <Post onlineResource="http://127.0.0.1/cgi-bin/mapserv.exe?" /> 
  </HTTP>
  </DCPType>
  </DescribeFeatureType>
- <GetFeature>
- <ResultFormat>
  <GML2 /> 
  <GML3 /> 
  </ResultFormat>
- <DCPType>
- <HTTP>
  <Get onlineResource="http://127.0.0.1/cgi-bin/mapserv.exe?" /> 
  </HTTP>
  </DCPType>
- <DCPType>
- <HTTP>
  <Post onlineResource="http://127.0.0.1/cgi-bin/mapserv.exe?" /> 
  </HTTP>
  </DCPType>
  </GetFeature>
  </Request>
  </Capability>
- <FeatureTypeList>
- <Operations>
  <Query /> 
  </Operations>
- <FeatureType>
  <Name>myWFS</Name> 
  <Title>myWFS</Title> 
  <SRS>EPSG:31467</SRS> 
  <LatLongBoundingBox minx="7.50295" miny="52.3333" maxx="7.54897" maxy="52.3698" /> 
  </FeatureType>
  </FeatureTypeList>
- <ogc:Filter_Capabilities>
- <ogc:Spatial_Capabilities>
- <ogc:Spatial_Operators>
  <ogc:Intersect /> 
  <ogc:DWithin /> 
  <ogc:BBOX /> 
  </ogc:Spatial_Operators>
  </ogc:Spatial_Capabilities>
- <ogc:Scalar_Capabilities>
  <ogc:Logical_Operators /> 
- <ogc:Comparison_Operators>
  <ogc:Simple_Comparisons /> 
  <ogc:Like /> 
  <ogc:Between /> 
  </ogc:Comparison_Operators>
  </ogc:Scalar_Capabilities>
  </ogc:Filter_Capabilities>
  </WFS_Capabilities>



The DescribeFeature Document:

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <schema targetNamespace="http://mapserver.gis.umn.edu/mapserver" xmlns:ms="http://mapserver.gis.umn.edu/mapserver" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" version="0.1">
  <import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengeospatial.net/gml/2.1.2/feature.xsd" /> 
  <element name="myWFS" type="ms:myWFSType" substitutionGroup="gml:_Feature" /> 
- <complexType name="myWFSType">
- <complexContent>
- <extension base="gml:AbstractFeatureType">
- <sequence>
  <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1" /> 
  <element name="angle" type="string" /> 
  <element name="len" type="string" /> 
  <element name="o_cendeg" type="string" /> 
  <element name="o_cendist" type="string" /> 
  <element name="o_clock" type="string" /> 
  <element name="o_maxdeg" type="string" /> 
  <element name="o_maxdist" type="string" /> 
  <element name="o_mindeg" type="string" /> 
  <element name="o_mindist" type="string" /> 
  <element name="od" type="string" /> 
  <element name="top" type="string" /> 
  <element name="type" type="string" /> 
  <element name="wid" type="string" /> 
  <element name="wl" type="string" /> 
  <element name="wt" type="string" /> 
  <element name="x" type="string" /> 
  <element name="y" type="string" /> 
  </sequence>
  </extension>
  </complexContent>
  </complexType>
  </schema>

Christian
> -------- Original-Nachricht --------
> Datum: Wed, 24 May 2006 11:04:32 -0400
> Von: Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca>
> An: Christian Wilmes <C.Wilmes at GMX.DE>,	<MAPSERVER-USERS at LISTS.UMN.EDU>
> Betreff: RE: [UMN_MAPSERVER-USERS] EXTENSION in WMS-Mapfile using WFS
> &#xA> Sounds like a server issue.  What happens if you try to access the
> server "by hand", i.e.
> 
> http://URL-to-your-WFS?version=1.0.0&service=WFS&request=GetCapabilities
> 
> http://URL-to-your-WFS?version=1.0.0&service=WFS&request=DescribeFeature
> Type
> 
> Where URL-to-your-WFS is the CONNECTION directive.
> 
> ..Tom
> 
> > -----Original Message-----
> > From: UMN MapServer Users List 
> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Wilmes
> > Sent: Wednesday, May 24, 2006 3:43 AM
> > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > Subject: [UMN_MAPSERVER-USERS] EXTENSION in WMS-Mapfile using WFS
> > 
> > > Hi All,
> > 
> > I'm writing a WMS-Mapscript. For one Layer I'm getting the 
> > data from a WFS, which is set up by me too. Now I want to set 
> > an Extension in the Mapscript of the WMS like that:
> > 
> > > 	LAYER
> > 		NAME "WFS"
> > 		TYPE POINT
> > 		STATUS ON
> > 		DEBUG ON
> > 		CONNECTIONTYPE WFS
> > 		CONNECTION "http://localhost/cgi-bin/mapserv.exe?"
> > 		METADATA
> > 			"wfs_typename"          "myWFS"
> > 			"wfs_version"           "1.0.0"
> > 			"wfs_request_method"    "GET"
> > 		END
> > 		
> > 		> 		PROJECTION
> > 			"init=EPSG:31467"
> > 		END
> > 
> > 		> 		CLASS
> > 			NAME test
> > 			EXPRESSION ([test] > 1)
> > 			SYMBOL "Punkt"
> > 			SIZE 10
> > 			COLOR 255 0 0
> > 		END
> >         END
> > 
> > > Testing the WMS sends the following error:
> > 
> > <ServiceException>msDrawMap(): Image handling error. Failed 
> > to draw layer named 'RosoftWFS'. msOGRLayerInitItemInfo(): 
> > OGR error. Invalid Field name: len</ServiceException>
> > 
> > > So what could be the reason of the error?
> > 
> > Best Regards
> > Christian
> > -- 
> > 
> > > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
> >       Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
> >     
> > 

-- 


Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
      Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
    



More information about the mapserver-users mailing list