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

Issue migrating on m1 mac: geos incompatible architecture

I have run through a setup and I'm having issues migrating my app (within my venv). When I run python manage.py migrate I recevie this error: OSError: dlopen(/opt/homebrew/opt/geos/lib/libgeos_c.dylib, 0x0006): tried:…
Daniel Johnson
  • 193
  • 2
  • 14
0
votes
0 answers

Using gBuffer from rgeos with correct projection

I want to show 15 mile radius circles around points in a map using gBuffer. As far as I can tell I have the points and the map in the same projection, but when I produce the circles on the map, they are too large. Here is my code. The tigerline…
user8229029
  • 883
  • 9
  • 21
0
votes
1 answer

Compile GDAL with GEOS

How can I compile GDAL with GEOS support enabled? I managed to compile it in release only but I need a debug dll too. Is there a Tutorial somewhere?
Roots19
  • 13
  • 3
0
votes
1 answer

How can I efficiently find every combination of intersection of two arrays of polygons?

I have two arrays of polygons called grid_1 and grid_2. grid_1 has 1,500,000 polygons and grid_2 has 60,000 polygons. As it is much too computationally expensive to calculate the intersecting polygon of each combination and then calculate its area,…
Nick
  • 21
  • 1
0
votes
0 answers

Wrong distance calculation between two Points in django

I have a model that uses PointField to store location: from django.contrib.gis.db import models from django.contrib.gis.geos import Point class Post(models.Model) location = models.PointField() and trying to do the following…
andrepz
  • 443
  • 6
  • 16
0
votes
1 answer

How to get around a GEOS error when doing st_union?

I have a big layer with lines, and a view that needs to calculate the length of these lines without counting their overlaps A working query that does half the job (but does not account for the overlap, so overestimates the number) select name,…
Luffydude
  • 702
  • 14
  • 27
0
votes
0 answers

Install geos on Visual Studio using VCPKG

I use Visual Studio 2017 Community. I have installed geos 3.9.1#1 via VCPKG and confirmed all is OK with 'vcpkg.exe list': However, in VS I can't #include in my project: the compiler reports it 'cannot open source file geos.h'. Which steps…
Chris S
  • 49
  • 4
0
votes
0 answers

geos: No such file or directory

I am trying to use the geos library on a Raspbery Pi 3, using Debian. I am trying to compile a program in C ++. The same program can be compiled on other computers, this means that the source code of my program is correct. When executing the command…
0
votes
1 answer

How to install PostGIS into Postgres-XL correctly?

I have Postgres-XL 10 installed with geos-3.9.1 and postgis-3.1.1 on my Amazon Linux 2 machine. My cluster is running and working flawlessly but I am having troubles with getting postgis installed into the database. I've built and installed…
fraoudas
  • 23
  • 5
0
votes
0 answers

My Windows machine is unable to install PROJ 4.9.0 through the OSGeo4W program. What should I do?

I have followed all of their steps for Windows on their website. However, I am still not able to install Cartopy through pip, as pip says both PROJ and geos have not been installed. What should I do?
Carl
  • 23
  • 5
0
votes
1 answer

GEOS version 3.6.1 required for selecting nearest features

I'm not being able to deal with this Travis error asking for GEOS version 3.6.1 while trying to run a unit test in a package that is using sf::st_nearest_feature. GEOS version 3.6.1 required for selecting nearest features Everything went well with…
Paulo E. Cardoso
  • 5,778
  • 32
  • 42
0
votes
1 answer

How do I produce a Negative Buffer of a polygon in GEOS?

I am trying to produce a negative buffer (offset) of a polygon using GEOS (with the c api). So far I have accomplished a positive offset (see image), however when I try to make the width '-'ve, it produces nothing. I suspect that 'offset' requires…
0
votes
0 answers

How can I get the exteriorRing of a polygon with C++ geos

After using CascadedPolygonUnion, I need to get the exterior of the resulted polygon. I made a geometry collection then combine two polygons using CascadedPolygonUnion function. Then try to get exterior coords of resulting geometry (polygon) using…
ahmet
  • 1
0
votes
0 answers

How can I perform unaryunion function in geos-C++

I am new to geos on C++. I am trying to perform UnaryUnion on two polygons. What I did is here: (but failed) geos::operation::geounion::UnaryUnionOp un_polys(std::unique_ptr poly1, …
ahmet
  • 1
0
votes
1 answer

PostGis Polygon into leaflet map using django

My issue is that I have no idea how can I visualize a polygon stored in PostGIS into a leaflet map using django. In the template I'm using this to plot the points :