<P>Hello everybody!
<P>&nbsp;Seems&nbsp;something was misunderstood.<BR>&nbsp;I want to enter a <U><STRONG>point attribute</STRONG></U> (no geocoding),&nbsp;have the map zoom to the corresponding point<BR>, then to pan around this location, using the same template (map).<BR>I want to locate a feature whose attributes&nbsp;matches my search criteria, attributes which exists in shape database, zoom to the corresponding point, then pan arround.<BR>Querymap is a good mechanism, but I need to know somehow, the extent of querymap to transfer these coordinates to a regular map.&nbsp;<BR>&gt; &gt; I understand that this is not possible using regular MapServer &gt;<BR>&gt; &gt; features. How can I do this using MapScript ?</P>
<P>Lawrence</P>
<P>&nbsp; <B><I>Paul Ramsey &lt;pramsey@refractions.net&gt;</I></B> wrote: 
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>For an example of this kind of thing in action, see <BR>http://office.refractions.net/dra_roads/main.php<BR>The roads live in a PostGIS database, so we do the geocoding against the same <BR>database as we do the map rendering.<BR><BR>On Monday 22 April 2002 01:12 pm, Steve Lime wrote:<BR>&gt; It is possible with the main CGI mapserver assuming you can to the address<BR>&gt; lookup. That tends to be a rather sophiticated query (or series of queries)<BR>&gt; and that's why you would need MapScript. Actually you wouldn't even need<BR>&gt; MapScript. You could just use a helper program to do the address lookup and<BR>&gt; then intialize a CGI MapServer session from that output. Attribute queries<BR>&gt; that start a pan/zoom interface can be done without MapScript, you just<BR>&gt; need to have a normal pan/zoom interface as a part of your query template.<BR>&gt; You also might use saved queries to keep a particular feature hi-lighted as<BR>&gt; you pan/zoom but there are ways around that as well using a dynamic<BR>&gt; expression.<BR>&gt;<BR>&gt; Steve<BR>&gt;<BR>&gt; Stephen Lime<BR>&gt; Data &amp; Applications Manager<BR>&gt;<BR>&gt; Minnesota DNR<BR>&gt; 500 Lafayette Road<BR>&gt; St. Paul, MN 55155<BR>&gt; 651-297-2937<BR>&gt;<BR>&gt; &gt;&gt;&gt; Stephen Woodbridge <WOODBRI@SWOODBRIDGE.COM>04/21/02 10:32AM &gt;&gt;&gt;<BR>&gt;<BR>&gt; Lawrence,<BR>&gt;<BR>&gt; &gt; Yes, I want to enter an address, have the map zoom to the address<BR>&gt; &gt; point, then to pan around this location, using the same template (map).<BR>&gt; &gt; I understand that this is not possible using regular MapServer &gt;<BR>&gt; &gt; features. How can I do this using MapScript ?<BR>&gt;<BR>&gt; This feature is not implemented in directly in Mapserver. MapScript has<BR>&gt; a queryByAttributes() function that might work, but I am not sure how it<BR>&gt; works.<BR>&gt;<BR>&gt; Can someone from DM Solutions comment on this?<BR>&gt;<BR>&gt; I wrote my own GeoCoder in C that works off the shape files but it is<BR>&gt; somewhat targeted at US Census data. You can see it at<BR>&gt; http://swoodbridge.com/cgi-bin/geo enter and address east of the<BR>&gt; Mississippi in the US.<BR>&gt;<BR>&gt; Some other people were working on an OpenSource version - you might want<BR>&gt; to check the list archives for more information.<BR>&gt;<BR>&gt; You could build something to do this with shapefiles in Perl or<BR>&gt; PHP/Mapscript because both of these can open *.dbf files where all the<BR>&gt; attributes are stored and scan the records.<BR>&gt;<BR>&gt; I hope this helps,<BR>&gt; -Steve</BLOCKQUOTE><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://rd.yahoo.com/welcome/*http://games.yahoo.com">Yahoo! Games</a> - play chess, backgammon, pool and more