Newbie to GIS: convert degrees to metres

645 views
Skip to first unread message

Gavin

unread,
May 8, 2007, 8:59:36 AM5/8/07
to NetTopologySuite, gavin.c...@bt.com
Hi, I'm rather new to GIS and to NTS/JTS. Can anyone give me some
guidance how I can convert the output of Geometries.Distance() method
to another unit. I presume that it outputs degrees given two
coordinates/points, and I would like to convert this to metres or a
similar unit. How can I use NTS to do this?
Thanks,
Gavin

Diego Guidi

unread,
May 8, 2007, 9:07:05 AM5/8/07
to NetTopologySuite


In NTS coordinate conversion are provided by
SharpMap.CoordinateSystems implementations, that is at the moment
available in the svn and is a work in progress.
Here: http://code.google.com/p/nettopologysuite/source you can
checkout the latest code and play with the Coordinate conversion tests.

Gavin

unread,
May 8, 2007, 10:59:49 AM5/8/07
to NetTopologySuite
Thanks... I'll take a look at SharpMap.. Gavin

On May 8, 2:07 pm, Diego Guidi <diegogu...@gmail.com> wrote:
> > Hi, I'm rather new to GIS and to NTS/JTS. Can anyone give me some
> > guidance how I can convert the output of Geometries.Distance() method
> > to another unit. I presume that it outputs degrees given two
> > coordinates/points, and I would like to convert this to metres or a
> > similar unit. How can I use NTS to do this?
>
> In NTS coordinate conversion are provided by
> SharpMap.CoordinateSystems implementations, that is at the moment
> available in the svn and is a work in progress.

> Here:http://code.google.com/p/nettopologysuite/sourceyou can

Gavin

unread,
May 11, 2007, 9:01:44 AM5/11/07
to NetTopologySuite
Could you provide me with some pointers as to which functions to use?
Thanks,
Gavin


On May 8, 2:07 pm, Diego Guidi <diegogu...@gmail.com> wrote:

> > Hi, I'm rather new to GIS and to NTS/JTS. Can anyone give me some
> > guidance how I can convert the output of Geometries.Distance() method
> > to another unit. I presume that it outputs degrees given two
> > coordinates/points, and I would like to convert this to metres or a
> > similar unit. How can I use NTS to do this?
>
> In NTS coordinate conversion are provided by
> SharpMap.CoordinateSystems implementations, that is at the moment
> available in the svn and is a work in progress.

> Here:http://code.google.com/p/nettopologysuite/sourceyou can

Andrew Theken

unread,
May 11, 2007, 9:19:02 AM5/11/07
to nettopol...@googlegroups.com
I would suggest getting a reference to the coordinate system (in SharpMap) and then use getUnits() - also take a look at IUnit (LinearUnit/AngularUnit). If you are trying to transform coordinates, there's some functionality in Sharpmap, for that, too.

Gavin

unread,
May 14, 2007, 9:52:22 AM5/14/07
to NetTopologySuite
Thanks Andrew....

Gavin

On May 11, 2:19 pm, "Andrew Theken" <athe...@gmail.com> wrote:
> I would suggest getting a reference to the coordinate system (in SharpMap)
> and then use getUnits() - also take a look at IUnit
> (LinearUnit/AngularUnit). If you are trying to transform coordinates,
> there's some functionality in Sharpmap, for that, too.
>

> On 5/11/07, Gavin <gavin.churc...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Could you provide me with some pointers as to which functions to use?
> > Thanks,
> > Gavin
>
> > On May 8, 2:07 pm, Diego Guidi <diegogu...@gmail.com> wrote:
> > > > Hi, I'm rather new to GIS and to NTS/JTS. Can anyone give me some
> > > > guidance how I can convert the output of Geometries.Distance() method
> > > > to another unit. I presume that it outputs degrees given two
> > > > coordinates/points, and I would like to convert this to metres or a
> > > > similar unit. How can I use NTS to do this?
>
> > > In NTS coordinate conversion are provided by
> > > SharpMap.CoordinateSystems implementations, that is at the moment
> > > available in the svn and is a work in progress.
> > > Here:http://code.google.com/p/nettopologysuite/sourceyoucan
> > > checkout the latest code and play with the Coordinate conversion tests.
>

> --
> Respectfully,
> Andrew Theken
> AndrewTheken.com- Hide quoted text -
>
> - Show quoted text -

Gavin

unread,
May 15, 2007, 6:46:40 AM5/15/07
to NetTopologySuite
Hi, I think I can make a SharpMap GeographicCoordinateSystem with an
ellipsoid that uses the linear unit of metres, the angular unit of
degrees. I'm unsure of how to make the link between this and the
library objects found in GeoAPI and NTS. I'd appreciate it if you
could give me some indication of the filling code once I've got a
SharpMap.CoordinateSystems.IGeographicCoordinateSystem to make use of
the distance methods that are part of the
GisSharpBlog.NetTopologySuite.Geometries or
GisSharpBlog.NetTopologySuite.Operation.Distance so that I can output
the distance in the LinearUnit of the CoordinateSystem rather than the
AngularUnit... If I call GetUnits I get back that the coordinate
system uses degrees....

Thanks for any help...
Gavin

On May 11, 2:19 pm, "Andrew Theken" <athe...@gmail.com> wrote:

> I would suggest getting a reference to the coordinate system (in SharpMap)
> and then use getUnits() - also take a look at IUnit
> (LinearUnit/AngularUnit). If you are trying to transform coordinates,
> there's some functionality in Sharpmap, for that, too.
>

> On 5/11/07, Gavin <gavin.churc...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Could you provide me with some pointers as to which functions to use?
> > Thanks,
> > Gavin
>
> > On May 8, 2:07 pm, Diego Guidi <diegogu...@gmail.com> wrote:
> > > > Hi, I'm rather new to GIS and to NTS/JTS. Can anyone give me some
> > > > guidance how I can convert the output of Geometries.Distance() method
> > > > to another unit. I presume that it outputs degrees given two
> > > > coordinates/points, and I would like to convert this to metres or a
> > > > similar unit. How can I use NTS to do this?
>
> > > In NTS coordinate conversion are provided by
> > > SharpMap.CoordinateSystems implementations, that is at the moment
> > > available in the svn and is a work in progress.
> > > Here:http://code.google.com/p/nettopologysuite/sourceyoucan
> > > checkout the latest code and play with the Coordinate conversion tests.
>

huang shutao

unread,
May 21, 2007, 8:54:06 PM5/21/07
to nettopol...@googlegroups.com

Hi,Diego Guidi
Could you tell me what is the new project of GeoApi? is this a new project?

thank you
best regards.
hshutao

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

Diego Guidi

unread,
May 22, 2007, 5:38:48 AM5/22/07
to nettopol...@googlegroups.com
> Hi,Diego Guidi
> Could you tell me what is the new project of GeoApi? is this a new project?

Is simply a collection of interfaces that defines NTS functions, so
each library (as example sharpmap) could reference and manage this
interface instead of concrete objects.
Is a work in progress...

huang shutao

unread,
May 22, 2007, 8:13:10 AM5/22/07
to nettopol...@googlegroups.com

thank you so much. I see.

Hshutao

>From: "Diego Guidi" <diego...@gmail.com>
>Reply-To: nettopol...@googlegroups.com

_________________________________________________________________

Reply all
Reply to author
Forward
0 new messages