Opened 20 years ago
Closed 19 years ago
#821 closed defect (invalid)
Cannot query with Mozilla
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapServer CGI | Version: | 4.2 |
Severity: | major | Keywords: | |
Cc: |
Description
When I submit a query with Mozilla (i.e. http://dsc586-3/vloop/cgi-bin/mapserv?imgxy=250+150&mapxy=0+0&map=..%2Fpag%2Fvloop.map&imgext=172329.357920+438926.688000+196177.642080+453219.312000&layer=route&layer=bkgrnd&minx=171383&miny=440588&maxx=200227&maxy=459599&img.x=94&img.y=239&mode=query&zoom=1&mapext=172329.357920+438926.688000+196177.642080+453219.312000), MS gives me this error message: mapserv(): Web application error. Query mode needs a point, imgxy and mapxy are not set. As can be seen, both imgxy and mapxy are set. It toyed around a bit, comparing the url generated by Internet Explorer to the one generated by Mozilla, and it seems that if the parameters img.x and img.y are not at the end of the url, mapserv chokes. Mozilla=1.6 Internet Explorer=6.0 SP1 Windows=XP Professional SP1 Berend
Change History (9)
comment:1 by , 20 years ago
op_sys: | Windows XP → Linux |
---|
comment:3 by , 20 years ago
yes: http://www.webmap.nl/veluweloop/cgi-bin/mapserv?imgxy=250+150&mapxy=0+0&map=..%2Fpag%2Fvloop.map&imgext=172329.357920+438926.688000+196177.642080+453219.312000&layer=route&layer=bkgrnd&minx=171383&miny=440588&maxx=200227&maxy=459599&img.x=94&img.y=239&mode=query&zoom=1&mapext=172329.357920+438926.688000+196177.642080+453219.312000 gives an error, while http://www.webmap.nl/veluweloop/cgi-bin/mapserv?imgxy=250+150&mapxy=0+0&map=..%2Fpag%2Fvloop.map&imgext=172329.357920+438926.688000+196177.642080+453219.312000&layer=route&layer=bkgrnd&minx=171383&miny=440588&maxx=200227&maxy=459599&mode=query&zoom=1&mapext=172329.357920+438926.688000+196177.642080+453219.312000&img.x=94&img.y=239 works properly, the only difference isthe position of img.x and img.y. Note: you can replace mapserv by mapserv.pl, this is a perl wrapper around mapserv, which puts img.x and img.y at the end of QUERY_STRING. The site itself uses this script, so right now the only way to test, is to manually type in the url. Berend
comment:4 by , 20 years ago
Why are you setting mapxy? If you remove it does it still matter where img.x and img.y are in the URL. Typcially you don't set both. There is logic in the form var processing that gives precedence to different ways of eventually defining an extent. I imagine that's what we're bumping into here. Steve
comment:5 by , 20 years ago
mapxy may be some relic from a previous version, but removing it makes no difference (neither does removing imgxy) http://www.webmap.nl/veluweloop/cgi-bin/mapserv?imgxy=250+150&map=..%2Fpag%2Fvloop.map&imgext=172329.357920+438926.688000+196177.642080+453219.312000&layer=route&layer=bkgrnd&minx=171383&miny=440588&maxx=200227&maxy=459599&img.x=94&img.y=239&mode=query&zoom=1&mapext=172329.357920+438926.688000+196177.642080+453219.312000 Error http://www.webmap.nl/veluweloop/cgi-bin/mapserv?imgxy=250+150&map=..%2Fpag%2Fvloop.map&imgext=172329.357920+438926.688000+196177.642080+453219.312000&layer=route&layer=bkgrnd&minx=171383&miny=440588&maxx=200227&maxy=459599&mode=query&zoom=1&mapext=172329.357920+438926.688000+196177.642080+453219.312000&img.x=94&img.y=239 OK
comment:7 by , 19 years ago
Status: | new → assigned |
---|
Opps, sorry. I've let too much slide recently. Why is there both mapext and imgext? Should really only have one or the other. A plain old point query needs: - mapxy (the point) OR - imgext and imgxy (with optional image size, defaults to what's in the mapfile) If you mix and match those parameters strange things may happen based on which parameters are processed first. Steve
comment:8 by , 19 years ago
I'm a bit confused right now... I thought MS needed imgext to calculate a new extent when zooming in/out. I use mapext in a <select> element with a list of predefined extents. Furthermore, the mapimage is an <INPUT type=image> with name img, so I also have img.x and img.y, when I click on the map. Does that mean I can leave out imgxy?
comment:9 by , 19 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Problem was related to how the parameters are being passed in combination rather than being a bug per se. More a documentation issue. Steve
Note:
See TracTickets
for help on using tickets.