WFS error with MapServer 4.10.0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

WFS error with MapServer 4.10.0

TECHER David
Hi all

I'm new on these mailing-list

I tried to use udig 1.1-RC5 or 1.0.6 using a WFS connection btu without
success ;(

like

I've got the following error

GRAVE: FATAL The element type "br" must be terminated by the matching
end-tag "</br>".

from
 http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfiles/madatabase.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities

So did I do a mistake?

Any help would be very appreciated! Many thanks

<?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.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->

<Service>
  <Name>MapServer WFS</Name>
  <Title>DRASS LR WFS</Title>
 
<OnlineResource>http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&amp;</OnlineResource>
</Service>

<Capability>
  <Request>
    <GetCapabilities>
      <DCPType>
        <HTTP>
          <Get
onlineResource="http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&amp;"
/>
        </HTTP>
      </DCPType>
      <DCPType>
        <HTTP>
          <Post
onlineResource="http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&amp;"
/>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <DescribeFeatureType>
      <SchemaDescriptionLanguage>
        <XMLSCHEMA/>
        <SFE_XMLSCHEMA/>
      </SchemaDescriptionLanguage>
      <DCPType>
        <HTTP>
          <Get
onlineResource="http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&amp;"
/>
        </HTTP>
      </DCPType>
      <DCPType>
        <HTTP>
          <Post
onlineResource="http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&amp;"
/>
        </HTTP>
      </DCPType>
    </DescribeFeatureType>
    <GetFeature>
      <ResultFormat>
        <GML2/>
        <GML3/>
      </ResultFormat>
      <DCPType>
        <HTTP>
          <Get
onlineResource="http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&amp;"
/>
        </HTTP>
      </DCPType>
      <DCPType>
        <HTTP>
          <Post
onlineResource="http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&amp;"
/>
        </HTTP>
      </DCPType>
    </GetFeature>
  </Request>
</Capability>

<FeatureTypeList>
  <Operations>
    <Query/>
  </Operations>
    <FeatureType>
        <Name>bourgogne_communes</Name>
        <Title>bourgogne_communes</Title>
        <SRS>EPSG:27572</SRS>
        <LatLongBoundingBox minx="-179.634" miny="-70.3192"
maxx="179.479" maxy="-27.224" />
    </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>

Here is my mapfile

MAP
  EXTENT 615350.90625 2130274.75 863494.15625 2378418
  FONTSET "/var/www/ingeresin/mapserver/etc/fonts.txt"
  IMAGECOLOR 255 255 255
  IMAGETYPE png
  SYMBOLSET "/var/www/ingeresin/mapserver/etc/symbols.sym"
  SIZE 600 736
  STATUS ON
  UNITS METERS
  NAME "DRASS34"

  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE "PC256"
    TRANSPARENT FALSE
  END

  PROJECTION
    "init=epsg:27572"
  END
  LEGEND
    IMAGECOLOR 255 255 255
    KEYSIZE 20 10
    KEYSPACING 5 5
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
      POSITION CC
    END
    POSITION LL
    STATUS OFF
  END

  QUERYMAP
    COLOR 255 255 0
    SIZE -1 -1
    STATUS OFF
    STYLE HILITE
  END

  SCALEBAR
    COLOR 0 0 0
    IMAGECOLOR 255 255 255
    INTERVALS 4
    LABEL
      SIZE MEDIUM
      TYPE BITMAP
      BUFFER 0
      COLOR 0 0 0
      FORCE FALSE
      MINDISTANCE -1
      MINFEATURESIZE -1
      OFFSET 0 0
      PARTIALS TRUE
    END
    POSITION LL
    SIZE 200 3
    STATUS OFF
    STYLE 0
    UNITS MILES
  END

  WEB
    IMAGEPATH "/var/www/ingeresin/mapserver/tmp/"
    IMAGEURL "/ingeresin/mapserver/tmp/"
      METADATA
        "wms_srs" "EPSG:27572"
        "wms_onlineresource" "http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map"
        "wfs_srs" "EPSG:27572"
        "wfs_title" "DRASS LR WFS"
        "wfs_onlineresource" "http://192.168.0.4/cgi-bin/mapserv?map=/var/www/ingeresin/mapserver/mapfile/madatabase.map&"
        "wms_title" "DRASS LR WFS"
      END
    QUERYFORMAT text/html
    LEGENDFORMAT text/html
    BROWSEFORMAT text/html
  END

  LAYER
    CONNECTION "user=postgres dbname=ingeresin host=localhost"
    CONNECTIONTYPE POSTGIS
    DATA "transform from (select transform(the_geom,27572),* from data_34.bourgogne_communes) as foo  USING UNIQUE gid USING SRID=27572"
    DUMP TRUE
      METADATA
        "wms_srs" "EPSG:27572"
        "wfs_srs" "EPSG:27572"
        "wfs_title" "bourgogne_communes"
        "gml_include_items" "all"
        "gml_featuredid" "GID"
        "wms_title" "bourgogne_communes"
      END
    NAME "bourgogne_communes"
    PROJECTION
      "init=epsg:27572"
    END
    SIZEUNITS PIXELS
    STATUS ON
    TOLERANCEUNITS PIXELS
    TYPE POLYGON
    UNITS METERS
    CLASS
      LABEL
        SIZE MEDIUM
        TYPE BITMAP
        BACKGROUNDCOLOR 255 255 255
        BUFFER 0
        COLOR 22 8 3
        FORCE FALSE
        MINDISTANCE -1
        MINFEATURESIZE -1
        OFFSET 0 0
        OUTLINECOLOR 255 255 255
        PARTIALS TRUE
        POSITION CC
      END
      METADATA
      END
      STYLE
        ANGLE 360
        COLOR 255 255 255
        OUTLINECOLOR 134 156 78
        SIZE 5
        SYMBOL "circle"
      END
    END
  END

END




       

       
               
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel