I have WKT in this format:

GEOMETRYCOLLECTION(POLYGON((491990.250718 6212873.59755,491492.160493 6212904.94117,491265.64715 6212790.54445,491319.517251 6212550.36334,491579.624164 6212637.87553,491611.164518 6212718.61909,492055.359904 6212718.66908,491990.250718 6212873.59755)))

It is currently in Euref98 projection and I need it converted to LongLat.

I'm a .NET developer so I prefer a .NET solution.

Is there a .NET library that can parse WKT text into an in-memory model and write the in-memory model back to WKT?


Proj.Net should be able to do that.

|improve this answer|||||
  • Proj.NET throws an exception, System.ArgumentException : 'GEOMETRYCOLLECTION' is not recognized. – Morten Lyhr Aug 5 '11 at 6:02
  • Looks like Proj.NET only supports SRS WKT syntax, so no geometries. SharpMap should be able to handle WKT geometries, too: sharpmap.codeplex.com – Igor Brejc Aug 5 '11 at 6:14

I suggest class from .NET framework: DbGeography

DbGeography dbg = DbGeography.FromText(wkt_string);
|improve this answer|||||

try this as well - http://csharp-source.net/open-source/geospatial

|improve this answer|||||
  • 2
    Hi Doug and welcome to GIS.stackexchange! Please summarize the content of the link in your answer. This way, even if the link should break, readers can gain information. – underdark Aug 4 '11 at 19:21
  • code.google.com/p/nettopologysuite WKTReader does the job – Morten Lyhr Aug 5 '11 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.