Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WKT to GeoJSON #6

Closed
shaahink opened this issue Jan 15, 2014 · 1 comment
Closed

WKT to GeoJSON #6

shaahink opened this issue Jan 15, 2014 · 1 comment

Comments

@shaahink
Copy link

Hello ,

Is there any API exist to convert WKT to geoJSON ?

Regards

@sibartlett
Copy link
Owner

Sorry for the very late response.

I have started simplifying the interfaces used in Geo - so that APIs are easier to find. In the next version, you'll be able to do the following:

public string Convert_WKT_To_GeoJSON(string wkt)
{
    var reader = new WktReader();
    var writer = new GeoJsonWriter();
    var geometry = reader.Read(wkt);
    return writer.Write(geometry);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants