[mapserver-users] Possible to let the user measure distances and areas?

Daniel Morissette morissette at dmsolutions.ca
Fri May 3 09:51:51 EDT 2002


Stephen, Peter,

The ROSA applet supports this.  However it has no knowledge of
projections, so the measured distance is just an approximation as stated
in the documentation.

For an example of a site using this, see:
  http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml

and for the docs, look for "Distance Measurement Tool" in 
  http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html

Daniel



Stephen Woodbridge wrote:
> 
> Peter,
> 
> I don't think the current Rosa or mapplet applets support this
> functionality, but if any of our Java programmers (hint, hint, wink,
> nudge) where inclined to add it that would be cool functionality to
> have. You would have to extend the applet interface to include some
> knowledge about the projection to get accurate computations. At smaller
> scales you can probably make some assumptions that make the calculations
> simplier by assuming that the points are on a flat plain and not on the
> curvature of the earth.
> 
> -Steve W.
> 
> Peter wrote:
> >
> > Hi listers!
> >
> > Is it possible to get the distances and areas with mapserver-projects?
> > The user should click two times on the map and get the length in meters...
> > We have the mapimage within an applet...
> >
> > Thanks
> >
> > Peter



More information about the mapserver-users mailing list