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

How to Preserve a Complex Line During Shapely Intersection

I'm trying to intersect a complex line with a polygon using the Shapely library in Python. Unfortunately Shapely breaks my original line so that it returns a simple line instead. For example: # complex line folded back on itself (A-B-A) ls =…
Aidan Kane
  • 3,856
  • 2
  • 25
  • 28
0
votes
0 answers

Comparing the coordinates with GEOS C++ fails

I m trying to compare every point of MultiPoint geometry with start point and end point of LineString , there is my code below: First method: geos::geom::LineString* ptLine = dynamic_cast( ptCurrentGeomIntersection ); for( int…
0
votes
1 answer

building GEOS from source and pointing to the right Python version

I'm trying to install GEOS from source and configure it with the right Python bindings (as shown here http://scigeo.org/articles/howto-install-latest-geospatial-software-on-linux.html#geos). The Linux distro where I'm installing it comes with Python…
zom-pro
  • 1,571
  • 2
  • 16
  • 32
0
votes
1 answer

how install shapely on windows so it can be imported from matlab?

i'm on windows 7/64. shapely doesn't offer windows installers on their pypi page, even though they seem to have recently. their pypi page, and their README say to use chris gohlke's unofficial binaries. i'm not clear on the reason -- something…
user1441998
  • 459
  • 4
  • 14
0
votes
0 answers

Rgeos breaks on centOS with error in GeometryComponentFilter.cpp:34

I'm working on a remote machine. Output from uname -a is: Linux some-server.some-place.com 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux I'm having trouble with the R package rgeos. Here's a…
Adrian
  • 3,138
  • 2
  • 28
  • 39
0
votes
1 answer

Issue installing Geos and Gdal on an Amazon Ec2 instance

I am running an Amazon Ec2 instance with Cent Os Image. I need to install Geos and Gdal to run python scripts. I first try this guide: https://github.com/phayes/geoPHP/wiki/Geos-installation-on-centos6 And then bind the Gdal installation to it like…
Inclanfunk
  • 147
  • 1
  • 6
0
votes
0 answers

issue installing postgis on mac osx

I am installing postgis on mac osx and getting this error configure: error: could not find proj_api.h - you may need to specify the directory of a PROJ.4 installation using --with-projdir I have installed geos following this command. wget…
techdreams
  • 5,371
  • 7
  • 42
  • 63
0
votes
1 answer

MapIt - Loading data getting GEOSException

Having this issue when loading mapit with UK data (based on this guide: http://mapit.poplus.org/docs/self-hosted/import/uk/ ) I was running this command: ./manage.py mapit_UK_find_parents Parent for Colton [10193] (CPC) was None, is now South…
user1741694
  • 237
  • 4
  • 13
0
votes
1 answer

libgeos BufferOp gives TopologyException "depth mismatch"

I create a LineString containing a CoordinateSequence of length 167 and then do a buffer operation using the following code: geos::operation::buffer::BufferParameters buffer_params; geos::operation::buffer::BufferOp buffer_op(input,…
Alex Flint
  • 6,040
  • 8
  • 41
  • 80
0
votes
0 answers

error: C compiler cannot create executables (GEOS, basemap)

I am currently getting the following error when attempting to get basemap-1.0.7 to work on my MAC OS v10.7.3: error: C compiler cannot create executables I downloaded basemap-1.0.7.tar.gz from here, and upon installation, I followed the numbered…
Ben
  • 139
  • 5
0
votes
1 answer

Installing geoPHP with Geos on Drupal 7

I installed geophp Module in my drupal 7 installation. Also installed Geos in my server following these steps http://duntuk.com/how-install-geos-centos I enabled geophp module in drupal, everything goes right, but when I go to the status report, It…
glizarraga
  • 26
  • 1
  • 2
0
votes
1 answer

Getting distance in django with out a geoDjango backend (PostGIS, etc...)

I don't want to go through the pain of installing PostGIS so can I get places ordered by distance from an origin using django.contrib.gis? models.py from django.contrib.gis.geos import Point class Place(models.Model): name =…
Robert Johnstone
  • 5,431
  • 12
  • 58
  • 88
0
votes
1 answer

Extending a GEOS class

I would like to extend the MinimumDiameter class in order to add some more methods. I've tried with the classical C++ syntax: class ExtendedMinimumDiameter : public MinimumDiameter{}; ExtendedMinimumDiameter *minimumDiameter = new…
caneta
  • 1,612
  • 2
  • 20
  • 34
0
votes
1 answer

dump a LineString geom to a Point geom in Django (Like ST_DumpPoints())

Summary Question: How can I dump a LineString geom to a Point geom in Django? Or is raw SQL the only way? Want more details ... here ya go: Say I have the following models, the exact format isn't important. line_paths: 1 row = 1 linestring…
user1676521
0
votes
0 answers

GEOS for django on Ubuntu 11.10

Been trying to run a Django MySQL Nginx Stack to run for GIS Support but unable to succesfully compile GEOS dependancy. I get a make error 1 It would be great if I could get some concrete steps on the same.
Jerry
  • 23
  • 4
1 2 3
15
16