Re: [gdal-dev] Layer intersection: two polygons with a common point

2016-04-30 Thread Ari Jolma
28.04.2016, 10:56, Even Rouault kirjoitti: Oh I see we are both involved in this ;-) The advantage of the current behaviour is that it is compatible with most popular output formats that don't like mixing geometry types in the same layer (think of shapefiles, and generally postgis, spatialite whe

Re: [gdal-dev] Layer intersection: two polygons with a common point

2016-04-28 Thread Jukka Rahkonen
Ari Jolma gmail.com> writes: > > > 28.04.2016, 14:17, Even Rouault kirjoitti: > > > > > > > > I'm still thinking that some option to ensure we don't try to feed the output > > layer with an incompatible geometry would be useful. > > I'm of that opinion too. It may be too late to make "real in

Re: [gdal-dev] Layer intersection: two polygons with a common point

2016-04-28 Thread Ari Jolma
28.04.2016, 14:17, Even Rouault kirjoitti: I'm still thinking that some option to ensure we don't try to feed the output layer with an incompatible geometry would be useful. I'm of that opinion too. It may be too late to make "real intersection" the default and with some option like "fil

Re: [gdal-dev] Layer intersection: two polygons with a common point

2016-04-28 Thread Even Rouault
Le jeudi 28 avril 2016 12:03:55, Jukka Rahkonen a écrit : > Even Rouault spatialys.com> writes: > > Le jeudi 28 avril 2016 08:50:46, Ari Jolma a écrit : > > > Jukka pointed out this > > > > > > http://gis.stackexchange.com/questions/191336/gdal-ogr-ogr-layer-inters > > > ecti on-producing-points-

Re: [gdal-dev] Layer intersection: two polygons with a common point

2016-04-28 Thread Jukka Rahkonen
Even Rouault spatialys.com> writes: > > Le jeudi 28 avril 2016 08:50:46, Ari Jolma a écrit : > > Jukka pointed out this > > > > http://gis.stackexchange.com/questions/191336/gdal-ogr-ogr-layer-intersecti > > on-producing-points-from-linestrings > > > > to me. > > > > It is true that intersect

Re: [gdal-dev] Layer intersection: two polygons with a common point

2016-04-28 Thread Even Rouault
Le jeudi 28 avril 2016 08:50:46, Ari Jolma a écrit : > Jukka pointed out this > > http://gis.stackexchange.com/questions/191336/gdal-ogr-ogr-layer-intersecti > on-producing-points-from-linestrings > > to me. > > It is true that intersecting two layers, where one contains > > 'POLYGON (( 140 360

[gdal-dev] Layer intersection: two polygons with a common point

2016-04-27 Thread Ari Jolma
Jukka pointed out this http://gis.stackexchange.com/questions/191336/gdal-ogr-ogr-layer-intersection-producing-points-from-linestrings to me. It is true that intersecting two layers, where one contains 'POLYGON (( 140 360, 140 480, 220 480, 220 360, 140 360 ))' and the other 'POLYGON (( 220