geojson.net

How to serialize and deserialize geojson in C#

烂漫一生 提交于 2019-12-22 00:52:42
问题 Am trying to Deserialize an object to json where the location details should be converted to geojson format. Tried to achieve this using geojson.net nuget package but am not able to acheve the same. There are no examples available for geojson in net. My Object from request: public class Request { public int Id { get; set; } public string Name { get; set; } public Fence Fence { get; set; } } public class Fence { public int Type { get; set; } public List<PValues> Values { get; set; } } public

How to serialize and deserialize geojson in C#

旧时模样 提交于 2019-12-04 20:37:20
Am trying to Deserialize an object to json where the location details should be converted to geojson format. Tried to achieve this using geojson.net nuget package but am not able to acheve the same. There are no examples available for geojson in net. My Object from request: public class Request { public int Id { get; set; } public string Name { get; set; } public Fence Fence { get; set; } } public class Fence { public int Type { get; set; } public List<PValues> Values { get; set; } } public class PValues { public double Latitude { get; set; } public double Longitude { get; set; } } I want to