[mapserver-users] Java Applet Development

Kieran J. Ames kames at keyspanenergy.com
Tue Aug 21 11:51:55 PDT 2001


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.
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).

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
ec_species_e.phtml  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.

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!
Kieran


Janet Ciavarelli wrote:

> Is the Rosa applet only available in the PHP environment?
>
> >>> Daniel Morissette <morissette at dmsolutions.ca> 08/13/01 07:29AM >>>
> Kieran,
>
> The ROSA applet can do exactly that... see section "4 - distance
> measurement tool" in the ROSA docs at
> http://www2.dmsolutions.ca/webtools/rosa/rosa_params.html
>
> You can see an example of it in use in Environment Canada's species at
> risk application at
> http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml
>
> The measured distance is displayed in the status bar of the browser
> window... no need to say that the distance is only approximative due to
> the projection issues that you mentioned.
>
> Best Regards,
>
> Daniel
>
> "Kieran J. Ames" wrote:
> >
> > Are there any users/developers who have played with a Java interface to
> > MapServer data, other than the wonderful mapimage applet?
> > I'm thinking of a measuring tool that could be used to make a
> > rudimentary ruler, where a user could click from
> > point-to-point-to-point, drawing a line and getting an indication of the
> > length of the line that was drawn.
> > The maps I render are typically only in the "town/neighborhood" range,
> > and I can't speak to great-circles, projections vs decimal degrees, etc.
> > But I would think that a map that has a given extent would have some
> > sort of distance per pixel value that could be calculated and applied to
> > a line drawing tool. Specifically, I'd like to be able to offer the user
> > the ability to get an Ad-Hoc distance estimate when viewing a
> > neighborhood by "tracing" a line over the streets they're viewing and
> > figure out how many linear feet (meters/yards) were traveled: as opposed
> > to "as the crow flies" straight line distances.
> > Any Java-wise users out there that have explored this kind of
> > functionality?
> > Thanks,
> > Kieran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20010821/21875ef2/attachment.htm>


More information about the MapServer-users mailing list