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
2 answers

Shiny deployment error: upgrade GEOS to 3.6.0 or later while installing package ‘lwgeom’

I have a shiny app that runs fine on my computer. I use packages sf, leaflet, and tmap. One of these requires the package lwgeom as a dependency. While installing the package lwgeom, shiny deployment gives me the following error message. What is…
user49017
  • 137
  • 1
  • 6
3
votes
3 answers

OSError: Could not find lib geos_c.dll or load any of its variants ['..\Library\\lib\\geos_c.dll']

I'm having trouble with geos lib in python. I'm using an anaconda venv with Python 3.6 on Windows 10. On one computer, it is running. So I exported the venv and installed the venv on another computer (which worked). But on the other computer, the…
PHOFF
  • 51
  • 1
  • 3
3
votes
1 answer

Install rgdal and rgeos on Azure Databricks

I cannot install rgdal and rgeos on Databricks, any suggestions? configure: error: gdal-config not found or not executable. ERROR: configuration failed for package ‘rgdal’ * removing ‘/databricks/spark/R/lib/rgdal’ configure: error: geos-config not…
user3706794
  • 107
  • 1
  • 9
3
votes
2 answers

fix invalid geometries in django (without database)

I have polygon that I'm getting from external source. The polygon is not valid. In [36]: p Out[36]: In [37]: p.valid [12/Dec/2017 19:13:19] WARNING [django.contrib.gis:85] GEOS_NOTICE: Hole lies outside shell at…
eran
  • 6,731
  • 6
  • 35
  • 52
3
votes
1 answer

Segfault when testing the intersection with geos in parallel

I am using GEOS's C API to manage geometry in a parallel simulator: I need to ensure that the objects stay inside a constrained area. To that end when my object makes a step, I check whether the line between its previous and current position…
Silmathoron
  • 1,781
  • 1
  • 15
  • 32
3
votes
3 answers

Point in polygon rgeo

I need to know if a point is in a polygon or not, in my rails app, in order to to that I wan to use rgeo gem. To install this geme i folowed the instructions on rgeo git Then I'm sure that GEOS and Proj4 are properly installed. I also added this…
Facundo Laxalde
  • 305
  • 5
  • 18
3
votes
2 answers

Installing GEOS on Heroku

I'm trying to deploy a Rails app (ruby 2.3.0, rails 4.2.6) to Heroku that uses the RGeo gem, but I'm having no luck installing the underlying GEOS library upon which the RGeo gem relies (See https://github.com/rgeo/rgeo#dependencies). According to…
Yarin
  • 173,523
  • 149
  • 402
  • 512
3
votes
1 answer

Error encountered checking Geometry returned from GEOS C function

I'm using GEOS API with Python/Django. I want to create a MultiPolygon from geoJSON. I'm running the following code into a python Shell: mp2 = GEOSGeometry('{"type":"MultiPolygon", "coordinates": [[[[-56.14914894104003, -33.189642368629116],…
3
votes
1 answer

Ubuntu 14.04, Ruby on Rails, and GEOS

I am having a little trouble getting my Ruby on Rails app to recognise the GEOS installation on Ubuntu 14.04. The error message that I am getting is; GEOS is not available, but is required for correct interpretation of polygons in shapefiles. I'm…
benjimix
  • 609
  • 7
  • 18
3
votes
1 answer

activerecord_postgis_adapter: undefined method `point' for nil:NilClass

Problem 90% sure it's a setup error on my end, but I can't do self.factory and trying to access lonlat gives me an exception "undefined method `point' for nil:NilClass" I can Set lonlat using: mfactory =…
AndHeiberg
  • 1,029
  • 1
  • 10
  • 29
3
votes
1 answer

Why can shapely/geos parse this 'invalid' Well Known Binary?

I am trying to parse Well Known Binary a binary encoding of geometry objects used in Geographic Information Systems (GIS). I am using this spec from ESRI (same results here from esri). I have input data from Osmosis a tool to parse OpenStreetMap…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
3
votes
0 answers

How to use Google Maps projection with GeoDjango/PostGIS

I am building a web service with GeoDjango which involves user submitted events including a location. I created a model field for my location using django.contrib.gis.db: location = models.PointField(srid=900913) I chose to specify 900913 as I…
Ferguzz
  • 5,777
  • 7
  • 34
  • 41
3
votes
1 answer

RGeo on Ruby under Windows: How to enable GEOS support?

I'm trying to do some spatial operations in Ruby with the RGeo gem. Unfortunately, a lot of operations require the GEOS library and I can't find any documentation showing how to integrate this in Windows (I am using Windows 7 64bit). I tried…
Dirk
  • 9,381
  • 17
  • 70
  • 98
3
votes
1 answer

How can python generate an error on comment?

I've already posed a question about this a few days ago. The question was unnoticed, I suppose, but the behavior is really strange so I'm trying to reduce it to simpler elements and asking again. please look at this traceback: Traceback (most recent…
furins
  • 4,979
  • 1
  • 39
  • 57
3
votes
2 answers

Installing GEOS on heroku cedar

we have troubles in installing the GEOS library on heroku cedar stack. We followed this guide: https://devcenter.spacialdb.com/Heroku.html and it didn't work. We noticed that the path (/app/tmp/geos) stored in the provided geos binaries was wrong,…
cesidio
  • 35
  • 4