Newbie -help please!

Scott Schulthess scott at TOPOZONE.COM
Fri Mar 2 11:55:00 EST 2007


Hey, could someone please suggest an answer to this question?

The maps DO NOT display unless I pass a img.x and img.y, or just click
on the map (same thing).  And, passing an img.x and img.y of 400 does
not do anything either - I guess because mapserver doesn't have to
recalculate the img ext based on where you clicked on the map. Something
is going wrong!  Please help, or give suggestions.  

 

-Scott

 

________________________________

From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Scott Schulthess
Sent: Thursday, March 01, 2007 4:39 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Images only display when map clicked on,
or img.x/img.y parameters included in query string

 

Hey Ya'll - 

 

For some reason, my little mapserver viewer isn't working.  I was
messing around with the javascript and trying to view different sections
of the U.S. when I finally got it to work.

 

But, here's the kicker, the only difference in the query strings is two
paramters - img.x and img.y

 

This query string 

 

http://strabo11/cgi-bin/mapserv?mode=browse&zoom=1&blocktable=17064&laye
r=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%2
Ftest20.map&layers=DRG60+polyshape&imgext=-65.000000+17.000000+-64.00000
0+18.000000&imgxy=400+400&map_web_template=.%2Ftest-viewer-template.html
&map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&map_web
_imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2Fdata3%2FDRGPalFixClip
ped250%2F17064%2Fa17064.shp&block=17064&selectdex=%5Bselectdex%5D&select
edlayer=%5Bselectedlayer%5D&layerindex=1&gpxid=%5Bgpxid
<http://strabo11/cgi-bin/mapserv?mode=browse&zoom=1&blocktable=17064&lay
er=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions%2Fglobal-1.0%2Fmap%
2Ftest20.map&layers=DRG60+polyshape&imgext=-65.000000+17.000000+-64.0000
00+18.000000&imgxy=400+400&map_web_template=.%2Ftest-viewer-template.htm
l&map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fms_tmp%2F&map_we
b_imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2Fdata3%2FDRGPalFixCli
pped250%2F17064%2Fa17064.shp&block=17064&selectdex=%5Bselectdex%5D&selec
tedlayer=%255> 

 

Doesn't work 

 

When I add in img.x and img.y 

 

http://strabo11/cgi-bin/mapserv?img.x=311&img.y=229&mode=browse&zoom=1&b
locktable=17064&layer=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions%
2Fglobal-1.0%2Fmap%2Ftest20.map&layers=DRG60+polyshape&imgext=-65.000000
+17.000000+-64.000000+18.000000&imgxy=400+400&map_web_template=.%2Ftest-
viewer-template.html&map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdocs
%2Fms_tmp%2F&map_web_imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2Fd
ata3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&block=17064&selectdex=%5
Bselectdex%5D&selectedlayer=%5Bselectedlayer%5D&layerindex=1&gpxid=%5Bgp
xid
<http://strabo11/cgi-bin/mapserv?img.x=311&img.y=229&mode=browse&zoom=1&
blocktable=17064&layer=polyshape&serieslist=a&map=%2Fdata3%2FDMSolutions
%2Fglobal-1.0%2Fmap%2Ftest20.map&layers=DRG60+polyshape&imgext=-65.00000
0+17.000000+-64.000000+18.000000&imgxy=400+400&map_web_template=.%2Ftest
-viewer-template.html&map_web_imagepath=%2Fusr%2Flocal%2Fapache2%2Fhtdoc
s%2Fms_tmp%2F&map_web_imageurl=%2Fms_tmp%2F&mapsize=800+800&theindex=%2F
data3%2FDRGPalFixClipped250%2F17064%2Fa17064.shp&block=17064&selectdex=%
5Bselectdex> 

 

It works fine. I did a view source and saved the templates, the img ext
changes, but changing it without adding in img.x and img.y doesn't make
the maps appear, and it's neglibible difference anyways.  Also, the SRC
of the map images changes to some other temp file generated by
mapserver.  

 

Help?

 

Thanks!

 

-Scott

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070302/a9840f81/attachment.html


More information about the mapserver-users mailing list