[mapserver-users] Setting scale

Lawrence Hartpence hartpence_gis at co.jasper.ia.us
Tue Sep 9 08:14:46 EDT 2008


I apologize for the incomplete URL.  Let me resubmit that question:



I have a CGI question for Mapserver 4.8.  The following URL brings up a
query.

http://71.7.3.212/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&l
ayer=ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey
&layer=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County
&layer=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext
=shape&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617
239.285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJ
asperMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode
=%5Bpreviousmode%5D&mode=nquery&zoomsize=2&savequery=true

 

I have mapxy set to (shape).  Now I want to reset the scale so I add
&scale=3600 to get the following URL:

http://71.7.3.212/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&l
ayer=ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey
&layer=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County
&layer=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext
=shape&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617
239.285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJ
asperMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode
=%5Bpreviousmode%5D&mode=nquery&zoomsize=2&savequery=true&scale=3600

 

Everything I read says that this should work, but I get an error.  Can
anyone tell me what I am doing wrong?

 


-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] 
Sent: Monday, September 08, 2008 5:14 PM
To: Lawrence Hartpence
Subject: Re: [mapserver-users] Setting scale

What's the error? You URL's are missing a full domain name.

Steve

>>> On 9/8/2008 at 3:44 PM, in message
<001d01c911f3$bf1e02f0$0202fea9 at jasper1.com>, "Lawrence Hartpence"
<hartpence_gis at co.jasper.ia.us> wrote:
> Hello,
> 
>  
> 
> I have a CGI question for Mapserver 4.8.  The following URL brings up a
> query.
> 
>
http://gismap/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&layer

>
=ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey&lay
>
er=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County&lay
>
er=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext=sha
>
pe&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617239.
>
285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJaspe
>
rMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode=%5B
> previousmode%5D&mode=nquery&zoomsize=2&savequery=true
> 
>  
> 
> I have mapxy set to (shape).  Now I want to reset the scale so I add
> &scale=3600 to get the following URL:
> 
>
http://gismap/JasperMaps/cgi-bin/mapserv.exe?layer=ortho&layer=Parcels&layer

>
=ParcelDim&layer=ParcelPt&layer=Sub&layer=Lots&layer=LotDim&layer=Survey&lay
>
er=Water&layer=ROW&layer=Highways&layer=Shields&layer=Roads&layer=County&lay
>
er=Towns&zoomdir=1&Meas=Line&imgxy=320+240&imgbox=288+234+337+264&mapext=sha
>
pe&mapxy=shape.25&imgext=1764933.905200+615189.123844+1767599.115400+617239.
>
285536&map=C%3A%5CInetPub%5Cwwwroot%5CMapdocs%5CParcels.map&program=%2FJaspe
>
rMaps%2Fcgi-bin%2Fmapserv.exe&slayer=Parcels&qlayer=Parcels&previousmode=%5B
> previousmode%5D&mode=nquery&zoomsize=2&savequery=true&scale=3600
> 
>  
> 
> Everything I read says that this should work, but I get an error.  Can
> anyone tell me what I am doing wrong?
> 
>  
> 
>  
> 
>  
> 
> Lawrence Hartpence
> 
> Jasper County GIS Coordinator
> 
> 101 1st St N
> 
> Newton IA 50208
> 
> Tel.: 641-792-6437
> 
> Fax: 641-792-5783
> 
> hartpence_gis at co.jasper.ia.us 
> 
>  





More information about the mapserver-users mailing list