Query works but QUERYMAP is Not Scaled - that's the problem

Bob Bruce covariance at SHAW.CA
Mon Nov 15 09:53:34 EST 2004


My apologies: I have determined that the query is displaying the selected
parcel as long as it is selected near the center of the original map image.
This is because the original map is not being scaled to fit the querymap
that is displayed - this is my real problem.

Any suggestions on how to get the map that is queried automatically scaled
down to the size of the querymap?

thanks,
         Bob Bruce

On Fri, 12 Nov 2004 23:26:39 -0600, Bob Bruce <covariance at SHAW.CA> wrote:

>Yes, sorry about that, here's what I get:
>
>C:\Apache\htdocs\cgi-bin>mapserv.exe -v
>MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>OUTPUT=PDF OUTPUT=SWF SUPPORTS
>=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLI
>ENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>Bob Bruce
>
>On Sat, 13 Nov 2004 00:10:46 -0500, Stephen Woodbridge
><woodbri at SWOODBRIDGE.COM> wrote:
>
>>Bob,
>>
>>You might want to mention what version of mapserver you are running.
>>
>>-Steve W.
>>
>>Bob Bruce wrote:
>>
>>> When I was working through a test map that I set up with some Manitoba data
>>> I encountered a problem trying to get queries displaying a map with a
>>> selected property parcel highlighted. I was able to get the property parcel
>>> attributes displayed nicely but the map image would not work properly (all I
>>> got was a little section of the overall map centered on the last area
>>> without the selected land parcel shown or highlighted)
>>>
>>> I racked my brain, triple-checked my map and template files comparing them
>>> with the Itasca demo (which I got working fine) trying to find out what was
>>> the difference between them. Finally I realized that the Itasca demo was
>>> using single data files for the layers while my test map was using tilemaps
>>> for each of the layers.
>>>
>>> I then tried changing one of the layers to a single data file and querying
>>> that layer and PRESTO the correct querymap appeared with my selected land
>>> parcel highlighted.
>>>
>>> Has anyone ever got querymaps working with tilemaps and are they supposed to
>>> work with them?
>>>
>>> thanks in advance for your help.
>>>
>>>     Bob Bruce



More information about the mapserver-users mailing list