[postgis-users] simple polygon clip

2014-11-10 Thread Christopher Braune
Dear all, I want to clip polygons like this: I tried the following SQL-sentences: CREATE TABLE aoi_blocks AS SELECT *, ST_Difference(aoi.geom, lines.buffer_geom) FROM aoi, lines; I get polygons, but not only the difference polygons! Thanks for all replies! Christopher ___

Re: [postgis-users] simple polygon clip

2014-11-10 Thread Komяpa
You've got several lines as several rows, you should combine them before cutting the polygon: CREATE TABLE aoi_blocks AS SELECT *, ST_Difference(aoi.geom, ST_Union(lines.buffer_geom)) FROM aoi, lines; 2014-11-10 14:41 GMT+03:00 Christopher Braune : > Dear all, > > I want to clip polygon

Re: [postgis-users] simple polygon clip

2014-11-10 Thread Hugues François
Hi, I think you might add a where st_intersects(aoi.geom, line_buffer.geom). If not, your query returns differences between each polygon and each line even if they do not intersect. In this case the difference between the polygon and nothing is the original polygon. You might also take care wh

Re: [postgis-users] Topology: cannot delete slivers (or gaps)

2014-11-10 Thread Humberto Cereser Ibanez
I was with the same problem, getting gaps in some adjacent polygons while trying to simplify polygons with Postgis. Thank Guillaume / Rémi / Sandro by the contributions. Illuminated by this thread, I created a script in which I avoided gaps from the bad polygons. Really the most appropriate tool, G

[postgis-users] Trouble installing PostGIS using MacOSx

2014-11-10 Thread Jerry Locke
Background - OS version: Mac OS X 10.9.5 Postgres: 9.2.5_1 via Homebrew PostGis: 2.1.4_1 via Homebrew - Competed installation and am stuck with the following error when running extension creation - -- Enable PostGIS (includes raster)

Re: [postgis-users] Trouble installing PostGIS using MacOSx

2014-11-10 Thread Ben Madin
I don't know much about Homebrew, but does it work using either of: a) William Kyngesbury's installers? (v.v. easy) b) install from source? (also very easy in this release on Yosemite, but shouldn't be so different on Mavericks?) cheers Ben On 11 November 2014 05:09, Jerry Locke wrote: >