-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Deserializing unknown Geometries? #184
Comments
Hi ! I think this will work : Good point about the documentation. Where would you like it to be documented? The code itself? |
You can also have a look at the tests here : https://github.com/GeoJSON-Net/GeoJSON.Net/blob/master/src/GeoJSON.Net.Tests/Geometry/GeometryTests.cs |
Hi, so either Where it should be documented? I'd say the README as that seems to be the only up to date documentation / reference out there, and the converters are not shown at all there (or explanations what the different converters are meant for). |
Yeah I admit I also feel confused about that and wonder why it has been designed this way.
|
Is there any way to just generically convert a Geometry into whatever type is specified in the GeoJSON itself? I.e. I have a DB column that might be anything from Point to MultiPolygon, so doing
JsonConvert.DeserializeObject<SomeSpecificGeomTypeHere>(data.geom)
does not work for obvious reasons.If there is, this should really be documented.
The text was updated successfully, but these errors were encountered: