Tell me more ×
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.

Pls help

share|improve this 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 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 at 4:15

Your Answer

 
discard

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

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