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
0
votes
1 answer

Using GEOS API functions in C lang returns segmentation fault

I am trying to use some libgeos (https://github.com/libgeos/geos) functions from my C program. Below is my code. #include #include int main() { GEOSContextHandle_t ctx = GEOS_init_r(); GEOSGeometry *inputGeom =…
srimaln91
  • 1,176
  • 10
  • 21
0
votes
1 answer

Later version of GEOS on pypi

I am trying to install GEOS 3.3.3 on my workstation. When I look at pypi (https://pypi.org/search/?q=geos), I only see versions up to 0.2.1. Do I need to install it from somewhere else?
Jeanne Lane
  • 495
  • 1
  • 9
  • 26
0
votes
1 answer

installing GEOS for shapely

I am new to Shapely module . When i am trying to run the code in which i am trying to run shapely methods i am getting following error. It is trying to tell me that i should install GEOS version >=3.3 but in pip i am not able to find that version.…
0
votes
2 answers

Cannot build rgdal package on amazon linux AMI

I am unable to build rgdal (see output in code chunk below) on my AWS server. I understand from the discussion here, and here that this has something to do with missing libraries for geos and gdal, but none of the solutions suggested appears to…
Andrea
  • 76
  • 8
0
votes
1 answer

Using geos inside a Rcpp function

Anyone have a hint in how to use geos inside Rcpp functions (I'm building an R package)? Actually, I'm looking for a better approach then this: Rcpp::Environment rgeos_env = Environment::namespace_env("rgeos"); Rcpp::Function Dist =…
lcgodoy
  • 763
  • 5
  • 14
0
votes
1 answer

how to call GEOSDistance_r from geos library

I am trying to speed the spatial distance calculation between polygons and points/polygons by calling the GEOS library directly. However I couldn't find any help how to call this function correctly. Can anyone please point me to the location where I…
Karen Chen
  • 65
  • 1
  • 7
0
votes
1 answer

Can't make Gdal 1.11.2 work from binaries

I am trying to install GEOS for Django project and following Docs but while compiling on Ubuntu 16.04 Xenial I get this error. There was some fix for it here but it also didn't worked. Following is the error I get while I ran "make" as per official…
Shazia Nusrat
  • 174
  • 1
  • 10
  • 36
0
votes
1 answer

Removing geos in linux

I installed geos 3.6.2 following the tutorial here : https://geonode.readthedocs.io/en/2.0/tutorials/admin/install/install_postgis.html (except for the fact that I downloaded and installed v3.6.2 and not v3.3.8) Now I'd like to remove it. What is…
François M.
  • 4,027
  • 11
  • 30
  • 81
0
votes
1 answer

Intersect two shapely polygons on the Earth projection

as i know, shapely use only cartesian coordinate system. I have two point on the earth with lat and lon coordinates. I need create buffer with 1km radius around this two points and find polygon, where this buffers intersect. But construstion…
0
votes
1 answer

rgeos/rgdal bug only when rgdal but not rgeos is loaded

I've been having an issue in R that causes the program to crash. I've finally been able to narrow the problem down to the following. I find that the following works: library(rgeos) x = readWKT("POLYGON ((0 0, 0 10, 10 10, 10 0, 0…
Pascal
  • 1,590
  • 2
  • 16
  • 35
0
votes
0 answers

Get errors trying to do python manage.py runserver

Catch errors trying to do manage.py runserver. GEOS has already installed. Database is created (I use PostgreSQL), all packages from requirements is successfully installed. When I run python manage.py runserver I get this messages. (virualenv)…
Alexander Seredenko
  • 799
  • 3
  • 9
  • 26
0
votes
0 answers

Polygonize a triangle mesh (C++)

I'm trying to create a buffer polygon out of a triangulated mesh. I've tried various combinations with geos and gdal polygonization (using the whole polyline as linestring, using sets of line arrays, point sets,...). I'm always getting NULL, or an…
benjist
  • 2,740
  • 3
  • 31
  • 58
0
votes
0 answers

Failing to import Shapely / GEOS in Python on OSX

I am running a brewed Python 2.7.11 on OS X El Capitan 10.11.3. I fail to import Shapely / GEOS: Failed `CDLL(/usr/local/lib/libgeos_c.dylib)` Failed `CDLL(/Library/Frameworks/GEOS.framework/Versions/Current/GEOS)` Failed…
0
votes
1 answer

GEOS C++ geos::Geometry Buffer(0) false assertion on convexHull

I'm currently using the C++ GEOS API to iterate over a vector of typedef Points (x and y member variables). I turn this vector into a convexHull by creating a geos::geom::Geometry object, buffering at 0 to prevent self intersections, and then…
DaynaJuliana
  • 1,144
  • 1
  • 14
  • 33
0
votes
0 answers

Compilation failed for package ‘rgeos’ while using R-studio

While installing R package rgeos, I typed the code below in R-studio: >install.packages("rgeos") The output shows like this: ld: framework not found R clang: error: linker command failed with exit code 1 (use -v to see invocation) make:…
Han Zhengzu
  • 3,694
  • 7
  • 44
  • 94