1

Is there any easy way how to write a python script, which would create a new layer based on location from a border line and "if" condition?

I have two layers A and B, both are made of several polygons. I need to select those polygons from both layers based on location, e.g. 1000 meters, they must touch each other or the border line, and based on comparing their attribute values of one selected column. Then i need to create a new selection or layer, if the difference between the values is big enough.

I mean something like "if column.A - column.B > x ^ polygon.A and polygon.B touch each other or the line/or the distance is 1000meters from the line, then create a new layer of those two polygons"

closed as off-topic by PolyGeo Mar 21 '16 at 19:28

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Welcome. Please edit your question to include some code snippets of what you have already tried or what specifically you are having trouble with. – MaryBeth Mar 21 '16 at 15:41

Browse other questions tagged or ask your own question.