[Manifold-l] Distance calculations

Lorne lketch at hfx.eastlink.ca
Mon Sep 18 15:57:06 CDT 2006


My guess is that you have a conflict in Coordinate Systems.  You are
building a non-projected point for which the native unit is degrees. Is
[Geom (I)] Lat/Long? Is [Geom (I)] a Point object? You may have to cast your
point to the correct projected coordsys in order to generate the distance in
miles.

Lorne

-----Original Message-----
From: manifold-l-bounces at lists.directionsmag.com
[mailto:manifold-l-bounces at lists.directionsmag.com] On Behalf Of Simon
Linder
Sent: September 18, 2006 4:51 PM
To: 'Bob Heitzman'
Cc: manifold-l at lists.directionsmag.com
Subject: RE: [Manifold-l] Distance calculations


Thanks for all of your help.  I am getting a type Mismatch error on
NewPointLatLon when I set up the following function in an ActiveColumn:

Function DStudio
DStudio = distance([Geom (I)],NewPointLatLon(-77.0770,38.9657),"mi") 
End Function

I think that it should work but it does not.  Any ideas? 

Simon Linder
Wider Networks
slinder at widernetworks.com
(w) 301.951.2767
(m) 301.768.9170
-----Original Message-----
From: manifold-l-bounces at lists.directionsmag.com
[mailto:manifold-l-bounces at lists.directionsmag.com] On Behalf Of Bob
Heitzman
Sent: Friday, September 15, 2006 7:16 PM
To: slinder at widernetworks.com
Cc: manifold-l at lists.directionsmag.com
Subject: Re: [Manifold-l] Distance calculations

I guess the more correct form would be:

SELECT
Distance( [Geom (I)],  NewPointLatLon(-120,35),'mi')
FROM [A]

[ID] still works but.... _______________________________________________
Manifold-l mailing list
Manifold-l at lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/manifold-l

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.4/448 - Release Date: 9/14/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.4/449 - Release Date: 9/15/2006
 

_______________________________________________
Manifold-l mailing list
Manifold-l at lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/manifold-l


More information about the Manifold-l mailing list