[Mapserver-users] WFS Server Configuration

Van Ulden, Joost jvanulde at nrcan.gc.ca
Tue Dec 16 11:18:00 PST 2003


Ok, could someone please confirm that my request is correct?  I would like
to return all properties of all instances of type amsco.  

My request is:

http://localhost/scripts/mapserv.exe?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&R
EQUEST=GetFeature&TYPENAME=amsco

But I get:

 <?xml version="1.0" encoding="ISO-8859-1" ?> 
  <wfs:FeatureCollection xmlns="http://www.ttt.org/myns"
xmlns:myns="http://www.ttt.org/myns" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-basic.xsd
http://www.ttt.org/myns
http://www.nrcan.gc.ca?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType
&TYPENAME=" />

Thanks in advance!

============================================
Joost van Ulden
Programmer/Analyst
Natural Resources Canada / Ressources naturelles Canada
Geological Survey of Canada / Commission geologique du Canada
101 - 605 Robson Street / 101 - 605 rue Robson
Vancouver, B.C. / Vancouver (C.-B.)
V6B 5J3
Office/Bureau:  604.666.7525
fax/telecopieur: 604.666.1124
jvanulde at nrcan.gc.ca
============================================


> -----Original Message-----
> From: Doyon, Jean-Francois 
> Sent: Tuesday, December 16, 2003 10:30 AM
> To: Van Ulden, Joost; Mapserver-Users at Lists. Gis. Umn. Edu 
> (mapserver-users at lists.gis.umn.edu)
> Subject: RE: [Mapserver-users] WFS Server Configuration
> 
> 
> Joost,
> 
> Is DUMP set to "true" on the layer in the mapfile ?
> 
> The wfs_geometry_element_name simply sets the XML Element 
> name the geometry will exist under.
> 
> Once you manage to see GML output you'll get a better idea of 
> what this means, though there's no great reason to play with 
> that ... Or at least, that's most likely NOT the cause of 
> this specific problem !
> 
> J.F.
> 
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of 
> Van Ulden, Joost
> Sent: Tuesday, December 16, 2003 1:17 PM
> To: Mapserver-Users at Lists. Gis. Umn. Edu
> (mapserver-users at lists.gis.umn.edu)
> Subject: [Mapserver-users] WFS Server Configuration
> 
> 
> Could someone please clarify what exactly the 
> "wfs_geometry_element_name" metadata element is supposed to 
> do?  Where is "MS_GEOMETRY" set?
> 
> For some reason I am getting nothing back from the server 
> when I query all properties of all instances of a feature 
> type.  Any suggestions?  I am using a shapefile.
> 
> This is what the documentation states: 
> wfs_geometry_element_name Name of the element (i.e. 
> attribute) to use for the geometry in GML output. If not set 
> then "MS_GEOMETRY" will be used. The layer-level 
> "wfs_geometry_element_name" takes precedence over this value.
> 
> Here is the DescribeFeatureType results for my shapefile: 
> <complexType name="amsco_Type">
>     <complexContent>
>       <extension base="gml:AbstractFeatureType">
>         <sequence>
>           <element name="MS_GEOMETRY" 
>                    type="gml:PolygonPropertyType" 
>                    nillable="false" />
>           <element name="AREA" type="string" />
>           <element name="PERIMETER" type="string" />
>           <element name="AMSCO_" type="string" />
>           <element name="AMSCO_ID" type="string" />
>           <element name="ID" type="string" />
>           <element name="SYMBOL" type="string" />
>           <element name="LABEL" type="string" />
>           <element name="R" type="string" />
>           <element name="G" type="string" />
>           <element name="B" type="string" />
>           <element name="RGB" type="string" />
>         </sequence>
>       </extension>
>     </complexContent>
>   </complexType>
> 
> Cheers,
> 
> ============================================
> Joost van Ulden
> Programmer/Analyst
> Natural Resources Canada / Ressources naturelles Canada 
> Geological Survey of Canada / Commission geologique du Canada 
> 101 - 605 Robson Street / 101 - 605 rue Robson Vancouver, 
> B.C. / Vancouver (C.-B.) V6B 5J3
> Office/Bureau:  604.666.7525
> fax/telecopieur: 604.666.1124
> jvanulde at nrcan.gc.ca ============================================
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
> 



More information about the MapServer-users mailing list