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.
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.