Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to transform coordinates according to coordinate system wkt in TE

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to convert coordinates according to the coordinate system wkt in TE, which is very detailed and has certain reference value. Friends who are interested must read it!

WKT (Well-known text) is a text markup language used to represent the transformation between vector geometric objects, spatial reference systems and spatial reference systems. Its binary representation, that is, WKB (well-known-binary), is better than transmitting and storing the same information in the database. The format is developed by the Open Geospatial Alliance (OGC).

The coordinate system also has the representation of wkt. For example, the wkt of wgs 84 is as follows:

GEOGCS ["WGS 84", DATUM ["WGS_1984", SPHEROID ["WGS 84", 6378137298.257223563], AUTHORITY ["EPSG", "6326"]], PRIMEM ["Greenwich", 0copy AUTHORITY ["EPSG", "8901"]], UNIT ["degree", 0.01745329251994328 [EPSG "," 9122 "]], AUTHORITY [" EPSG "," 4326 "]]

In the secondary development of TE, coordinate transformation is provided according to the wkt of the coordinate system, and other coordinate systems can be directly converted to the target coordinate system for use.

The specific implementation method is as follows (C #):

/ / define the wkt of the source and target coordinate systems

Var _ sourcePrj = _ sgworld.CoordServices.CreateCoordinateSystem ("source wkt string")

Var _ disPrj = _ sgworld.CoordServices.CreateCoordinateSystem ("target wkt string")

Var _ cood2d = _ sgworld.CoordServices.Reproject (_ sourcePrj, _ disPrj, source coordinates X, source coordinates Y)

The result of the conversion is an object that contains x ~ ~ y. The conversion of the coordinate system only needs to convert x and y, and the height does not need to be converted.

The above is all the contents of the article "how to transform coordinates according to the coordinate system wkt in TE". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report