[OpenLayers-Users] Measure Distance? Ruler?

Chris Hardin chrislhardin at gmail.com
Wed Oct 17 10:14:39 EDT 2007


I created a measuring tool from scratch and integrated it into the
toolbar. I use the lat and lon of the starting position and the ending
position to determine the distance using the Vicenty formula. I have
had success with it. I have compared it to Google's measuring tools in
Google Earth and Google Maps and it is accurate within 5 feet most of
the time.
It works for me perfectly, if anyone is interested, I will send them the code.



On 10/16/07, Mike Adair <madair at dmsolutions.ca> wrote:
> Linda,
>
> Not as much as I would have liked, but I did merge Chris's changes back
> into the proj4js SVN and converted some more projection class code to
> the correct format for proj4js.  This wouldn't involve any changes to
> the OpenLayers.Projection class code that we came up with at the code
> sprint, just the underlying library.  I will try to update my sandbox
> with that this week.  I'm not sure of the progress within OL itself as
> to how it uses the projection support.
>
> Mike
>
> Linda_Rawson wrote:
> > Mike,
> >
> > I was wondering if you had made progress on this project of yours.
> >
> > Thanks,
> > Linda
> >
> > Mike Adair wrote:
> >
> >> FYI, I'm hoping to have the Proj4js (or cscs) library finished up in a
> >> few weeks so you should also be able to use that to convert point coords
> >> between projections, and do the math in map projected space.
> >>
> >> Proj4js is a port of Proj4 to Javascript, and will use
> >> spatialreference.org for lookup of projection parameters, if a
> >> particular projection isn't known already and it includes datum
> >> transforms.
> >>
> >> Mike
> >>
> >>
> >> Erik Uzureau wrote:
> >>
> >>> PS. If anyone is considering building this and would like to share the
> >>> code with the OL repository, we would (again) be delighted. Please
> >>> contact me or any of the other PSC members and we can set you up with
> >>> wiki/trac passwords, access to a sandbox, and help you with
> >>> code/design decisions.
> >>>
> >>>
> >>>
> >>> On 8/21/07, Erik Uzureau <erik.uzureau at metacarta.com> wrote:
> >>>
> >>>
> >>>> all:
> >>>>
> >>>> Here is the official ticket in OL's TRAC for the path measuring tool:
> >>>> http://trac.openlayers.org/ticket/173
> >>>>
> >>>> There is also an open ticket for an *area* measuring tool:
> >>>> http://trac.openlayers.org/ticket/782
> >>>>
> >>>> Erik
> >>>>
> >>>>
> >>>> On 8/20/07, Chris Hardin <chrislhardin at gmail.com> wrote:
> >>>>
> >>>>
> >>>>> It's been quite accurate for me.
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 8/20/07, Lance Dyas <lancelot at inetnebr.com> wrote:
> >>>>>
> >>>>>
> >>>>>> There is accurate distance measurement using the Vincenty distance
> >>>>>> formula...
> >>>>>> Haverine is umm simulating the earth as sphere and is not accurate.
> >>>>>> What Open Layers lacks is a gui for measurement.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> --
> >>>>> Chris Hardin
> >>>>> Software Architect
> >>>>> Archetype Corporation
> >>>>>
> >>>>>
> >>>>>
> >>> _______________________________________________
> >>> Users mailing list
> >>> Users at openlayers.org
> >>> http://openlayers.org/mailman/listinfo/users
> >>>
> >>>
> >>>
> >>>
> >> _______________________________________________
> >> Users mailing list
> >> Users at openlayers.org
> >> http://openlayers.org/mailman/listinfo/users
> >>
> >>
> >>
> >
> >
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


-- 
Chris Hardin
Software Architect
Archetype Corporation



More information about the Users mailing list