banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

#1 Fri 13 December 2013 14:39

diletant2
Participant occasionnel
Date d'inscription: 10 Feb 2010
Messages: 36

[Mapserver]Templating/HTML image map : shpxy renvoie tjs la même coord

Désolé pour l'anglais

Hi,

I’m encountering the same issue as the one described here
http://lists.osgeo.org/pipermail/mapser … 74454.html

I’ve a map’s source with multiple points (evenly distributed, not at the same place).
When I ask MapServer for a map, they get displayed well.

But when I request the HTML imagemap based on a template, the coordinates of each point are the same !
Though the rest of the templating works fine (for other attributes than coordinates)

My template is as follow:

Code:

<area shape="circle" coords="[shpxy proj=image yf=",30" xf=","]" title="[id]" alt="[type]">

MapServer request :

Code:

http://mapserver/cgi-bin/mapserv.exe?map=mymapfile.map&qlayer=layer1&searchmap=true&mode=nquery

output (sample) :

Code:

<area shape="circle" coords="152,1664,30" title="/aaOjl9fXYN6TuHVVSud+KcjpEc=" alt="T">
<area shape="circle" coords="152,1664,30" title="/GDyi/50wFeFHMBpkmJ2lBOIM28=" alt="R">
<area shape="circle" coords="152,1664,30" title="/GxS7hWNTKpIIyyfuQf9SB6jVK8=" alt="R">

I might come from the conversion of coordinates from map’s output projection to image pixels, based on EXTENT/SIZE/RESOLUTION.
Because when I remove “proj=image” inside the template string, I got the right coordinates for each result.

But even after trying to set these values (either inside the mapfile header, or inside the request), it doesn’t solve the problem.

Thanks for your help

Dernière modification par diletant2 (Fri 13 December 2013 14:40)

Hors ligne

 

#2 Fri 13 December 2013 16:23

diletant2
Participant occasionnel
Date d'inscription: 10 Feb 2010
Messages: 36

Re: [Mapserver]Templating/HTML image map : shpxy renvoie tjs la même coord

ça doit avoir un rapport avec la version de Mapserver car ça ne marche pas sur des 6.X
alors que ça fonctionne sur des 5.X

Hors ligne

 

Pied de page des forums

Powered by FluxBB