[UMN_MAPSERVER-USERS] center map on x,y coordinates

Skweda O'Bomsawin sobomsawin at KASSINI.COM
Mon Oct 4 14:27:41 EDT 2004


By the way, I think you need a PROJECTION block in your map file if you want
to use meters coordinates...

My guess...

Skweda O'Bomsawin


-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de Jan Hartmann
Envoyé : 4 octobre 2004 08:51
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : Re: [UMN_MAPSERVER-USERS] center map on x,y coordinates

Elisabeth Nolz wrote:

> dear jan,
>
> thanks for your help. you were right, there were some problems in my
mapfile.
> now the map can be displayed with
> "http://localhost/cgi-bin/mapserv?map=map.map&mode=map". but unfortunately
it
> can't be centered with "..&mode=map&mapxy=339989.20+1646.20&scale=20000".
>
> your hint to center the map by changing the extent sounds good, but i need
to
> do it with this link, because the coordinates are a result of a
> database-query. the variables are passed through this link.
>
> perhaps someone knows how i could do this.
>

You can put the extent in the url:

http://...?map=map.map&mode=map&mapext=1400 336900 1600 337100

I find this easier, but if you want to to this with mapxy, you should
put x before y. Also, try out wat the actual scale is for the full map
(use the [scale] template, so you have a reference from which to compute
the zoom-scale

Jan

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004-09-28
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.771 / Virus Database: 518 - Release Date: 2004-09-28
 



More information about the mapserver-users mailing list