[Mapserver-users] ASP and MapServer

Mario noti at ciaoweb.it
Wed Jun 18 01:43:50 PDT 2003


Thank you all for your help, I'm trying to apply suggested solutions...

First of all I tried to querymap the results.
This is the URL call from ASP to mapserv:
******************************
mapserv.exe?
map=mapfile.map
&layer=lakespy2
&mode=itemquery
&qlayer=lakespy2
&item=LAKE_NAME
&LAKE_NAME=WINNIBIGOSHI
&mapext=shapes
*****************************
and this is the mapfile:
*****************************
QUERYMAP
    SIZE 200 200
    STATUS ON
    STYLE HILITE
    COLOR 255 0 0
END
LAYER
    NAME lakespy2
    TYPE POLYGON
    STATUS OFF
    DATA lakespy2
    FILTERITEM LAKE_NAME
    Filter "%LAKE_NAME%"
    CLASS
        NAME 'Lakes & Rivers'
        TEMPLATE "lakespy2.html"
        COLOR 49 117 185
    END
END # lakes
*****************************
With this settings query results page opens but is there a way to highlight
the results (WINNIBIGOSHI lake in this case) directly in the main map and
not in a new querymap template?

Thanks again

Mario


----- Original Message -----
From: "Richard Greenwood" <Rich at GreenwoodMap.com>
To: "Mario" <noti at ciaoweb.it>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, June 17, 2003 3:00 PM
Subject: Re: [Mapserver-users] ASP and 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
>




More information about the MapServer-users mailing list