[Mapserver-users] ASP and MapServer

Richard Greenwood Rich at GreenwoodMap.com
Tue Jun 17 09:00:40 EDT 2003


--=======200F5EE8=======
Content-Type: text/plain; x-avg-checked=avg-ok-6B026A8E; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

At 01:16 PM 6/17/2003 +0200, you wrote:

>Hi,
>I developed an ASP application that allow users to query dbase files in 
>Shapefiles datasets.
>I'd like to pass records found to MapServer in order to zoom to their extents.
>How can I pass these records to MapServer?


You can use mapserver's itemquery mode to highlight a single object

3.6 syntax:
mapserv.exe
?mode=itemquery
&map=mymap.map
&qlayer=region
&mapext=shapes
&pidn=22-41-16-06-1-01-010

4.0 syntax:
mapserv.exe
?mode=itemquery
&map=mymap.map
&qlayer=region
&mapext=shapes
&qitem=pidn
&qstring=22-41-16-06-1-01-010

In my example the layer is named 'rgeion' and has a primary key 'pidn' and 
I want to highlight  record '22-41-16-06-1-01-010'.

Rich


Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com 

--=======200F5EE8=======--




More information about the mapserver-users mailing list