Hi
I have a large oasis file and I need to extract polygons that touches a user specified rectangular area. Is there a tutorial on how to do this in python? I tried search the forum and didn't find a solution. Maybe this is too basic:-)
Thanks
enuinc
Comments
Hi,
there are many ways to achieve this. If your region is given in terms of coordinates, this is your code:
Another option is a clip, but I understand you want to see the polygons as a whole, not just the part inside the clip rectangle.
Matthias
Thanks. Can you also show me how to extract all the polygons (I suppose it has already been "flattened") in the "touching" cell
Thanks
enuinc
What do you mean by "all the polygons"? Extracting a layer as a whole? With hierarchy or flat?
Matthias