Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to select many objects on the screen and select other objects that share the same attributes with the chosen group.

So I'm creating a tool to select many object based in five tables' columns attributes. The tools works fine but when I select 3 or more objects the query became much bigger and I lost part of them.

Is there a way to do a query using to variables? Something like: "Run command varA + varB" Or is there a way to increase the string's size?

share|improve this question
Can you share the string that you create? There is a limit to how long a SQL string can be - I think it's around 512 characters. Maybe your string can can structured in a different way to reach the same result – Peter Horsbøll Møller Oct 22 '13 at 8:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.