wfs server problem

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Fri Aug 26 03:57:34 EDT 2005


The warnings or errors are because of the fact that your GIS attributes contain special characters, like é, and this is not allowed for XML element names.

I think the only thing you could do is rename your GIS attributes, so Categorie instead of Catégorie. Maybe something else is possible with Steve's new GML3 output, which is more flexible, but I don't have enough knowledge of that.

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Mehdi Kiman <oubinny at HOTMAIL.COM> 08/26/05 9:51 am >>>
Sorry, now i have the right GetCapabilities WFS response :

<?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.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
INPUT=SHAPEFILE
  -->
- <Service>
  <Name>MapServer WFS</Name>
  <Title>WFS Pays Ne de La Mer</Title>
  
<OnlineResource>http://emir:8080/cgi-bin/myows.exe?config_wfs.map&</OnlineResource>
  </Service>
- <Capability>
- <Request>
- <GetCapabilities>
- <DCPType>
- <HTTP>
  <Get onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" 
/>
  </HTTP>
  </DCPType>
- <DCPType>
- <HTTP>
  <Post onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" 
/>
  </HTTP>
  </DCPType>
  </GetCapabilities>
- <DescribeFeatureType>
- <SchemaDescriptionLanguage>
  <XMLSCHEMA />
  </SchemaDescriptionLanguage>
- <DCPType>
- <HTTP>
  <Get onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" 
/>
  </HTTP>
  </DCPType>
- <DCPType>
- <HTTP>
  <Post onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" 
/>
  </HTTP>
  </DCPType>
  </DescribeFeatureType>
- <GetFeature>
- <ResultFormat>
  <GML2 />
  </ResultFormat>
- <DCPType>
- <HTTP>
  <Get onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" 
/>
  </HTTP>
  </DCPType>
- <DCPType>
- <HTTP>
  <Post onlineResource="http://emir:8080/cgi-bin/myows.exe?config_wfs.map&" 
/>
  </HTTP>
  </DCPType>
  </GetFeature>
  </Request>
  </Capability>
- <FeatureTypeList>
- <Operations>
  <Query />
  </Operations>
- <FeatureType>
  <Name>Contours_de_communes</Name>
  <Title>Contours_de_communes</Title>
  <SRS>epsg:27582</SRS>
  <LatLongBoundingBox minx="-1.38396" miny="46.2776" maxx="-1.1549" 
maxy="46.4928" />
  </FeatureType>
- <FeatureType>
  <Name>Parcelles</Name>
  <Title>Parcelles</Title>
  <SRS>epsg:27582</SRS>
  <LatLongBoundingBox minx="-1.45418" miny="46.2674" maxx="-1.15476" 
maxy="46.4732" />
  </FeatureType>
- <FeatureType>
  <Name>Routes</Name>
  <Title>Routes</Title>
  <SRS>epsg:27582</SRS>
  <LatLongBoundingBox minx="-1.43695" miny="46.2625" maxx="-1.09479" 
maxy="46.5377" />
  </FeatureType>
- <FeatureType>
  <Name>Sections_cadastrales</Name>
  <Title>SectionsCadastrales</Title>
  <SRS>epsg:27582</SRS>
  <LatLongBoundingBox minx="-1.29993" miny="46.3063" maxx="-1.15657" 
maxy="46.4733" />
  </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>

But i have errors in my GetFeature request :
http://emir:8080/cgi-bin/mywfs.exe?&SERVICE=WFS&REQUEST=getfeature&VERSION=1.0.0&TYPENAME=Routes 

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: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-basic.xsd 
http://www.ttt.org/myns 
http://emir:8080/cgi-bin/myows.exe?config_wfs.map&SERVICE=WFS&VERSION=1..0.0&REQUEST=DescribeFeatureType&TYPENAME=Routes">
- <gml:boundedBy>
- <gml:Box srsName="epsg:27582">
  <gml:coordinates>310559.988523,2147175.004190 
335547.035982,2176659.969948</gml:coordinates>
  </gml:Box>
  </gml:boundedBy>
- <gml:featureMember>
- <Routes>
- <gml:boundedBy>
- <gml:Box srsName="epsg:27582">
  <gml:coordinates>328391.152717,2160988.975126 
330870.048750,2167145.028208</gml:coordinates>
  </gml:Box>
  </gml:boundedBy>
- <gml:lineStringProperty>
- <gml:LineString srsName="epsg:27582">
  <gml:coordinates>330870.048750,2167145.028208 330644.007160,2166700.964751 
330568.048937,2166309.946026 330678.950234,2165020.947585 
330538.032264,2164136.945099 330214.035500,2163551.619969 
330027.863385,2163201.845528 329999.565223,2163138.833427 
329829.890822,2162669.908832 329800.332419,2162608.615244 
329613.129196,2162388.760297 329546.450937,2162262.621528 
329461.785588,2162084.010865 329417.677117,2162022.946412 
329358.445743,2161948.592133 329327.397963,2161888.444219 
329291.652916,2161839.523915 329176.856326,2161766.315311 
329081.077933,2161668.474705 328952.304114,2161525.494520 
328919.308686,2161505.788918 328775.526530,2161396.720700 
328658.896860,2161307.358085 328554.525908,2161224.640382 
328469.975126,2161143.870326 328430.449354,2161110.874899 
328412.576831,2161037.551728</gml:coordinates>
  </gml:LineString>
  </gml:lineStringProperty>
- <!--  WARNING: The value 'Catégorie' is not valid in a XML tag context.
  -->
  <Catégorie>Départementale</Catégorie>
  </Routes>
  </gml:featureMember>



More information about the mapserver-users mailing list