POST
|
Thanks Your syntax does work for listing the rasters in the Raster Catalog, but now I cannot go further: for raster in rasters: arcpy.gp.ExtractValuesToPoints(fc, raster, fc_tmp) ...because I would imagine that rasters contains only string and not Raster object. Any guess?
... View more
12-15-2015
10:23 AM
|
0
|
1
|
69
|
POST
|
Hi, In a script, the rasters = arcpy.ListRasters() returns nothing for a Raster Catalog held in a File GDB? The workspace references to the Raster Catalog itself and I would expect to list the rasters in that Raster Catalog... But the list is empty! rasters = arcpy.ListRasters("*", "All") arcpy.AddMessage("Rasters: " + str(rasters)) i = 0 for raster in rasters: i = i + 1 arcpy.AddMessage("Count Rasters: " + str(i) + "\n") returns Rasters: [] Count Rasters: 0 Is there anything wrong I am doing? Thank you
... View more
12-15-2015
08:22 AM
|
0
|
8
|
4550
|
POST
|
Thanks. It works very well. As long as variable id is a number (integer or float) and not a string. Also, I used the former 9.3 syntax because this script was initially made at that time and I haven't upgraded the code to arcpy...
... View more
11-27-2015
12:31 AM
|
1
|
0
|
5
|
POST
|
Hi, It looks perhaps simple, but I am looking for the proper syntax in Python in order to print integer field correctly when running a script. For the time being, I get: ID:1.0000080689e+11 with: gp.AddMessage("ID:" + str(input_text)) And I would prefer the proper integer value... What would be the syntax to format it correctly? Thanks
... View more
11-25-2015
11:51 PM
|
0
|
2
|
2704
|
POST
|
Hi, I tend to work with Mosaic Dataset to store and manage STRM DEM tiles. However, I noticed that when the Mosaic Dataset raster information are not present (see attached), certain geoprocessing fails! For no reason, I sometimes get the raster information (see attached), and all problems are solved. I would be grateful if somebody could let me know how to calculate/update these raster information. Regards
... View more
06-26-2015
06:37 AM
|
0
|
0
|
1937
|
POST
|
Unfortunately, the Profile Graph button works only if the shapefile is z enabled with values... It doesn't stack the z values from an underlying raster as the Stack Profile tool...unless I miss something. Thanks
... View more
06-22-2015
05:26 AM
|
0
|
0
|
171
|
POST
|
Thank you It works great (see attached). I just had to make sure my project was projected in order to get meters/kilometres for the x axis... However, Properties and Advanced Properties are very limited as usual with ArcGIS with charts formatting, and even bug! (shown attached). At least, with the attribute table, I can rework the charts in Excel but it is all manual and cannot automatized the workflow easily in ArcGIS!
... View more
06-22-2015
05:24 AM
|
0
|
0
|
171
|
POST
|
Hi, I have a line shapefile and I would like to extract elevation value from a raster DEM in order to create an elevation profile. As shown attached... Is there a smart was of doing this in ArcGIS? Thanks
... View more
06-16-2015
07:16 AM
|
1
|
5
|
12152
|
POST
|
Thanks For no reason, my North American image was tricky to georeference and the Data.gov portal has plenty of imagery (ans WMS) for download. Though, I haven't find a nice North American grey relief-shaded yet... Just for conterminous United States so far. Need to look more into the images available.
... View more
05-06-2015
08:15 AM
|
0
|
0
|
19
|
POST
|
Hi, I got a shaded-relief image for North America from the USGS but it is not georeferenced. Attached are the characteristics of the image in ArcCatalog, and the extent was filled-in by the .tfw file I made, as attached. Looking at the image, I guessed the upper-left corner was long -130 and lat +60. Still according to the image, I found the upper-right corner long -50 and lat +60 while bottom-left long -130 and lat +15 With 9600 columns, the cell size would be: (130-50) / 9600 = 0.008333333°, which is 30''. Looks good And with 7240 rows, the cell size would be: (60-15) / 7240 = 0.006215469°, whi ch is roughly 22''. Not as good. Even with a .tfw with these values do not update the Cell Size in the image in ArcCatalog. Why? Usually, it does... Also, would it be possible to have rectangular pixel? I guess why not... Does the number of bands, which are 3, change anything in georeferencing the image? How could I convert the image from 3 bands to 1 bamd only? Thanks for your help
... View more
05-04-2015
09:32 AM
|
0
|
3
|
3028
|
Online Status |
Offline
|
Date Last Visited |
Wednesday
|