[Mapserver-users] shpxy

Paul Spencer spencer@dmsolutions.ca
Tue, 09 Mar 2004 15:37:11 -0500


Hi,

I'm using the [shpxy xf="," transform] in a template to create imagemaps 
... the imagemap  onmouseover/onmouseout dynamically positions a dhtml 
div element over the feature in the map.  This works exceptionally well 
for points but it doesn't work for polygons.

Is there anything I can use in a template to get a centroid value for a 
polygon (rather than all the points)?

Also, has anyone tried to do this for lines?  I'm using mapscript and 
generating the template dynamically based the type of a selected layer. 
  Right now my approach is to get the points that make up lines and then 
create polygons by buffering the lines ... this is obviously quite a lot 
of work in php :)

Cheers,

Paul
-- 
  -----------------------------------------------------------------
|Paul Spencer                           spencer@dmsolutions.ca    |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------

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