Query to map parts of shapefiles
Chip Taylor
work at XWB.COM
Fri Oct 14 07:27:24 PDT 2005
Thanks for the reply. What the tutorial does NOT do is return the map
zoomed to the selected county's extents. That is a critical part of what I
need to do.
Chip Taylor
Prepared Response, Inc.
> -----Original Message-----
> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
> Behalf Of Xin
> Sent: Friday, October 14, 2005 1:34 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Query to map parts of shapefiles
>
> Perhaps this tutorial will be of help:
> http://maps.dnr.state.mn.us/cgi-
> bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_p
> ersistent/test.map&program=/cgi-
> bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/loc
> al/www/docs_maps/tmp/&map_web_imageurl=/tmp/
> <http://maps.dnr.state.mn.us/cgi-
> bin/mapserv46?map=/usr/local/www/docs_maps/mapserver_demos/tests46/query_p
> ersistent/test.map&program=/cgi-
> bin/mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/loc
> al/www/docs_maps/tmp/&map_web_imageurl=/tmp/>
>
> Xin
>
>
> On 13/10/05, Chip Taylor <work at xwb.com> wrote:
>
> I apologize if the title is somewhat misleading. What I am trying
> to do
> should be pretty common but I have not found a solution.
>
> Environment:
> Mapserver 4.6 running under Apache on Windows (soon to be changed
> to IIS
> on Windows)
> No database. PostGIS or MySQL to be added later.
> Little experience with PHP, MapScript in learning process
>
> Data:
> Shapefiles of US, states, counties (all polygons)
>
> Desired result:
> 1. User brings up map of US and sees outlines of states. (have
> that
> working - no problem).
> 2. User selects a state by clicking somewhere within the state
> polygon OR
> enters state name in text box (user choice - either is valid option)
> 3. MapServer redraws map with desired state as extents
> 4. User selects county from state by clicking somewhere within the
> county
> boundary polygon or enters county name in text box (user choice -
> either is
> valid option)
> 5. Mapserver redraws map with desired county as extents.
> 6. All this should be accomplished using the same base mapfile
> defining
> layers, etc.
>
> Any help with 2-6 would be most helpful. Thanks in advance.
>
> Chip Taylor
> Prepared Response, Inc.
>
>
More information about the MapServer-users
mailing list