【文件属性】:
文件名称:GeoJSON.Net:.Net库,用于GeoJSON类型和相应的Json.Net(de)serializers
文件大小:590KB
文件格式:ZIP
更新时间:2021-05-28 02:43:57
C#
GeoJSON.NET
GeoJSON.Net是的.NET库,它使用并提供转换器来对GeoJSON数据进行序列化和反序列化。
安装及使用
: Install-Package GeoJSON.Net
序列化
Position position = new Position ( 51.899523 , - 2.124156 );
Point point = new Point ( position );
string json = JsonConvert . SerializeObject ( point );
反序列化
string json = " { \" coordinates \" :[-2.124156,51.899523], \" type \" : \" Point \" } " ;
Point point = JsonConvert . DeserializeObjec