Documentation
¶
Index ¶
- func ConvertDXFToGeoJSON2(dxfFilePath string) (*geojson.FeatureCollection, string)
- func ConvertGeoJSONToSHP(GeoData *geojson.FeatureCollection, shpfileFilePath string)
- func ConvertGeoJSONToSHP3(GeoData *geojson.FeatureCollection, shpfileFilePath string)
- func ConvertPointToArrow(pics []models.GeoPic, shpfileFilePath string)
- func ConvertPolygonToMultiPolygon(points []shp.Point, parts []int32) (orb.MultiPolygon, string)
- func ConvertSHPToGeoJSON2(shpfileFilePath string) (*geojson.FeatureCollection, string)
- func CoordTransform4326To4523(x, y float64) (x1, y1 float64)
- func CoordTransformAToB(x float64, y float64, A string, B string) (x1, y1 float64)
- func DatToGeojson(FilePath string) (*geojson.FeatureCollection, string)
- func FindFiles(root string, Exc string) []string
- func GbkToUtf8(s string) string
- func GeoJsonTransformTo4326(original *geojson.FeatureCollection, EPSG string) (*geojson.FeatureCollection, error)
- func GeoJsonTransformToCGCS(original *geojson.FeatureCollection) (*geojson.FeatureCollection, error)
- func GetFeatureString(originals []*geojson.Feature) string
- func GetGeometryString(original *geojson.Feature) string
- func IsClockwise(points []orb.Point) bool
- func KmlToGeojson(path string) (*geojson.FeatureCollection, string)
- func SplitPoints(points []shp.Point, parts []int32) [][]shp.Point
- func StringToCoords(Coords string) []orb.Point
- func TrimTrailingZeros(input string) string
- func TxtToGeojson(FilePath string) (*geojson.FeatureCollection, string)
- func Utf8ToGbk(input string) []byte
- type ConvertedPoint
- type Document
- type ExtendedData
- type Folder
- type GeometryData
- type IconStyle
- type Kml
- type LabelStyle
- type LineStyle
- type Placemark
- type Point
- type Schema
- type SchemaData
- type ShapeData
- type SimpleData
- type SimpleField
- type Style
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDXFToGeoJSON2 ¶
func ConvertDXFToGeoJSON2(dxfFilePath string) (*geojson.FeatureCollection, string)
func ConvertGeoJSONToSHP ¶
func ConvertGeoJSONToSHP(GeoData *geojson.FeatureCollection, shpfileFilePath string)
func ConvertGeoJSONToSHP3 ¶
func ConvertGeoJSONToSHP3(GeoData *geojson.FeatureCollection, shpfileFilePath string)
func ConvertPointToArrow ¶
func ConvertPolygonToMultiPolygon ¶
func ConvertPolygonToMultiPolygon(points []shp.Point, parts []int32) (orb.MultiPolygon, string)
func ConvertSHPToGeoJSON2 ¶
func ConvertSHPToGeoJSON2(shpfileFilePath string) (*geojson.FeatureCollection, string)
func CoordTransform4326To4523 ¶
CoordTransform 函数将EPSG:4523坐标转换为EPSG:4326坐标
func CoordTransformAToB ¶
CoordTransform 函数将EPSG:4523坐标转换为EPSG:4326坐标
func DatToGeojson ¶
func DatToGeojson(FilePath string) (*geojson.FeatureCollection, string)
func GeoJsonTransformTo4326 ¶
func GeoJsonTransformTo4326(original *geojson.FeatureCollection, EPSG string) (*geojson.FeatureCollection, error)
35带转换
func GeoJsonTransformToCGCS ¶
func GeoJsonTransformToCGCS(original *geojson.FeatureCollection) (*geojson.FeatureCollection, error)
35带转换
func GetFeatureString ¶
func GetGeometryString ¶
func IsClockwise ¶
func KmlToGeojson ¶
func KmlToGeojson(path string) (*geojson.FeatureCollection, string)
func SplitPoints ¶
func SplitPoints(points []shp.Point, parts []int32) [][]shp.Point
func StringToCoords ¶
func TrimTrailingZeros ¶
func TxtToGeojson ¶
func TxtToGeojson(FilePath string) (*geojson.FeatureCollection, string)
Types ¶
type ConvertedPoint ¶
type ExtendedData ¶
type ExtendedData struct {
SchemaData SchemaData `xml:"SchemaData"`
}
type GeometryData ¶
type LabelStyle ¶
type LabelStyle struct { }
type Placemark ¶
type Placemark struct { ID string `xml:"id,attr"` Name string `xml:"name"` Description string `xml:"description"` Style Style `xml:"Style"` ExtendedData ExtendedData `xml:"ExtendedData"` LineString *KmlGeo.LineString `xml:"LineString"` Point *KmlGeo.Point `xml:"Point"` Polygon *KmlGeo.Polygon `xml:"Polygon"` MultiGeometry *KmlGeo.MultiGeometry `xml:"MultiGeometry"` }
type Point ¶
type Point struct {
X, Y float64
}
方位角生成
func RotatePoint ¶
RotatePoint rotates point A around point B by the given angle in degrees.
type Schema ¶
type Schema struct { Name string `xml:"name,attr"` ID string `xml:"id,attr"` SimpleField []SimpleField `xml:"SimpleField"` }
type SchemaData ¶
type SchemaData struct {
SimpleData []SimpleData `xml:"SimpleData"`
}
type ShapeData ¶
type ShapeData struct { Shape shp.Shape Attributes map[string][]byte GeomType string // "point", "line", "polygon" }
高性能写出
type SimpleData ¶
type SimpleField ¶
type Style ¶
type Style struct { IconStyle IconStyle `xml:"IconStyle"` LabelStyle LabelStyle `xml:"LabelStyle"` LineStyle LineStyle `xml:"LineStyle"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.