[Mapserver-users] wfs and mapserver4.0.1

Debbie Pagurek pagurekd at agr.gc.ca
Thu Jan 22 16:31:14 EST 2004


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_4E6F1337.4928024E
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

just as a follow up for the rest of the group, Assefa solved my
difficulty. I had a line in my mapfile that was causing the problem. 
Here's what Assefa had to say:

" The problem comes from a setting in the map file (web metadata) :
      "wfs_geometry_element_name" ""

   Here is the decription in the docs related to that :
    wfs_geometry_element_name
Name of the element (i.e. attribute) to use for the geometry in GML 
output. If not set then "MS_GEOMETRY" will be used. The layer-level 
"wfs_geometry_element_name" takes precedence over this value.

In your case you can just remove this metadata from your map file and It

should work. Setting it to an empty string creates a bug in Mapserver. 
Note that It is not the case anymore in Mapserver 4.1.
"

Thanks Assefa!
Debbie


>>> Yewondwossen Assefa <assefa at dmsolutions.ca> 01/22/04 10:44AM >>>
Debbie,

  I can't seem to reproduce this with my test files using 4.0.1. Is it 
possible to send me your map file to see if I can reproduce it? If it 
happens with all shapefiles, I am assuming data is not the problem and 
might be some setting in the map file.

Later,


Debbie Pagurek wrote:
> Hi all,
> is there a bug in wfs in mapserver4.0.1 -
> I keep getting an error for my request:
>
http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&version=1.0.0&service=wfs&request=GetFeature&TypeName=canada&Propertyname=NAME

>
<http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&version=1.0.0&service=wfs&request=GetFeature&TypeName=canada&Propertyname=NAME>
>  
> 
> The XML page cannot be displayed
> 
> Cannot view XML input using XSL style sheet. Please correct the error 
> and then click the Refresh <javascript:location.reload()> button, or
try 
> again later.
> 
>
------------------------------------------------------------------------
> 
> A name was started with an invalid character. Error processing
resource 
>
'http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&version=1.0.0&service=wfs&request=GetFeature&TypeName=canada&Propertyname=NAME'.

> Line 24, Position 10
> 
>         <>
> 
> and when I do a view source, what i see is that an extra empty tag <> 
> that occurs after all of the fields have been listed.  e.g. that part
of 
> the gml output:
> 
> <gml:featureMember>
>       <canada>
>         <AREA>585860.072</AREA>
>         <CODE>CA10</CODE>
>         <NAME>Quebec</NAME>
>         <POP1991>6895963</POP1991>
>         <POP91_SQMI>13.163780</POP91_SQMI>
>         <>
> 
> this happens for whatever shapefile I am using.
> 
> Also, I did try using the latest dev version 4.1 (the windows binary
that 
> Assefa made available a little while ago, and this problem goes away.
> 
> Just wondering if I'm creating an incorrect request or if this is a 
> known bug.  Also trying to figure out which version of mapserver to 
> install on our servers.
>  
> Thanks,
> D. Pagurek


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------

--=_4E6F1337.4928024E
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 10pt Arial; MARGIN-LEFT: 2px">
<DIV>just as a follow up for the rest of the group, Assefa solved my difficulty. 
I had a line in my mapfile that was causing the problem.&nbsp; Here's what 
Assefa had to say:</DIV>
<DIV>&nbsp;</DIV>
<DIV>" The problem comes from a setting in the map file (web metadata) 
:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wfs_geometry_element_name" 
""<BR><BR>&nbsp;&nbsp; Here is the decription in the docs related to that 
:<BR>&nbsp;&nbsp;&nbsp; wfs_geometry_element_name<BR>Name of the element (i.e. 
attribute) to use for the geometry in GML <BR>output. If not set then 
"MS_GEOMETRY" will be used. The layer-level <BR>"wfs_geometry_element_name" 
takes precedence over this value.<BR><BR>In your case you can just remove this 
metadata from your map file and It <BR>should work. Setting it to an empty 
string creates a bug in Mapserver. <BR>Note that It is not the case anymore in 
Mapserver 4.1.<BR>"<BR></DIV>
<DIV>Thanks Assefa!</DIV>
<DIV>Debbie</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&gt;&gt;&gt; Yewondwossen Assefa &lt;assefa at dmsolutions.ca&gt; 01/22/04 
10:44AM &gt;&gt;&gt;<BR>Debbie,<BR><BR>&nbsp; I can't seem to reproduce this 
with my test files using 4.0.1. Is it <BR>possible to send me your map file to 
see if I can reproduce it? If it <BR>happens with all shapefiles, I am assuming 
data is not the problem and <BR>might be some setting in the map 
file.<BR><BR>Later,<BR><BR><BR>Debbie Pagurek wrote:<BR>&gt; Hi all,<BR>&gt; is 
there a bug in wfs in mapserver4.0.1 -<BR>&gt; I keep getting an error for my 
request:<BR>&gt; <A 
href="http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&amp;version=1.0.0&amp;service=wfs&amp;request=GetFeature&amp;TypeName=canada&amp;Propertyname=NAME">http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&amp;version=1.0.0&amp;service=wfs&amp;request=GetFeature&amp;TypeName=canada&amp;Propertyname=NAME</A> 
<BR>&gt; &lt;<A 
href="http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&amp;version=1.0.0&amp;service=wfs&amp;request=GetFeature&amp;TypeName=canada&amp;Propertyname=NAME">http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&amp;version=1.0.0&amp;service=wfs&amp;request=GetFeature&amp;TypeName=canada&amp;Propertyname=NAME</A>&gt;<BR>&gt;&nbsp; 
<BR>&gt; <BR>&gt; The XML page cannot be displayed<BR>&gt; <BR>&gt; Cannot view 
XML input using XSL style sheet. Please correct the error <BR>&gt; and then 
click the Refresh &lt;javascript:location.reload()&gt; button, or try <BR>&gt; 
again later.<BR>&gt; <BR>&gt; 
------------------------------------------------------------------------<BR>&gt; 
<BR>&gt; A name was started with an invalid character. Error processing resource 
<BR>&gt; '<A 
href="http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&amp;version=1.0.0&amp;service=wfs&amp;request=GetFeature&amp;TypeName=canada&amp;Propertyname=NAME'.">http://latlong24.gis.agr.gc.ca/cgi-bin/mapserv-4.0.1-new?map=/usr/www/httpd/htdocs/mapdata/debtest/wfscanada.map&amp;version=1.0.0&amp;service=wfs&amp;request=GetFeature&amp;TypeName=canada&amp;Propertyname=NAME'.</A> 
<BR>&gt; Line 24, Position 10<BR>&gt; 
<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&gt;<BR>&gt; 
<BR>&gt; and when I do a view source, what i see is that an extra empty tag 
&lt;&gt; <BR>&gt; that occurs after all of the fields have been listed.&nbsp; 
e.g. that part of <BR>&gt; the gml output:<BR>&gt; <BR>&gt; 
&lt;gml:featureMember&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;canada&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;AREA&gt;585860.072&lt;/AREA&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;CODE&gt;CA10&lt;/CODE&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;NAME&gt;Quebec&lt;/NAME&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;POP1991&gt;6895963&lt;/POP1991&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;POP91_SQMI&gt;13.163780&lt;/POP91_SQMI&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;&gt;<BR>&gt; <BR>&gt; this happens for whatever shapefile I am 
using.<BR>&gt; <BR>&gt; Also, I did try using the latest dev version 4.1 (the 
windows binary that <BR>&gt; Assefa made available a little while ago, and this 
problem goes away.<BR>&gt; <BR>&gt; Just wondering if I'm creating an incorrect 
request or if this is a <BR>&gt; known bug.&nbsp; Also trying to figure out 
which version of mapserver to <BR>&gt; install on our servers.<BR>&gt;&nbsp; 
<BR>&gt; Thanks,<BR>&gt; D. Pagurek<BR><BR><BR>-- 
<BR>----------------------------------------------------------------<BR>Assefa 
Yewondwossen<BR>Software Analyst<BR><BR>Email: assefa at dmsolutions.ca<BR><A 
href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A><BR><BR>Phone: 
(613) 565-5056 (ext 14)<BR>Fax:&nbsp;&nbsp; (613) 
565-0925<BR>----------------------------------------------------------------<BR><BR><BR><BR></DIV></BODY></HTML>

--=_4E6F1337.4928024E--



More information about the mapserver-users mailing list