Query and zoom mode

Spot spot.news at GMX.NET
Thu Jul 20 01:10:46 PDT 2006


Sorry for my late answer.
Your proposal solves the problem only partially. When I substitute the
"shape" value with the mapextent, I get the whole map as resulting image,
but the selected features are not only these selected by my rectangle
shape. Instead, all features of the current mapextent are selected.

Regards,
Philip

> Hi Philip,
>
> did you find a solution to your problem? Please let me know.
>
>
> regards
>
> Daniel
> -------- Original-Nachricht --------
> Datum: Thu, 13 Jul 2006 11:48:10 +0200
> Betreff: [UMN_MAPSERVER-USERS] Query and zoom mode
>
>> Hi!
>>
>> I am experimenting with Mapserver for about 2 months now but still
>> considering myself as relatively new and unexperienced.
>> I use the Windows CGI together with jBox and static map sourcefiles.
>> At the moment I have got a problem with the nquery-mode. The query is
>> executed correctly and a query map image with highlighted features based
>> on the user selection is created. When I submit the form with the query,
>> everything goes fine. The query result is shown and the map is created,
>> but the resulting map png is zoomed.
>> The URL looks like this:
>>
>> http://localhost/path_to/mapserv.exe?imgbox=304+324+334+356&layer=layer1&layer=layer2&layer=layer3&qlayer=layer3&zoomdir=0&zoomsize=1&mode=nquery&dummyname=dummyvalue&buttonActive=button4&mapsize=500+500&querymode=&imgxy=304+324&imgext=396997.000000+4480748.500000+409180.000000+4492931.500000&mapxy=&scale=&map=path_to/mapfile.map&mapext=shapes&savequery=true
>>
>>
>> When I remove the "zoomsize" or the "zoomdir" attribute the CGI doesn't
>> create a results page for the query, but instead shows the normal map
>> template with a zoomed map.
>> If I set the "zoomsize" to 0, I get an error from the CGI.
>>
>> How can I solve this?
>>
>> Thanks,
>> Philip



More information about the MapServer-users mailing list