Re: [gdal-dev] Question: Layer intersection in Python

2024-06-21 Thread Michaelis, Luis via gdal-dev
the great work! - Luis From: Even Rouault Sent: 20 June 2024 19:43 To: Michaelis, Luis ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] Question: Layer intersection in Python Luis, the issue is that shapefile layers do not really support a genuine unknown layer geometry type. They accept it

Re: [gdal-dev] Question: Layer intersection in Python

2024-06-20 Thread Even Rouault via gdal-dev
Luis, the issue is that shapefile layers do not really support a genuine unknown layer geometry type. They accept it on layer creation, but as soon as you write the first feature into it, the feature layer geometry type is used as the layer geometry type, and shapefile don't accept a mix of p

[gdal-dev] Question: Layer intersection in Python

2024-06-20 Thread Michaelis, Luis via gdal-dev
Hello GDAL devs! I've got a question about layer intersection detection. I'd like to use the GDAL Python interface to do batched intersection checks between two vector layers, one containing only two-point line strings and one containing terrain contour lines. To compute these intersections, I w