WFS schemas

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Thu Nov 18 10:00:35 EST 2004


> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of N Zhou
> Sent: Thursday, 18 November, 2004 09:55
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] WFS schemas
> 
> 
> Hi Bart,
> 
> Thank you for the information. I updated my mapserver to 4.4 
> in order to add namespace. But namescape doesn't work for the 
> application schema. We also learned that right now we  cannot 
> use application-level schema.
> 

You can also set "wfs_namespace_uri" to set the associated URI for the
prefix.

..Tom


> Naijun
> 
> >From: "Bart van den Eijnden" <bartvde at xs4all.nl>
> >To: "N Zhou" <zhou_naijun at hotmail.com>, MAPSERVER-USERS at lists.umn.edu
> >Subject: Re: [UMN_MAPSERVER-USERS] WFS schemas
> >Date: Mon, 15 Nov 2004 21:22:01 +0100
> >
> >Hi,
> >
> >the following bugzilla reports might be of information to you:
> >
> >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=950
> >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=884
> >
> >In short, you cannot use your own schema with Mapserver for 
> WFS at the 
> >moment. You can change the namespace, by using wfs_namespace_prefix, 
> >see:
> >
> >http://mapserver.gis.umn.edu/doc/wfs-server-howto.html
> >
> >Hope this helps.
> >
> >Best regards,
> >Bart
> >
> >On Mon, 15 Nov 2004 14:13:17 -0600, N Zhou <zhou_naijun at HOTMAIL.COM> 
> >wrote:
> >
> >>Hi,
> >>
> >>I'd highly appreciate your help/suggestion on my question 
> of applying 
> >>a different schemas in WFS.
> >>
> >>I sent a WFS DescribeFeatureType request to map server and I got a 
> >>response
> >>as:
> >>
> >><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
> >>http://myhost/wfsschema/wfs/1.0.0/WFS-basic.xsd 
> >>http://www.ttt.org/myns 
> http://myhost/cgi-bin/mapserv?map=/myWFS/data/mywfs.map&SERVIC
E=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=ngs">
>>   <import namespace="http://www.opengis.net/gml"
>>schemaLocation="http://myhost/wfsschema/gml/2.1/feature.xsd" />
>>   <element name="ngs" type="myns:ngs_Type" 
>>substitutionGroup="gml:_Feature"
>>/>
>>- <complexType name="ngs_Type">
>>- <complexContent>
>>- <extension base="gml:AbstractFeatureType">
>>- <sequence>
>>   <element name="MS_GEOMETRY" type="gml:PointPropertyType" 
>>nillable="false" />
>>   <element name="PID" type="string" />
>>   <element name="LATITUDE" type="string" />
>>   <element name="LONGITUDE" type="string" />
>>   </sequence>
>>   </extension>
>>   </complexContent>
>>   </complexType>
>>   </schema>
>>
>>Here the feature type "ngs_type" contains a list of elements. I wonder

>>how I can get a response with features and elements defined by a 
>>specific schema
>>(.xsd). I see some wfs schemas under the ows_schemas_location, but I
>>don't
>>know where I can place my own schema.  Do I need to change the
>>xmlns="http://www.ttt.org/myns" to another namespace, and how?
>>Information
>>about how schemas in WFS are imported and refered are also
appreciated.
>>
>>Thanks a lot!
>>
>>Yours,
>>
>>N. Zhou
>>
>
>
>
>--
>Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the mapserver-users mailing list