Documentation
¶
Index ¶
- func GetPolygonInfo(polygon *Polygon2D) map[string]interface{}
- type Edge3D
- type GeoJSONGeometry
- type Point2D
- type Point3D
- type Polygon2D
- type TIN3D
- func (tin *TIN3D) GetElevationAt(x, y float64) (float64, error)
- func (tin *TIN3D) GetElevationGrid(minX, minY, maxX, maxY float64, stepX, stepY float64) ([][]float64, error)
- func (tin *TIN3D) GetElevationsAt(points []Point2D) ([]float64, error)
- func (tin *TIN3D) GetSlopeAndAspect(x, y float64, delta float64) (slope, aspect float64, err error)
- func (tin *TIN3D) Print()
- type Triangle3D
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolygonInfo ¶
GetPolygonInfo 获取多边形的基本信息
Types ¶
type GeoJSONGeometry ¶
type GeoJSONGeometry struct {
Type string `json:"type"`
Coordinates json.RawMessage `json:"coordinates"`
}
GeoJSONGeometry 表示GeoJSON几何对象的结构
type Polygon2D ¶
type Polygon2D struct {
Points []*Point2D
}
Polygon2D 表示一个二维多边形面
func GeometryStringToMultiPolygon2D ¶
GeometryStringToMultiPolygon2D 将GeoJSON Geometry字符串转换为多个独立的Polygon2D对象 每个多边形只包含外环,适用于MultiPolygon数据
func GeometryStringToPolygon2D ¶
GeometryStringToPolygon2D 将GeoJSON Geometry字符串转换为Polygon2D对象 支持的几何类型:Polygon, MultiPolygon 对于MultiPolygon,返回第一个多边形;对于有洞的多边形,只返回外环
func GeometryStringToPolygon2DWithAllRings ¶
GeometryStringToPolygon2DWithAllRings 将GeoJSON Geometry字符串转换为多个Polygon2D对象 返回所有的环(外环和内环),适用于需要处理带洞多边形的情况
type TIN3D ¶
type TIN3D struct {
Points []*Point3D
Triangles []*Triangle3D
Edges []*Edge3D
}
TIN3D 三维三角不规则网络
func (*TIN3D) GetElevationAt ¶
获取二维点在TIN上的投影高程
func (*TIN3D) GetElevationGrid ¶
func (tin *TIN3D) GetElevationGrid(minX, minY, maxX, maxY float64, stepX, stepY float64) ([][]float64, error)
获取指定区域内的高程网格
func (*TIN3D) GetElevationsAt ¶
批量获取多个点的高程
func (*TIN3D) GetSlopeAndAspect ¶
计算指定点的坡度和坡向
type Triangle3D ¶
Triangle3D 表示一个三维三角形
Click to show internal directories.
Click to hide internal directories.