|
POST
|
I have script that does everything I want, except that I create two pivot tables... I want these two dbf tables to automatically be added to ArcMap after the script runs. Is it arcpy.MakeTableView_management? For feature classes I used MakeFeatureLayer and the ApplySymbology... but can't seem to find anything for DBF tables If you set up the output table names as parameters of type Output, they will appear in the ArcMap TOC when the tool completes. If you want full control over the names and locations of these tables, you can set the parameter type to Derived, which means they don't appear in the tool dialog -- but you have to set the paths into the parameters with SetParameterAsText(). Here's the relevant help article: Setting script tool parameters
... View more
06-14-2012
06:43 PM
|
0
|
0
|
1191
|
|
POST
|
just wondering if I am missing anything behind the scenes? One thing to consider: raster image files often have ancillary files associated with them (auxiliary files, metadata files, pyramids) that would be left behind by an OS copy. The Copy Raster tool would always take those ancillary files along. You may be able to work around this by doing a wildcard copy, since these ancillary files are named the same as the raster. In the case of .tif files, the TIFF image format includes internal georeferencing and sometimes even coordinate system, so you may not have an issue. If you lose the coordinate system in the system copy, you could reinstate it on the output using the Define Projection tool. So I guess my advice is - check your output to make sure all the ancillary information you need about the raster traveled with the OS copy. To avoid someone getting into trouble I should mention that copying a an Esri grid format raster with shutil would be a bad idea because grids include the information in the grid folder plus *some* of the files in the associated "info" folder. Copy Raster should be used with grids so you get the INFO tables along for the ride.
... View more
06-14-2012
06:30 PM
|
0
|
0
|
2229
|
|
POST
|
Is it possible to extract by mask or clip a .lyr file without the original raster file. No. Layer files simply point to a dataset in their source property. A layer file without a link to a dataset will not display, much less provide the data to a tool.
... View more
06-13-2012
03:46 PM
|
0
|
0
|
670
|
|
POST
|
As far as I can see, no special characters, no numbers first, no spaces etc. One more potential problem that I should add to the list are any SQL keywords for field names: "IN","OVER","COUNT" etc.
... View more
06-12-2012
10:12 AM
|
0
|
0
|
2854
|
|
POST
|
I am trying to use Raster Calculator Map Algebra to convert the values of 0 from blue area to NoData in the overlapping area behind there... This expression below converts those pixels to 0.. Con("polrecl", 0, "maskdpoly") I think what you're missing are the IsNull and SetNull tools, which are very useful for this kind of thing. These two (equivalent) Raster Calculator expressions should do what you want, if I'm understanding you correctly: SetNull(not IsNull("polrecl"),"maskdpoly") Con(IsNull("polrecl"),"maskdpoly") The Extract By Mask tool may do what you want without any map algebra, or you could even just set the geoprocessing environment mask to control which cells are used by the Zonal Statistics As Table tool. There are a zillion ways to do things in Spatial Analyst, as you can see!
... View more
06-08-2012
02:41 PM
|
0
|
0
|
1023
|
|
POST
|
You're dealing with two datum differences - horizontal datum and vertical. Make sure you use the appropriate transformation of your test points to project your horizontal locations properly to the WGS84 datum. You didn't say what your horizontal datum was on your maps; NAD27 is based on Clarke_1866 spheroid so maybe that will do. If so, I believe the appropriate transformation would be "NAD_1927_To_WGS_1984_2" (ArcGIS install folder/Desktop10.0/Documentation/geographic_tranformations.pdf, p. 22). Vertical transformations are another deal - you'll need to find out what local sea level is in EGM96 and offset your sea-level datum Z values accordingly.
... View more
06-08-2012
02:14 PM
|
0
|
0
|
1730
|