gogeos
gogeos copied to clipboard
Go library for spatial data operations and geometric algorithms (Go bindings for GEOS)
the ESRI shapefile depends on whether the coordinates are clockwise or counterclockwise to determine internal and external polygons. This library seem to does not have a function to determine whether...
Found a bug in _encodeWkb()_ for windows. A buffer allocated in geos_c.dll whith _malloc()_ cannot simply be freed with _C.free()_. Must use _cGEOSFree()_. Now all tests pass. The modified code...
I am getting the following error when trying to execute go run main.go: ``` exit status 3221225781 ``` main.go: ``` package main import ( "fmt" "github.com/paulsmith/gogeos/geos" ) func main() {...
Hi, Using this library under heavy load I received the following error. Any info about the meaning of "Pure virtual function called" or hints on where to look in the...
while doing go get as mentioned in read me got following error `go get github.com/paulsmith/gogeos/geos` ``` In file included from ../../pkg/mod/github.com/paulsmith/[email protected]/geos/coordseq.go:4: ./geos.h:1:10: fatal error: 'geos_c.h' file not found #include ^~~~~~~~~~...
Add Bounds() method. It can be helpful for creating rtree index.
Which function return metric geometry.Area() ? https://github.com/paulsmith/gogeos/blob/21f81b2ea5af44d3f6029cc3e5bbbd26b2425236/geos/geom.go#L797
The wkt encoding function leaks memory, as it does not free the C String allocated when encoding. You can verify this with a simple example that encodes a polygon to...
While creating new polygon using wkt, the results (error free) change the precision and the value of the points. ``` polygon, err := geos.FromWKT("POLYGON ((11.1 44.1, 12 45, 13 46,...
`Geometry.String()` works for POINT and LINEARRING, but results in a segmentation violation when called on a MULTIPOLYGON. Code to reproduce: ```golang triangle := geos.Must(geos.NewLinearRing( geos.NewCoord(0, 0), geos.NewCoord(1, 2), geos.NewCoord(2, 3),...