超图SuperMap iObjects .NET Geometry转geoJSON&WKT&WKB
2021-03-19 10:27
标签:tput wpf 怎么 note practice geojson out geometry static 关键代码 记住命名空间,查询帮助文档即可 ConvertDataWindow 将geometry怎么转换成WKT? 超图SuperMap iObjects .NET Geometry转geoJSON&WKT&WKB 标签:tput wpf 怎么 note practice geojson out geometry static 原文地址:https://www.cnblogs.com/Lulus/p/12751489.htmlvar geoJSONTxt = Toolkit.GeometryToGeoJson(geometry);
var bytes = Toolkit.GeometryToWKB(geometry);
var wktTxt = Toolkit.GeometryToWKT(geometry);
SuperMap.Data.Toolkit
中包含:static byte[] GemetryToWKB(Geometry geometry);
static string GemetryToWKT(Geometry geometry);
Geometry GeoJsonToGeometry(string strGeoJson);
static void Geometry2ByteArray(Geometry geo, UGByteArray* arOutput);
static string GeometryToGeoJson(Geometry geometry);
static byte[] GeometryToWKB(Geometry geometry);
static string GeometryToWKT(Geometry geometry);
static PrjCoordSys PrjFromWKT(string wkt);
static string PrjToWKT(PrjCoordSys prj);
static Geometry WKBToGemetry(byte[] WKBDate);
static Geometry WKBToGeometry(byte[] WKBDate);
static Geometry WKTToGemetry(string strWKT);
static Geometry WKTToGeometry(string strWKT);
示例代码
参考资料
文章标题:超图SuperMap iObjects .NET Geometry转geoJSON&WKT&WKB
文章链接:http://soscw.com/index.php/essay/66207.html