[Mapserver-users] Zoom to location by string match in query on SHP files.

Richard Greenwood rich at greenwoodmap.com
Fri Mar 26 05:46:09 PST 2004


Frank Rittinger wrote:
> Hello Richard,
> 
> I followed this thread because I was looking for something similar. 
> Although, when I try this approach with "mapext=shapes" mapserver tells 
> me the file names it would create (I set up templates to print the file 
> names etc.), but they are not created.  Switching the mode to browse, 
> images are created (but - as expected- no query is performed).  So paths 
> etc. are correctly configured.
> 
> Do you have any hints, why the image is not created in itemnquery mode?
> 
> Regards,    Frank

Well your template would have to have an <img> tag of some sort, or else 
mapserver will not bother to create an image. Do you have one? I have a 
working CGI based site that does various searches and it uses the form 
method=get, so it is fairly easy to see what is happening:
   http://www2.tetonwyo.org/mapserver/
The select the "property search" link. Then enter an owner name like 
"smith", or select the "street name list" or "subdivision list" buttons.

Regards,
Rich

> Richard Greenwood wrote:
> 
>>
>> The CGI itemquery and itemnquery modes may be what you are looking 
>> for, however they will zoom to the full extent of the feature, not the 
>> first vertex. You could, however, have a second layer with just the 
>> verticies, zoom to them and also display the road polyline. Here is an 
>> example:
>>
>>   http://www2.tetonwyo.org/mapserver/mapserv.exe?
>>    qstring=438&
>>    mode=itemquery&
>>    qitem=id&
>>    map=tc/tc.map&
>>    mapext=shapes&
>>    qlayer=Road_CLq&layer=Roads&
>>    zoomsize=2&
>>    savequery=true&
> 
> 
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 


-- 
Richard Greenwood
www.greenwoodmap.com



More information about the MapServer-users mailing list