Questions tagged [geos]

A topology processing library: Geometry Engine - Open Source

From GEOS homepage:

GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

It has at least Python bindings: geoDjango.

GEOS has multiple other meanings in computing, starting from a graphical operating system for Commodore C64, but they are less relevant to SO today.

228 questions
3
votes
1 answer

GEOS C API - calculating areas with WGS84 coords (SRID=4326)

I create a polygon where each x/y point is WGS84 format lat/long values. The polygons are good approximations to circles and sectors of radius R (each circumference/arc point is a projected lat/long value of distance R from a centre/apex coordinate…
q q
  • 31
  • 2
3
votes
3 answers

Spatialite for Android NDK Build

I am having a little trouble with build an existing project at: http://code.google.com/p/spatialite-android/ I am using Win7 and Cygwin I get the source code by cloning using "GIT for Windows". Placing it into: C:\temp\ECLIPSE\workspace\SA1 I…
Hank
  • 2,456
  • 3
  • 35
  • 83
2
votes
1 answer

Query a geopackage with a simple features polygon using {sf}

I have a large geopackage. I want to read in features from it, that intersect with another geopackage. I am trying this but I'm obviously doing something wrong: box <- st_read("file1.gpkg", quiet=T) %>% st_bbox() layer_name <-…
TheRealJimShady
  • 777
  • 3
  • 9
  • 24
2
votes
1 answer

GEOS C error always when creating valid geometry or polygon

I am trying to create a Polygon with django.contrib.gis.geos.Polygon. I know that the points are valid but I get the error: django.contrib.gis.geos.error.GEOSException: Error encountered checking Geometry returned from GEOS C function…
arielkaluzhny
  • 307
  • 2
  • 12
2
votes
1 answer

geopandas / Shapely Compatibility

I am using Shapely, geopandas and pygeos and get the following warning: UserWarning: The Shapely GEOS version (3.10.2-CAPI-1.16.0) is incompatible with the GEOS version PyGEOS was compiled with (3.10.1-CAPI-1.16.0). Conversions between both will be…
M_M246
  • 65
  • 7
2
votes
0 answers

Could not find module (or one of its dependencies). Try using the full path with constructor syntax?

I am trying to install greppo and this error is popping up. Here is detail: Collecting Shapely==1.7.1 Using cached Shapely-1.7.1.tar.gz (383 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py…
2
votes
1 answer

How to measure width in KMs with geos

I've got a bounding box, and I want to adjust it so it's not less than, say, 2km across. I get the bounding box from google's geolocate service, and then I search for stuff that's inside that in my database, but I want to make sure I don't test…
Lacrymology
  • 2,269
  • 2
  • 20
  • 28
2
votes
3 answers

Problems installing rgeos and rgdal on Mac OS X Lion

I'm trying to install the rgeos package (and the rgdal) package. I have a macbook pro running os x 10.7.1 and I have the latest version of R, 2.13.1. I am following the instructions from this site:…
Pascal
  • 103
  • 1
  • 6
2
votes
0 answers

Problems with GDAL, Libspatialite, Rasterio and Sumo (ImportError, Symbol _GEOSArea not found, Referencing from libspatialite.7.dylib)

I'm new to using gdal/libspatialite/rasterio/sumo and all the family of library and packages that is related to geographical, time and space. But I was just wondering what's this error here? Does anyone have experience with this error before? Have…
M. Fire
  • 117
  • 2
  • 6
2
votes
0 answers

Fixed-precision intersection complains that i need GEOS 3.9 or higher, but PostGIS_GEOS_Version() is 3.9

Im trying to use the ST_SubDivide with a grid_size, however i get the following error: ERROR: Fixed-precision intersection requires GEOS-3.9 or higher But when i run SELECT PostGIS_GEOS_Version(); it returns: 3.9.0-CAPI-1.16.2 Do anyone have a clue…
fresser
  • 31
  • 6
2
votes
1 answer

Postgresql how to work around GEOSIntersects error?

So I have a large select query that has over 1700 rows which basically extracts data from various tables (some points, some lines, with various conditions in between them) that intersect with a polygon table select a.id (select count(*) from…
Luffydude
  • 702
  • 14
  • 27
2
votes
1 answer

Installing c libraries needed for R spatial packages on databricks clusters

Spatial packages in R often depend on C libraries for their numerical computation. This presents a problem when installing R packages that depend on these libraries if the R engine is unable to install these libraries using default permissions. It…
Cyrus Mohammadian
  • 4,982
  • 6
  • 33
  • 62
2
votes
2 answers

Percentage overlap of spatial polygons for a sensitivity analysis of convex hull

For reproducibility, let us simplify my problem as follows: I have 100 spatial polygons representing convex hulls of N random samples drawn from a population (100 times) to calculate the sensitivity of a model to single values. How do I calculate…
Mikko
  • 7,530
  • 8
  • 55
  • 92
2
votes
0 answers

Linking geos library

I'm trying to build a simple geos_test #include #include int main() { printf("%d\n", GEOS_CAPI_VERSION); exit(0); } with /usr/local/opt/llvm/bin/clang -fopenmp -L/usr/local/Cellar/geos/3.8.1_1/lib -lgeos_c …
linden
  • 127
  • 1
  • 7
2
votes
2 answers

Getting InvalidGeometry: LinearRing failed ring test after upgrading rgeo gem

After upgrading the rgeo gem from 0.6.0 to 2.1.1, we've started to get 'LinearRing failed ring test' on certain geometries that never caused us problems before. (The geometry data is generated from external sources outside of our control, and stored…
Yarin
  • 173,523
  • 149
  • 402
  • 512