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

Coordinates of the closest points of two geometries in Shapely

There is a polyline with a list of coordinates of the vertices = [(x1,y1), (x2,y2), (x3,y3),...] and a point(x,y). In Shapely, geometry1.distance(geometry2) returns the shortest distance between the two geometries. >>> from shapely.geometry import…
Asif Rehan
  • 983
  • 2
  • 8
  • 25
47
votes
3 answers

Unsupported compiler 'com.apple.compilers.llvmgcc42' xcode 5 DP

I have a project which contains Geos and Proj inside it. Before Xcode 5 I compiled them with LLVM GCC 4.2 compiler, but in Xcode 5 DP I get an error about unsupported compiler. Choosing another compiler get to compilation errors depends on syntax.…
Azat
  • 6,745
  • 5
  • 31
  • 48
27
votes
6 answers

OSError geos_c could not be found when Installing Shapely

I'm a newbie to making/plotting on maps with python, been trying to follow this blogpost to generate a world map ( http://sciblogs.co.nz/seeing-data/2011/08/12/plotting-geographic-data-on-a-world-map-with-python/ ). Got stuck with a few things…
msunbot
  • 1,871
  • 4
  • 16
  • 16
15
votes
2 answers

GeoDjango: How to create a circle based on point and radius

I have the following (simplified) Model: class Zone(gismodels.Model): name = gismodels.CharField() poly = gismodels.PolygonField() I want to create and save a polygon that represents a circle, based upon a given point and radius. The only…
MattRowbum
  • 2,162
  • 1
  • 15
  • 20
14
votes
2 answers

Check version/if installed PROJ4

I'm really new in working with Geospatial Libraries and I was able to install GDAL and PostGIS already. I just wanted to check if I was really able to include the packages GEOS and PROJ4 that is a requirement for PostGIS. What command lines should I…
Reiion
  • 923
  • 3
  • 15
  • 33
13
votes
3 answers

How to convert a GEOS MultiLineString to Polygon?

I am developing a GeoDjango application where users can upload map files and do some basic mapping operations like querying features inside polygons. I recognized that users happen to upload "MultiLineString"s instead of "Polygon"s sometimes. This…
onurmatik
  • 5,105
  • 7
  • 42
  • 67
12
votes
3 answers

Is there an envelope class in shapely?

I found the envelope class in Java's JTS library very handy. An envelope holds the minimal and maximal coordinates of a geometry and is also called bounding box sometimes. I wanted to get the common envelope of a number of shapely points. In JTS you…
linqu
  • 11,320
  • 8
  • 55
  • 67
11
votes
2 answers

Unable to install rgdal and rgeos R libraries on Red hat linux

I have error while compiling rgdal adn rgoes package on our redhat linux machine. I tried to do some research but couldn't find a possible solution. Could you please help me with this as this is very important for me to solve. **ERROR WHILE…
user2448881
  • 311
  • 1
  • 3
  • 7
10
votes
3 answers

How To Install GEOS for GeoDjango on Windows

I'm starting a GeoDjango project using Python 2.5, Django 1.2, MySQL and Apache. The project will be uploaded to a Linux server but the development will be on a Windows. The problem is I just can't get passed installing GEOS, how is it done?
Siavash
  • 358
  • 1
  • 5
  • 19
10
votes
2 answers

Getting "django.core.exceptions.ImproperlyConfigured: GEOS is required and has not been detected." although GEOS is installed

I'm running Django 1.8 and Python 3.4 on Ubuntu 14.04 LTS. Just recently, my Django app has been reporting that GEOS is not present. GEOS is installed and libgeos_c.so is where it's supposed to be (/usr/lib/). My code seems fine. It is the source of…
user3892196
  • 161
  • 1
  • 5
8
votes
3 answers

Cartopy not able to Identify GEOS for PROJ install on Windows

I am trying to install Cartopy on Windows. I have installed all the dependencies from their website, however when I go to run pip install Cartopy I get: Complete output (5 lines): setup.py:117: UserWarning: Unable to determine GEOS version.…
CeilingSystems
  • 167
  • 1
  • 9
7
votes
3 answers

Problems installing/importing Basemap

I have installed Anaconda (version 1.6.2) installed on my 64 bit machine. It comes with a great set of libraries, but I also need Basemap, part of matlibplot, but it is not included with the Anaconda install. I attempted to install Basemap and move…
jrb0042
  • 71
  • 1
  • 1
  • 2
6
votes
1 answer

How to construct/plot convex hulls of polygons from points by factor using sf?

I've got a dataset of species occurrences which I'm trying to convert into areas of occurrence by making convex hulls. I'm able to do this manually (ie. one species at a time) but I'd really love to be able to just have it handled automatically by…
Luther Blissett
  • 373
  • 1
  • 10
6
votes
1 answer

In PostGIS a polygon bigger than half the world is treated as it's opposite

I'm using GeoDjango with PostGIS and trying to use a polygon to get records from a database which fall inside it. If I define a polygon which is bigger than half the area of the earth it assumes the 'inside' of my polygon is the smaller area which I…
Jake
  • 12,713
  • 18
  • 66
  • 96
6
votes
3 answers

How to repair a polygon with self-intersection?

Is there a way to remove self-intersections from a polygon using GEOS?
Alexander
  • 245
  • 1
  • 2
  • 8
1
2 3
15 16