Hello and I hope you can help here.
Using Xamarin Forms and I am new to your products.
I assumed that I can create a feature from that GeoJson string using the Feature.CreateFeatureFromGeoJson. But I get an exception of:
System.InvalidCastException: Specified cast is not valid.
at ThinkGeo.Core.Feature.CreateFeatureFromGeoJson (System.String geoJson) [0x00006] in <88a93a0ef8fd40b6b3125d2895e99794>:0
My assumption is that method would take a GeoJSON geometry and create a feature but it appears it wants the string to be based from one of your Features converted to GeoJson.
My starting JSON is:
Now I did create a feature based on a point and called its GetGeoJson() and I get back a format of:
Quite a different string to the one I am wanting to use.
So it appears that your GeoJson get and create are for a specific format and not the GeoJson RFC standard?
I assume to create features from my data feed I will need to create a Point from my GeoJson and then create a Feature based on that Point?
Or is there some other way to get my data into a set of features?
My data is a class with a Geometry using the NuGet GeoJSON.net.
I hope I have explained myself well enough for you to answer.