twpayne/go-geom
twpayne/go-geom has 987 GitHub stars and 119 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-25 00:34 UTC. Last push 2026-10-18.
What you can do
- OpenGeo Consortium-style geometries.
- Support for 2D and 3D geometries, measures (time and/or distance), and unlimited extra dimensions.
- Encoding and decoding of common geometry formats (GeoJSON, KML, WKB, and others) including sql.Scanner and driver.Value interface implementations for easy database integration.
- 2D and 3D topology functions.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
geom 패키지는 지리 공간 애플리케이션을 위한 효율적인 기하 타입을 구현합니다.
창작 및 미디어README.md
Originalgo-geom
Package geom implements efficient geometry types for geospatial applications.
Key features
- OpenGeo Consortium-style geometries.
- Support for 2D and 3D geometries, measures (time and/or distance), and unlimited extra dimensions.
- Encoding and decoding of common geometry formats (GeoJSON, KML, WKB, and
others) including
sql.Scanneranddriver.Valueinterface implementations for easy database integration. - 2D and 3D topology functions.
- Efficient, cache-friendly internal representation.
- Optional protection against malicious or malformed inputs.
Examples
Detailed features
Geometry types
Encoding and decoding
Geometry functions
Protection against malicious or malformed inputs
The WKB and EWKB formats encode geometry sizes, and memory is allocated for
those geometries. If the input is malicious or malformed, the memory allocation
can be very large, leading to a memory starvation denial-of-service attack
against the server. For example, a client might send a MultiPoint with header
indicating that it contains 2^32-1 points. This will result in the server
reading that geometry to allocate 2 × sizeof(float64) × (2^32-1) = 64GB of
memory to store those points. By default, malicious or malformed input
protection is disabled, but can be enabled by setting positive values for
wkbcommon.MaxGeometryElements.
Related libraries
- github.com/twpayne/go-gpx GPX encoding and decoding
- github.com/twpayne/go-kml KML encoding
- github.com/twpayne/go-polyline Google Maps Polyline encoding and decoding
- github.com/twpayne/go-vali IGC validation
License
BSD-2-Clause
관련 프로젝트 살펴보기
불러오는 중…