[Mapserver-users] wfs and mapserver4.0.1

Debbie Pagurek pagurekd at agr.gc.ca
Thu Jan 22 13:31:14 PST 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.  Here's what 
Assefa had to say:</DIV>
<DIV> </DIV>
<DIV>" The problem comes from a setting in the map file (web metadata) 
:<BR>      "wfs_geometry_element_name" 
""<BR><BR>   Here is the decription in the docs related to that 
:<BR>    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> </DIV>
<DIV><BR>>>> Yewondwossen Assefa <assefa at dmsolutions.ca> 01/22/04 
10:44AM >>><BR>Debbie,<BR><BR>  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>> Hi all,<BR>> is 
there a bug in wfs in mapserver4.0.1 -<BR>> I keep getting an error for my 
request:<BR>> <A 
href="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</A> 
<BR>> <<A 
href="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</A>><BR>>  
<BR>> <BR>> The XML page cannot be displayed<BR>> <BR>> Cannot view 
XML input using XSL style sheet. Please correct the error <BR>> and then 
click the Refresh <javascript:location.reload()> button, or try <BR>> 
again later.<BR>> <BR>> 
------------------------------------------------------------------------<BR>> 
<BR>> A name was started with an invalid character. Error processing resource 
<BR>> '<A 
href="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'.</A> 
<BR>> Line 24, Position 10<BR>> 
<BR>>         <><BR>> 
<BR>> and when I do a view source, what i see is that an extra empty tag 
<> <BR>> that occurs after all of the fields have been listed.  
e.g. that part of <BR>> the gml output:<BR>> <BR>> 
<gml:featureMember><BR>>       
<canada><BR>>         
<AREA>585860.072</AREA><BR>>         
<CODE>CA10</CODE><BR>>         
<NAME>Quebec</NAME><BR>>         
<POP1991>6895963</POP1991><BR>>         
<POP91_SQMI>13.163780</POP91_SQMI><BR>>         
<><BR>> <BR>> this happens for whatever shapefile I am 
using.<BR>> <BR>> Also, I did try using the latest dev version 4.1 (the 
windows binary that <BR>> Assefa made available a little while ago, and this 
problem goes away.<BR>> <BR>> Just wondering if I'm creating an incorrect 
request or if this is a <BR>> known bug.  Also trying to figure out 
which version of mapserver to <BR>> install on our servers.<BR>>  
<BR>> Thanks,<BR>> 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:   (613) 
565-0925<BR>----------------------------------------------------------------<BR><BR><BR><BR></DIV></BODY></HTML>

--=_4E6F1337.4928024E--



More information about the MapServer-users mailing list