<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>BODY {
FONT: 10pt Tahoma, Verdana, sans-serif
}
</STYLE>
<META content="MSHTML 6.00.2900.5945" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>I inspired to compare how Mapserver and Geoserver are
handling this thing. At least I can say that they are doing thing in a bit
different way, and </SPAN></FONT><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Geoserver is creating alwayd the DescribeFeatureType
URL in the GetFeature output without OUTPUTFORMAT.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>GEOSERVER</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>==========</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>- GetFeature with WFS version 1.1.0 and
outputformat=gml2</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010> -> RESULT schema location contains
"...geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=..."</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>So the GetFeature was done with version 1.1.0 but the
URL to schema location is containing "version=1.0.0", and because WFS 1.0.0
default is gml2 this is giving a correct schema.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>- GetFeature with WFS version 1.1.0 and
outputformat=text/xml; subtype=gml/3.1.1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010> -> RESULT schema location contains
"...geoserver/wfs?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=..."</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Now the schema location URL is using "version=1.1.0"
which defaults to gml3.1.1 and schema is correct.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>MAPSERVER</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>==========</SPAN></FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>On the other hand, Mapserver version 5.2.1 behaves this
way</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>GetFeature request wioth WFS version 1.1.0 and
outputformat=gml2</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010> (here is part of my test request
literally:
&service=wfs&version=1.1.0&request=getfeature&typeName=test&maxfeatures=2&OUTPUTFORMAT=gml2)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010> </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>-> RESULT schema location contains
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>/cgi-bin/wfstest?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=test&OUTPUTFORMAT=XMLSCHEMA"></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Running this DescribeFeatureType query returns schema
with reference to "<A
href="http://schemas.opengis.net/gml/2.1.2/feature.xsd">http://schemas.opengis.net/gml/2.1.2/feature.xsd</A>"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Features in the GetFeature are in gml2
format.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>I suppose this is working OK.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Request WFS version 1.1.0 and outputformat=text/xml;
subtype=gml/3.1.1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>
(&service=wfs&version=1.1.0&request=getfeature&typeName=test&maxfeatures=2&OUTPUTFORMAT=text/xml;
subtype=gml/3.1.1)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>This does not work at all for me. Mapserver is
returning features in gml2 format with this parameter, even if I am specially
asking for gml3.1.1</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Request WFS version 1.1.0 and without using
outputformat at all (WFS 1.1.0 default is text/xml;
subtype=gml/3.1.1)</SPAN></FONT></DIV>
<DIV dir=ltr align=left>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>- > schema location contains</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>cgi-bin/wfstest?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=test&OUTPUTFORMAT=text/xml;
subtype=gml/3.1.1 </SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Running this query returns schema with reference to "<A
href="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd">http://schemas.opengis.net/gml/3.1.1/base/gml.xsd</A>"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>Features in the GetFeature are in gml 3.1.1.
format.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>I suppose this is working OK. However, Mapserver
does not need OUTPUTFORMAT parameter here but the result is the same even if I
leave it out.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010>-Jukka Rahkonen-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=012493112-26042010></SPAN></FONT></SPAN></FONT><FONT face=Arial
color=#0000ff><SPAN class=012493112-26042010></SPAN></FONT> </DIV></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff></FONT> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma><B>Lähettäjä:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>Roy
Braam<BR><B>Lähetetty:</B> 26. huhtikuuta 2010 14:26<BR><B>Vastaanottaja:</B>
mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> [mapserver-users] invalid schema
location?<BR></FONT><BR></DIV></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>Hello List,<BR><BR>When i do a WFS getFeature request mapserver
returns a xml that starts with:<BR><BR><?xml version='1.0'
encoding="ISO-8859-1" ?><BR><wfs:FeatureCollection<BR>
xmlns:ms="http://mapserver.gis.umn.edu/mapserver"<BR>
xmlns:gml="http://www.opengis.net/gml"<BR>
xmlns:wfs="http://www.opengis.net/wfs"<BR>
xmlns:ogc="http://www.opengis.net/ogc"<BR>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<BR>
xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver
http://server.nl/geoservices/aankoopgebieden?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=LL&OUTPUTFORMAT=text/xml;
subtype=gml/3.1.1 http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
numberOfFeatures="16"><BR>
<gml:boundedBy><BR><BR>If i read this
site:<BR>http://www.w3.org/TR/xmlschema-0/#schemaLocation<BR><BR>the schema
locations needs to be "pairs of URI references, separated by white
space".<BR>Because the OUTPUTFORMAT="text/xml; subtype=gml/3.1.1" a space is
in the url of the first pair in my example.<BR>1) spaces are not valid in
URLS??<BR>2) you don't have pairs anymore. You have a odd number of values if
you separate by space...<BR><BR>So, is mapserver generating a invalid XML?? Or
i'm doing something wrong....<BR><BR>Version of mapserver =
5.6.3<BR><BR>Roy</BLOCKQUOTE></BODY></HTML>