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.

194 questions
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,477
  • 5
  • 24
  • 47
34
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
  • 775
  • 1
  • 7
  • 22
23
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,391
  • 2
  • 12
  • 16
13
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
  • 1,352
  • 10
  • 17
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
  • 291
  • 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
  • 348
  • 1
  • 4
  • 18
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
9
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
  • 4,365
  • 6
  • 38
  • 64
9
votes
2 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
  • 8,620
  • 6
  • 44
  • 57
8
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
  • 81
  • 1
  • 1
  • 2
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
  • 11,124
  • 13
  • 57
  • 91
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
  • 235
  • 2
  • 8
6
votes
1 answer

centos libgeos repository missing

On centos 7.3 minimal trying to install shapely or geopandas requires access to https://github.com/libgeos/libgeos libgeos. Trying to install this via sudo yum install libgeos-dev tells me that this package is not available. It seems that I am…
Georg Heiler
  • 13,862
  • 21
  • 115
  • 217
5
votes
1 answer

3D geometric topology (e.g. intersection) in Python

I am using GEOS (in Python/Django) to manipulate some 3d elements. All topological operations work perfectly in 2D. So, I created a simple MultiPolygon with 3D polygons (very simple in fact, it is just a collection of vertical planes), and a…
sebpiq
  • 6,764
  • 8
  • 44
  • 65
5
votes
1 answer

Installing a fully functional PostGIS 2.0 on Ubuntu Linux GEOS/GDAL issues

I have been working on getting postgis 2.0 up and running on an ubuntu-maverick-amd64 linux server for about a week now. I am going for raster and topology support. I used the following to configure: sudo ./configure --with-raster --with-topology…
THX1138
  • 713
  • 7
  • 27
1
2 3
12 13