Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-10-17 Thread Chris Hardin
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 Goog

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-10-16 Thread Mike Adair
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 sprin

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-10-16 Thread Linda_Rawson
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 mat

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-22 Thread Lance Dyas
You probably already know it but the standard distance code is only accurate in EPSG:4326 (LatLon) and most CRS whose units are degrees it is pretty close as well. In many/most other projections a linear distance n whatever units the CRS uses (almost always meters) is probably pretty useable.

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-21 Thread Mike Adair
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

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-21 Thread Erik Uzureau
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/

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-21 Thread Erik Uzureau
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 <[EMAIL PROTECTED]> wrote: > It's been quite accurate

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-20 Thread Chris Hardin
It's been quite accurate for me. On 8/20/07, Lance Dyas <[EMAIL PROTECTED]> 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. > -- Ch

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-20 Thread Lee Keel
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Lance Dyas > Sent: Monday, August 20, 2007 8:34 AM > To: Chris Hardin > Cc: users@openlayers.org; Erik Uzureau > Subject: Re: [OpenLayers-Users] Measure Distance? Ruler? > >

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-20 Thread Lance Dyas
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. ___ Users mailing list Users@openlayers.org http://openlaye

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-20 Thread Chris Hardin
Yeah, the calculation involves a little trig. I figure it would be an easy feature to add. I use the following .js file to calculate it, I just need to figure out how to feed it the starting point and ending point and draw a line. var EARTH_MEAN_RADIUS_MILES = 3959.87247; var EARTH_ME

Re: [OpenLayers-Users] Measure Distance? Ruler?

2007-08-20 Thread Erik Uzureau
I know that there is a ticket for this in TRAC... and there may or may not be work underway to solve this. I know also that there are some wierd math-heavy functions in the (i believe) Util.js file which can be used to calculate distance between points. It has for a while been a (low) MetaCarta p

[OpenLayers-Users] Measure Distance? Ruler?

2007-08-19 Thread Chris Hardin
I want to click a point and drag a line to another point on the map and a measurement be given. I could write this myself, but I was hoping there might already be something included or an add on I could use. Does anyone have any ideas? ___ Users mailing l