<P>Hello everybody!
<P> Seems something was misunderstood.<BR> I want to enter a <U><STRONG>point attribute</STRONG></U> (no geocoding), 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 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. <BR>> > I understand that this is not possible using regular MapServer ><BR>> > features. How can I do this using MapScript ?</P>
<P>Lawrence</P>
<P> <B><I>Paul Ramsey <pramsey@refractions.net></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>> It is possible with the main CGI mapserver assuming you can to the address<BR>> lookup. That tends to be a rather sophiticated query (or series of queries)<BR>> and that's why you would need MapScript. Actually you wouldn't even need<BR>> MapScript. You could just use a helper program to do the address lookup and<BR>> then intialize a CGI MapServer session from that output. Attribute queries<BR>> that start a pan/zoom interface can be done without MapScript, you just<BR>> need to have a normal pan/zoom interface as a part of your query template.<BR>> You also might use saved queries to keep a particular feature hi-lighted as<BR>> you pan/zoom but there are ways around that as well using a dynamic<BR>> expression.<BR>><BR>> Steve<BR>><BR>> Stephen Lime<BR>> Data & Applications Manager<BR>><BR>> Minnesota DNR<BR>> 500 Lafayette Road<BR>> St. Paul, MN 55155<BR>> 651-297-2937<BR>><BR>> >>> Stephen Woodbridge <WOODBRI@SWOODBRIDGE.COM>04/21/02 10:32AM >>><BR>><BR>> Lawrence,<BR>><BR>> > Yes, I want to enter an address, have the map zoom to the address<BR>> > point, then to pan around this location, using the same template (map).<BR>> > I understand that this is not possible using regular MapServer ><BR>> > features. How can I do this using MapScript ?<BR>><BR>> This feature is not implemented in directly in Mapserver. MapScript has<BR>> a queryByAttributes() function that might work, but I am not sure how it<BR>> works.<BR>><BR>> Can someone from DM Solutions comment on this?<BR>><BR>> I wrote my own GeoCoder in C that works off the shape files but it is<BR>> somewhat targeted at US Census data. You can see it at<BR>> http://swoodbridge.com/cgi-bin/geo enter and address east of the<BR>> Mississippi in the US.<BR>><BR>> Some other people were working on an OpenSource version - you might want<BR>> to check the list archives for more information.<BR>><BR>> You could build something to do this with shapefiles in Perl or<BR>> PHP/Mapscript because both of these can open *.dbf files where all the<BR>> attributes are stored and scan the records.<BR>><BR>> I hope this helps,<BR>> -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