Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have database which contains point shapefiles and raster files for 3 species. My aim is to develop a script tool that should have a search tab to enter the species name. also, a check box to select what layers to display. how to develop this.

give me hint to develop python script for querying and display a layer. also, i should add the script tool as a button in the toolbar.

share|improve this question
This Question looks like it has three "questions": 1) "script tool that should have a search tab to enter the species name"; 2) "check box to select what layers to display"; and 3) "add the script tool as a button in the toolbar". I recommend that you edit your question to focus it on the most important of these to you, and then to research/ask the others separately. –  PolyGeo Dec 30 '13 at 0:46
add comment

closed as too broad by PolyGeo, Devdatta Tengshe, whuber Dec 30 '13 at 5:13

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

Using a script tool, you could allow the user to define the search layer, and what additional layers to add to your map. The script flow would look something like this:

  1. user defines layer to search against within the script tool interface
  2. user defines layer(s) to add into map document using the AddLayer (arcpy.mapping) method
  3. next a search cursor is used to search for the entered species name (entered with a text box within the script tool)

I'm not sure what the result of your query should do (e.g. zoom to feature, only show queried features?)?

share|improve this answer
Thank u.. Result of a query is only to display the queried features. –  Aishwarya R Apr 17 '13 at 4:12
and, how can i add check boxes.. like the aim is too display the accession locations of the species(point shapefile), and two raster layers exhibiting their potential distribution. the user needs to specify as which layer the wants too add in the TOC. –  Aishwarya R Apr 17 '13 at 4:15
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.