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

Shiming Li sli1 at uni-forst.gwdg.de
Mon Mar 15 10:05:24 EST 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&nbsp; .map file<br>
LAYER<br>
&nbsp;&nbsp;&nbsp; NAME "wfslayer"<br>
&nbsp;&nbsp;&nbsp; TYPE POINT<br>
&nbsp;&nbsp;&nbsp; CONNECTIONTYPE WFS<br>
&nbsp;&nbsp;&nbsp; CONNECTION&nbsp;
<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&amp;request=GetFeature&amp;typename=bi"</a><br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; #PROJECTION<br>
&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; &nbsp;"proj=utm"<br>
&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; &nbsp;"ellps=WGS84"<br>
&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; &nbsp;"zone=32"<br>
&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; &nbsp;"north"<br>
&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; &nbsp;"no_defs"<br>
&nbsp;&nbsp;&nbsp; &nbsp;#&nbsp; OR: <br>
&nbsp;&nbsp;&nbsp; &nbsp;#&nbsp; "init=epsg:26915"<br>
&nbsp;&nbsp; # END<br>
&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:32632"<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wfs_connectiontimeout" "60"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Default is 30 seconds<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wfs_latlonboundingbox" "-75 45 -70 50"&nbsp;&nbsp; # Area covered by this
layer<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 'circle'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 200 0 0<br>
&nbsp;&nbsp;&nbsp; END<br>
END <br>
<br>
In the tmp directory, I found&nbsp; there is a file named<br>
&nbsp;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&nbsp; content of the .gml<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
&lt;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"&gt;<br>
&nbsp; &lt;gml:boundedBy&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;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>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:coordinates decimal="." cs="," ts=" "&gt;3540100,5729300
3540100,5733400<br>
&nbsp;3544600,5733400 3544600,5729300&lt;/gml:coordinates&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/gml:Box&gt;<br>
&nbsp; &lt;/gml:boundedBy&gt;<br>
&nbsp; &lt;gml:featureMember&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;topp:bi fid="bi.1"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;topp:the_geom&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;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>&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;gml:coordinates decimal="." cs="," ts="
"&gt;3542800,5731500&lt;/gml:coordi<br>
nates&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/gml:Point&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/topp:the_geom&gt;<br>
<br>
<br>
<br>
</body>
</html>

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



More information about the mapserver-users mailing list