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

What is the structure of the point, line and surface layer in the secondary development of TE

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is to share with you about the structure of dot-line-surface layer in the secondary development of TE. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In the development of te, there are layers of point, line and surface. The basic type of spatial representation in the layer is Geometry, which is divided into IPoint, ILineString, ILinearRing, IMultiLineString, IGeometryCollection and IPolygon in detail.

IPoint is the basic type in the point layer, which represents a point. In the special place in te, the coordinates of a single point object are not represented by IPoint, but by IPosition. This is because the representation of a single point object needs to set three-dimensional properties such as yaw, pitch, roll and so on. In the layer, these parameters can be uniformly set through the layer. In the point layer, the most basic IFeature object is obtained, including the properties of Geometry. In the development of js, after obtaining the object of Geometry, you can directly use the properties and methods in IPoint. In the development of c #, you need to use as to cast, convert Geometry to IPoint, and then operate on properties and methods.

ILineString and IMultiLineString are the basic types of lines and line layers. IMultiLineString may contain multiple ILineString. In a single object and layer of te, the type of line is uniform. In the online operation, get the Geometry attribute. To make it clear whether it is multi or a single line, the attributes involved are not the same. You can judge by GeometryType. In the development of js, you can directly operate according to the attributes and methods. In the development of c# You need to use as to cast, convert Geometry to ILineString or IMultiLineString, and then manipulate properties and methods.

IPolygon is the basic type of face and surface layer. IPolygon may contain one or more ILinearRing, which can be obtained according to the attributes in IPolygon. First, after you get the attribute of Geometry, you need to convert it to IPolygon and get ILinearRing from it, which is the same as the conversion of points and lines above in the development of js and C#.

In te's help manual, there is an example: "Editing a Geometry Object" describes in detail how to edit an object on a side, which you can learn.

IGeometryCollection is a collection of points, lines, and faces on the same layer, this layer is mixed, the use of separate layers to deal with, this is less used.

Thank you for reading! This is the end of the article on "what is the structure of the point-line-surface layer in the secondary development of TE?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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