Tag Info

Hot answers tagged

2

Your model fails because your input shape files have names that contain spaces. As feature class names cannot contain spaces, you need to use add the Calculate Value tool to your model to remove spaces from your inline variable "Name" and replace them with underscores. In the model below, the Name variable is precondition to the Calculate Value tool. ...


1

This should work: import arcpy, os, sys InFolder = sys.argv[1] OutFolder = sys.argv[2] arcpy.env.workspace = InFolder for ThisRas in arcpy.ListRasters(): arcpy.MakeRasterLayer_management (ThisRas,"Layer"); arcpy.SaveToLayerFile_management("Layer",OutFolder + "\\" + ThisRas + ".lyr",True,"CURRENT"); arcpy.Delete_management("Layer") It ...


1

You are not supposed to export any of those feature classes or uncompress the geodatabase. From the StreetMap Premium for ArcGIS Technical Restrictions: The detailed street layers (Geocode, Streets, and Routing_Streets) are protected; therefore, you cannot export these layers to a shapefile or other feature class. You also cannot use any ArcGIS ...


1

Since your error is Invalid destination path, the script doesn't like the output file name (presumably the two slashes at the end). There are a few different ways to put that output name together. I'd personally do something like: import arcpy import os mxd = ...


1

Start a new, blank map or in your current map go to step 2. Double-click or right-click > properties on the dataframe (named Layers by default) in the Table of Contents (ToC). Go to the Coordinate System Tab, drill down through folder tree to Projected Coordinate Systems > UTM > Europe > European Datum 1950 UTM Zone 31N and highlight it, then click Ok. ...


1

IContentsViewSelection should work for you. http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//000v00000064000000 This is VB, but you should get the idea... Dim pCVSel As IContentsViewSelection = My.ArcMap.Document.CurrentContentsView Then: pCVSel.SelectedItems.Count will give you the count of selected items in the TOC.


1

Inside an MPK you'll find an MXD and a fGDB. (You may find shapefiles, tiffs or other files depending on how the MPK was created, but odds are you'll find data in the fGDB). With this knowledge, if you have an application other than ArcGIS that can read MXDs and fGDB, you can simply unzip an MPK (using something like 7zip) to get at the contents. As for a ...


1

Personally I've never found looking at the flow accumulation raster directly to be all that interesting. The purpose of messing with the cartography is to simply show you where the greatest flow accumulation is (the below example classifies it into two groups, one of which is transparent, the other is blue) from this you check if the major parts of your ...



Only top voted, non community-wiki answers of a minimum length are eligible