Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

Is there a way to clip/export selected vector layers (more than one) in a map to the extent of another raster/vector layer at a time?? in Arcgis or any other software.

I am using Arcgis10. I am having many vector layers as shown in figure. I want to clip for example "Australia" region of all vector layers. I can do it each and every layer separately. But I want to clip all layers/few layers in the map to Australia region at a time as a bundle. So-that I can avoid re-work of clipping each layer and save time.

enter image description here

share|improve this question
Could you perhaps re-phrase this question with more detail, please? – PolyGeo Sep 27 '12 at 10:41
Possible duplicate question?… – Rayner Sep 27 '12 at 12:46
Nice catch, @Rayner. However, these two questions differ. There, the objective is to use multiple shapes from one layer to clip a second layer. Here, the objective is to use one shape to clip many other layers. (+1 for the edited version of the question: thanks, Prasad.) – whuber Sep 27 '12 at 15:54
up vote 5 down vote accepted

I think Batch Processing is the simplest way to go.

  1. Locate the Clip tool in the ArcToolbox window (Analysis Tools toolbox, Extract toolset) where you can right-click on it and choose Batch. (Note: You could do this from the Search window at 10.1 but not 10.0.)
  2. Multiple select your layers and drag them in as Input Features
  3. Select the polygon layer you want to clip with and drag that into the top cell of the Clip Features, then right flick and choose Fill to copy to the rest of that column
  4. Hit the Environments button and set Current Workspace to the geodatabase or folder you want to output your feature classes into - this should populate the Output Feature Class with names based on each input feature class
  5. Hit OK to run
share|improve this answer
   import arcpy
        import string
        output=arcpy.GetParameterAsText(0)   #output gdb file path


        mxd = arcpy.mapping.MapDocument("CURRENT")
        df = arcpy.mapping.ListDataFrames(mxd, "layers")[0]
        for lyr in arcpy.mapping.ListLayers(mxd, "", df):
            if lyr.visible == True:
                print lyr;
                desc = arcpy.Describe(lyr)

                path = desc.path
                if (layersource2[:-4]=='.shp'):

        #del mxd

This script can export current features in arcmap to a gdb file path you can use this to clip features at the same time.

share|improve this answer

If all your data is stored in one geodatabase it is possible to use the tool Copying a geodatabase using Extract Data Wizard in ArcMap here you can select which data layers you want to export.

share|improve this answer

Your Answer


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.