[mapserver-users] using Mapscript to pan around a querymap
laurentiu lionte
llionte at yahoo.com
Wed Apr 24 00:58:45 PDT 2002
Hello everybody!
Seems something was misunderstood.
I want to enter a point attribute (no geocoding), have the map zoom to the corresponding point
, then to pan around this location, using the same template (map).
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.
Querymap is a good mechanism, but I need to know somehow, the extent of querymap to transfer these coordinates to a regular map.
> > I understand that this is not possible using regular MapServer >
> > features. How can I do this using MapScript ?
Lawrence
Paul Ramsey <pramsey at refractions.net> wrote:
For an example of this kind of thing in action, see
http://office.refractions.net/dra_roads/main.php
The roads live in a PostGIS database, so we do the geocoding against the same
database as we do the map rendering.
On Monday 22 April 2002 01:12 pm, Steve Lime wrote:
> It is possible with the main CGI mapserver assuming you can to the address
> lookup. That tends to be a rather sophiticated query (or series of queries)
> and that's why you would need MapScript. Actually you wouldn't even need
> MapScript. You could just use a helper program to do the address lookup and
> then intialize a CGI MapServer session from that output. Attribute queries
> that start a pan/zoom interface can be done without MapScript, you just
> need to have a normal pan/zoom interface as a part of your query template.
> You also might use saved queries to keep a particular feature hi-lighted as
> you pan/zoom but there are ways around that as well using a dynamic
> expression.
>
> Steve
>
> Stephen Lime
> Data & Applications Manager
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
>
> >>> Stephen Woodbridge 04/21/02 10:32AM >>>
>
> Lawrence,
>
> > Yes, I want to enter an address, have the map zoom to the address
> > point, then to pan around this location, using the same template (map).
> > I understand that this is not possible using regular MapServer >
> > features. How can I do this using MapScript ?
>
> This feature is not implemented in directly in Mapserver. MapScript has
> a queryByAttributes() function that might work, but I am not sure how it
> works.
>
> Can someone from DM Solutions comment on this?
>
> I wrote my own GeoCoder in C that works off the shape files but it is
> somewhat targeted at US Census data. You can see it at
> http://swoodbridge.com/cgi-bin/geo enter and address east of the
> Mississippi in the US.
>
> Some other people were working on an OpenSource version - you might want
> to check the list archives for more information.
>
> You could build something to do this with shapefiles in Perl or
> PHP/Mapscript because both of these can open *.dbf files where all the
> attributes are stored and scan the records.
>
> I hope this helps,
> -Steve
---------------------------------
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020424/4f14022f/attachment.htm>
More information about the MapServer-users
mailing list