<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Thanks to all for the input. However, I must have some kind of MENTAL BLOCK
going on. I can't seem to visualize the link from a Perl generated MAP
file to the ROSA applet.
<br>I usually create my shapefiles and mapfile on the fly based on user
input and deliver the user to a page containing the mapimage applet...
(my mapserver template file).
<p>I can't make the leap over to the Rosa applet. Would I merely build
a page on-the-fly using Perl and point to the image I made with the Mapserver
cgi? If so, how would I define PIXEL_SIZE? And what about zooming? The
<a href="http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml">ec_species_e.phtml&nbsp;</a>
FORM action points to ec_species_e.phtml and this is a PHP interface. What
would I point to to have Perl/Mapserver get involved to create a new image.
<p>Thanks so much in advance. Sorry if this is basic stuff, but like I
said... I just haven't been able to make the connection between these two
environments!
<br>Kieran
<br>&nbsp;
<p>Janet Ciavarelli wrote:
<blockquote TYPE=CITE>Is the Rosa applet only available in the PHP environment?
<p>>>> Daniel Morissette &lt;morissette@dmsolutions.ca> 08/13/01 07:29AM
>>>
<br>Kieran,
<p>The ROSA applet can do exactly that... see section "4 - distance
<br>measurement tool" in the ROSA docs at
<br><a href="http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html">http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html</a>
<p>You can see an example of it in use in Environment Canada's species
at
<br>risk application at
<br><a href="http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml">http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml</a>
<p>The measured distance is displayed in the status bar of the browser
<br>window... no need to say that the distance is only approximative due
to
<br>the projection issues that you mentioned.
<p>Best Regards,
<p>Daniel
<p>"Kieran J. Ames" wrote:
<br>>
<br>> Are there any users/developers who have played with a Java interface
to
<br>> MapServer data, other than the wonderful mapimage applet?
<br>> I'm thinking of a measuring tool that could be used to make a
<br>> rudimentary ruler, where a user could click from
<br>> point-to-point-to-point, drawing a line and getting an indication
of the
<br>> length of the line that was drawn.
<br>> The maps I render are typically only in the "town/neighborhood" range,
<br>> and I can't speak to great-circles, projections vs decimal degrees,
etc.
<br>> But I would think that a map that has a given extent would have some
<br>> sort of distance per pixel value that could be calculated and applied
to
<br>> a line drawing tool. Specifically, I'd like to be able to offer the
user
<br>> the ability to get an Ad-Hoc distance estimate when viewing a
<br>> neighborhood by "tracing" a line over the streets they're viewing
and
<br>> figure out how many linear feet (meters/yards) were traveled: as
opposed
<br>> to "as the crow flies" straight line distances.
<br>> Any Java-wise users out there that have explored this kind of
<br>> functionality?
<br>> Thanks,
<br>> Kieran</blockquote>
</html>