[Mapserver-users] Wfs-client, no image appears

Shiming Li sli1 at uni-forst.gwdg.de
Mon Mar 15 07:05:24 PST 2004


This is a multi-part message in MIME format.
--------------080803070702080501070803
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

I want to use MapServer as a WFS client, so I compiled with the option 
--with-wfsclient.
But there is nothing in the image area. Is there something wrong?
Any sugesstion will be appreciated.

Computer Environment: Linux SuSE 8.2, Mozilla 1.6, MapServer 4.0.1 (or 
nightly build),

The output of the mapserv -v is
MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ 
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=JPEG 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

I added the following lines to  .map file
LAYER
    NAME "wfslayer"
    TYPE POINT
    CONNECTIONTYPE WFS
    CONNECTION  
"http://localhost:8080/geoserver/wfs?version=1.0.0&request=GetFeature&typename=bi"
    STATUS ON
    #PROJECTION
    #     "proj=utm"
    #     "ellps=WGS84"
    #     "zone=32"
    #     "north"
    #     "no_defs"
     #  OR:
     #  "init=epsg:26915"
   # END
    PROJECTION
      "init=epsg:32632"
    END
    METADATA
      "wfs_connectiontimeout" "60"              # Default is 30 seconds
      "wfs_latlonboundingbox" "-75 45 -70 50"   # Area covered by this layer
    END
    CLASS
      SYMBOL 'circle'
      COLOR 200 0 0
    END
END

In the tmp directory, I found  there is a file named
 eedd32eaaae2175d51230f211eb9dc9b.tmp.gml (MapServer 4.1 nightly build)
(In MapServer 4.0.1, there is
http___localhost_8080_geoserver_wfs_version_1_0_0_request_GetFeature_typename_
bi_REQUEST_GetFeature_BBOX_3520125_233879_5719007_333736_3539269_014796_5738651_006564.tmp.gml)

Here is the part of  content of the .gml
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" 
xmlns:topp="http:/
/localhost:8080/geoserver/" xmlns:gml="http://www.opengis.net/gml" 
xmlns:xsi="ht
tp://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://localhost:80
80/geoserver/ 
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=b
i http://www.opengis.net/wfs 
http://localhost:8080/geoserver/data/capabilities/w
fs/1.0.0/WFS-basic.xsd">
  <gml:boundedBy>
    <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#27354">
      <gml:coordinates decimal="." cs="," ts=" ">3540100,5729300 
3540100,5733400
 3544600,5733400 3544600,5729300</gml:coordinates>
    </gml:Box>
  </gml:boundedBy>
  <gml:featureMember>
    <topp:bi fid="bi.1">
      <topp:the_geom>
        <gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#27354">
          <gml:coordinates decimal="." cs="," ts=" 
">3542800,5731500</gml:coordi
nates>
        </gml:Point>
      </topp:the_geom>




--------------080803070702080501070803
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
I want to use MapServer as a WFS client, so I compiled with the option
--with-wfsclient. <br>
But there is nothing in the image area. Is there something wrong?<br>
Any sugesstion will be appreciated.<br>
<br>
Computer Environment: Linux SuSE 8.2, Mozilla 1.6, MapServer 4.0.1 (or
nightly build), <br>
<br>
The output of the mapserv -v is <br>
MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=JPEG
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br>
<br>
I added the following lines to  .map file<br>
LAYER<br>
    NAME "wfslayer"<br>
    TYPE POINT<br>
    CONNECTIONTYPE WFS<br>
    CONNECTION 
<a class="moz-txt-link-rfc2396E" href="http://localhost:8080/geoserver/wfs?version=1.0.0&request=GetFeature&typename=bi">"http://localhost:8080/geoserver/wfs?version=1.0.0&request=GetFeature&typename=bi"</a><br>
    STATUS ON<br>
    #PROJECTION<br>
    #     "proj=utm"<br>
    #     "ellps=WGS84"<br>
    #     "zone=32"<br>
    #     "north"<br>
    #     "no_defs"<br>
     #  OR: <br>
     #  "init=epsg:26915"<br>
   # END<br>
    PROJECTION<br>
      "init=epsg:32632"<br>
    END<br>
    METADATA<br>
      "wfs_connectiontimeout" "60"              # Default is 30 seconds<br>
      "wfs_latlonboundingbox" "-75 45 -70 50"   # Area covered by this
layer<br>
    END<br>
    CLASS<br>
      SYMBOL 'circle'<br>
      COLOR 200 0 0<br>
    END<br>
END <br>
<br>
In the tmp directory, I found  there is a file named<br>
 eedd32eaaae2175d51230f211eb9dc9b.tmp.gml (MapServer 4.1 nightly build)<br>
(In MapServer 4.0.1, there is <br>
http___localhost_8080_geoserver_wfs_version_1_0_0_request_GetFeature_typename_<br>
bi_REQUEST_GetFeature_BBOX_3520125_233879_5719007_333736_3539269_014796_5738651_006564.tmp.gml)<br>
<br>
Here is the part of  content of the .gml<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<wfs:FeatureCollection xmlns:wfs=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/wfs">"http://www.opengis.net/wfs"</a>
xmlns:topp="<a class="moz-txt-link-freetext" href="http:/">http:/</a><br>
/localhost:8080/geoserver/" xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
xmlns:xsi="ht<br>
tp://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="<a class="moz-txt-link-freetext" href="http://localhost:80">http://localhost:80</a><br>
80/geoserver/
<a class="moz-txt-link-freetext" href="http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=b">http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=b</a><br>
i <a class="moz-txt-link-freetext" href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>
<a class="moz-txt-link-freetext" href="http://localhost:8080/geoserver/data/capabilities/w">http://localhost:8080/geoserver/data/capabilities/w</a><br>
fs/1.0.0/WFS-basic.xsd"><br>
  <gml:boundedBy><br>
    <gml:Box
srsName=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml/srs/epsg.xml#27354">"http://www.opengis.net/gml/srs/epsg.xml#27354"</a>><br>
      <gml:coordinates decimal="." cs="," ts=" ">3540100,5729300
3540100,5733400<br>
 3544600,5733400 3544600,5729300</gml:coordinates><br>
    </gml:Box><br>
  </gml:boundedBy><br>
  <gml:featureMember><br>
    <topp:bi fid="bi.1"><br>
      <topp:the_geom><br>
        <gml:Point
srsName=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml/srs/epsg.xml#27354">"http://www.opengis.net/gml/srs/epsg.xml#27354"</a>><br>
          <gml:coordinates decimal="." cs="," ts="
">3542800,5731500</gml:coordi<br>
nates><br>
        </gml:Point><br>
      </topp:the_geom><br>
<br>
<br>
<br>
</body>
</html>

--------------080803070702080501070803--



More information about the MapServer-users mailing list