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

Failed to load geometry objects using GeoJsonReader #13

Closed
jeduardocosta opened this issue Nov 5, 2014 · 1 comment
Closed

Failed to load geometry objects using GeoJsonReader #13

jeduardocosta opened this issue Nov 5, 2014 · 1 comment

Comments

@jeduardocosta
Copy link

Hi,

I'm having problems with the new API version (v0.12.0).

The geometry type objects (like Polygon, MultiPolygon, Point and many others) do not implement the interface 'IGeoJsonObject'. Now, they implement only the interface 'IGeometry'.

I can not load a GeoJSON object ('IGeoJsonObject') from a GeoJSON (in string format) with only the geometry data.

Using the latest API version (v0.12.0) the reading sample using GeoJsonReader class does not work: https://github.com/sibartlett/Geo/wiki/GeoJSON

This code does not work:

'
const string geojson = @"{""type"":""Point"",""coordinates"":[0,0]}";
var reader = new GeoJsonReader();
var point = reader.Read(geojson);
'

Can you help me?

Thanks.

@sibartlett
Copy link
Owner

Sorry, about this! Not sure how I didn't catch this issue. I'm trying to simplify the interfaces in Geo.

It should now be fixed in 0.12.1; I updated IGeometry to implement IGeoJsonObject.

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