<!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.6000.16525" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Steve!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for your reply.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here's the line that is being passed to
openlayers:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>var myqry = new
OpenLayers.Layer.MapServer.Untiled("Map", "/cgi-bin/mapserv?", {map:
'/hometo/maps/mymap.map', layer:'#qrylayer#',
map_#qrylayer#_classitem:'#qryitem#',
map_#qrylayer#_class_expression:'#q.code#', layers:"#onlayer#", format: 'gif',
transparent:'false'});</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We are using mapserver 5.0 and Openlayers
2.4</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>No pink tiles encountered. What happens is it can
zoom to the right location but could not render a line. </FONT></DIV>
<DIV><FONT face=Arial size=2>When we are still using mapserver 4.10, the
line above is what we use and it has no problems rendering a
line.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We read the <A
href="http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT">migration
guide from mapserver </A>and they changed the way they create a new
feature:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><STRONG><FONT face=Arial size=2>changing a scalebar
object:</FONT></STRONG></DIV>
<DIV><PRE class=literal-block><FONT face=Arial size=2>...&map.scalebar=UNITS+MILES+COLOR+121+121+121+SIZE+300+2&...</FONT></PRE><PRE class=literal-block><P><FONT face=Arial size=2><STRONG>creating a new feature</STRONG></FONT></P><PRE class=literal-block><FONT face=Arial size=2>...&map_layer[3]=FEATURE+POINTS+500000+1000000+END+TEXT+'A+test+point'+END&...</FONT>
</PRE><PRE class=literal-block><FONT face=Arial size=2>The value is a snippet of a mapfile. </FONT></PRE><PRE class=literal-block><FONT face=Arial size=2></FONT> </PRE><PRE class=literal-block><FONT face=Arial size=2>The separator used to be underscore ( _ ) now it's a plus sign (+).</FONT></PRE><PRE class=literal-block><FONT face=Arial size=2></FONT> </PRE><PRE class=literal-block><FONT face=Arial size=2>But eventhough we changed that according to the new standard way of creating a new feature, the line cannot still be rendered!</FONT></PRE><PRE class=literal-block><FONT face=Arial size=2></FONT> </PRE><PRE class=literal-block><FONT face=Arial size=2>Here's our url: <STRONG>http:/203.131.125.60/mapcentral_OL/index.cfm</STRONG></FONT></PRE><PRE class=literal-block><FONT face=Arial size=2></FONT> </PRE><PRE class=literal-block><STRONG>Enter Keyword:</STRONG> Quezon Avenue</PRE><PRE class=literal-block><STRONG>Enter Location:</STRONG> Quezon City<FONT>
</FONT></PRE><PRE class=literal-block>Click on any "View Map" from the Search Result.</PRE><PRE class=literal-block>The keyword you entered is a street, so it should highlight the street that it searched. </PRE><PRE class=literal-block>But instead, it just zooms to the location.</PRE></PRE></DIV>
<DIV><FONT face=Arial size=2>How could this be?</FONT></DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Steve.Lime@dnr.state.mn.us
href="mailto:Steve.Lime@dnr.state.mn.us">Steve Lime</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=aileen@mapcentral.ph
href="mailto:aileen@mapcentral.ph">Aileen</A> ; <A title=users@openlayers.org
href="mailto:users@openlayers.org">users@openlayers.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, October 06, 2007 6:49
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [OpenLayers-Users] MapServer
to OpenLayers line rendition</DIV>
<DIV><BR></DIV>Aileen: I'm assuming you're bumping your head against the URL
configuration changes<BR>that were made in 5.0. Virtually anything you could
do in 4.10 is doable in 5.0 but the <BR>mechanism may have changed. Can you
pass along the URLs that are actually being<BR>sent to MapServer? If so, then
I can tell you what changes would be necessary to <BR>make them work. Whether
that means the OpenLayers interface will have to be updated<BR>I'm not sure
of.<BR><BR>Steve<BR><BR>>>> On 10/4/2007 at 9:41 PM, in message
<<A
href="mailto:003301c806f9$4bdda760$9601a8c0@aileen">003301c806f9$4bdda760$9601a8c0@aileen</A>>,<BR>"Aileen"
<<A href="mailto:aileen@mapcentral.ph">aileen@mapcentral.ph</A>>
wrote:<BR>> We recently upgraded our Mapserver version from 4.10 to
5.0.<BR>> <BR>> With that, we no longer can render lines and shade
polygons.<BR>> <BR>> Did the parameter in passing variables from
openlayers to mapserver changed?<BR>> <BR>> How do you send line
parameters to mapserver?<BR>> <BR>> How will I render points and lines
to CGI? What url do I use?<BR>> <BR>> Currently we use this:<BR>>
<BR>> var myqry = new OpenLayers.Layer.MapServer.Untiled("Map", <BR>>
"/cgi-bin/mapserv?", {map: '/home/to/my/map.map', layer:'#qrylayer#', <BR>>
map_#qrylayer#:'classitem+#qryitem#+expression+#q.code#', format: 'gif',
<BR>> transparent:'false'});<BR>> <BR>>
Aileen<BR><BR></BLOCKQUOTE></BODY></HTML>