[Mapserver-users] (Steve) Real coordinates query

Alessandro Galasso agalasso at gndci.cs.cnr.it
Mon Apr 14 08:15:01 PDT 2003


Steve,
I get again the same error with another kind of query: ITEMQUERYMAP
(and the previus problem is still not resolved :-(  )

http://laplace/mapserver/mapserv.exe
?map=calabria.map
&imgext=2664765.49+4367764.90+2718339.51+4340946.86
&imgsize=863+432
&qlayer=myLayer
&map_myLayer_filter=BLABLABLA
&mode=itemquerymap
&map_querymap_color=50+150+0

i receive an image with the original map-file extent.
I've tryed with: IMGEXT, MAPEXT, MAP_EXTENT but nothing! Seems like they are
ignored by mapserver.
How can i do to obtain the correct image??

Regards,
Alessandro Galasso


----- Original Message -----
From: <emailfittizio at libero.it>
To: "steve.lime" <steve.lime at dnr.state.mn.us>
Sent: Monday, April 07, 2003 10:50 AM
Subject: Re: Real coordinates query


Any news about the problem?
Did you fix it in the next release?

Regards,
Alessandro Galasso



Hmmmm... What does the whole URL look like now? The map_extent=
influences the map file after all other parameter processing is done. In
effect it *should* just be changing the default extent you set in the
map file. That's why it seemed a reasonable work around. What version of
MapServer?

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> "emailfittizio at libero.it" <emailfittizio at libero.it> 04/01/03 01:58
AM >>>
Steve,
with &map_extent= the query run without error but the returned image has
wrong extent (all image is visible not the specified zone).
Does the parameters order influence something?

Let me know.
Regards,
Alessandro.




There looks to be an error in the code. What happens is that setting
mapext also sets a query mode flag to use the extent for a query. Futher
down in the code setting mapxy has no effect because there's a check to
see if the query mode flag has already been set, and if so don't
override it. The easiest work around is to use an alternative method to
set the map extent. I think that if you use "&map_extent=" instead of
"&mapext=" it should work. Give that a shot and let me know how it goes.
I'll file this as a bug otherwise and will try to fix for 3.7.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "emailfittizio at libero.it" <emailfittizio at libero.it> 03/31/03
01:41AM >>>
Hi Steve. I'm sorry to boring you with this question, but... it doesn't
go:

http://laplace/mapserver/mapserv.exe?
map=calabria/calabria.map
&mapext=2611685.07+4392492.28+2903099.95+4286980.00
&mapsize=1024+370
&layers=limiti_comunali
&mapxy=2646326.95+4362345.91
&mode=querymap

The error is:
mapserv(): Web application error. Query mode needs a point, imgxy and
mapxy are not set.

If i remove "mapext" the query run fine. But, of course, return me the
entire map...

Where is the problem?

Thanks a lot,
Alessandro.





Hi Alessandro: It's certainly possible to use real coordinates. Just
remove the imgext, imgsize and img.x/y parameters and add a mapxy
parameter that holds the coordinate of interest and that should do it.

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "emailfittizio at libero.it" <emailfittizio at libero.it> 03/25/03
04:18AM >>>
Hi list,

At the moment i use this line to query the CGI:

http://laplace/mapserver/mapserv.exe?map=calabria/calabria.map&imgext=257484
7.224432619+4449795.614692735+3352308.224432619+4195815.614692735&imgsize=10
24+334&layers=bacini&img.x=74.33&img.y=111.50&mode=querymap



Is it possible to query the server with the world coordinate insteed
of
using img.x img.y ?
If it'possible.. How the query string will change?

Thanks,
Alessandro.


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users










More information about the MapServer-users mailing list