[UMN_MAPSERVER-USERS] MapServer with MapInfo (WFS)

Léveillé, James James.Leveille at MTQ.GOUV.QC.CA
Thu Apr 27 05:40:14 PDT 2006


Hi Frank - thanks for the answer ...
Here are some more details ...

=== Here is the DescribeFeatureType :

  <?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="Reseau_routier_MTQ" type="ms:Reseau_routier_MTQType"
substitutionGroup="gml:_Feature" /> 
- <complexType name="Reseau_routier_MTQType">
- <complexContent>
- <extension base="gml:AbstractFeatureType">
- <sequence>
  <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0"
maxOccurs="1" /> 
  <element name="IDE_SOUS_ROUTE" type="string" /> 
  </sequence>
  </extension>
  </complexContent>
  </complexType>
  </schema>


=== Here is some more info I found on specifications:

- In MapInfo v8 documentation, it is written that this version of the WFS
client supports GML2 (OGC GML V2.1.1).
- For MapServer, OGC Specifications supported by MapServer are Web Feature
Service (OGC:WFS) 1.0.0 and Geography Markup Language (OGC:GML 2.1.2,
OGC:GML 3.1.0 Level 0 Profile)


=== I also found this (in MapInfo Documentation) regarding the two errors I
had:

FIRST ERROR: The WMS Server returned data which was neither in the requested
format nor a recognized WMS service exception: <message from server>
DESCRIPTION : The raw data following the colon is transmitted by the WMS
server. This may help you analyze the problem.The exception message from the
server could not be understood. For example, the exception message may not
have been in XML format.

SECOND ERROR: In response to a DescribeFeatureType request, the WFS Server
returned an invalid feature type.
DESCRIPTION: MapInfo could not interpret the schema returned by the server.
This message is usually preceded by either another MapInfo error message or
raw data transmitted by the WFS server. This may help you analyze the
problem.


=== Finally:
- I'm just trying to connect in "read-only" mode, not transactional.
- I also tested GeoMediaPro as a WFS client and I got a "Feature Identifier
'fid' is not defined in the data" error. I'm in touch with people from
Intergraph regarding this problem.

Just to let you know that MapInfo works GREAT as a WMS client (not yet as a
WFS client). I tested Udig, GAIA, GeoMediaPro, quickWMS and a few other WMS
clients, but MapInfo was the fastest ...

I'll keep working on all this. It HAS TO WORK !!!

Thanks for your help.



__________________________________________
James Léveillé
 
Intélec Géomatique
420, boul. Charest Est
Bureau 400
Québec (QC), Canada
G1K 8M4
 
Intélec Géomatique: 418.687.5000
MTQ: 418.380.2005 (#227)


-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de Frank Warmerdam
Envoyé : 26 avril 2006 23:27
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : Re: [UMN_MAPSERVER-USERS] MapServer with MapInfo (WFS)


Léveillé wrote:
> Hi all,
>  
> I'm trying to test MapServer (v 4.8.3), the WFS service, with MapInfo 
> (v
> 8.0) and keep having this error message:
>  
> *"The WFS Server returned data which was neither in the requested 
> format
> nor a recognized WFS service exception : POST body is short.*
> *In response to a DescribeFeatureType request, the WFS Server returned 
> an invalid feature type."*
>  
> The GetCapabilities looks fine, and the GetFeature works fine with IE 
> ... Here is my (simple) MapFile.

James,

I would suggest you do a DescribeFeatureType in IE and post the resulting
XML. There may be something in the resulting XML that is invalid or at least
confusing to MapInfo.  I gather MapInfo operates as a WFS client?  Is that
readonly or transactional too?  I have trouble keeping up with who does
what, and would be interested to hear if MapInfo proves to be a useful
desktop client for WFS servers.

Best regards,
-- 
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the MapServer-users mailing list