POST
|
Thanks for the Mapping Centre link on bump maps... Interesting and this need some experiments, time permitting. The effect I am looking for is a sort of subtle shading such as the NG map sample attached. Perhaps tweaking the luminosity of the hillshading layer produced in the Referenced Modaic Dataset could help to produce a similar style...
... View more
02-12-2016
08:03 AM
|
0
|
1
|
771
|
POST
|
Thanks. Yes it is too much. I am looking for subtle shading such as the IGN map attached... A hillshading just to accentuate the relief and overlay other layers... If this makes sense. Currently, I experimented the Hillshading function in a Referenced Raster Mosaic with a z-factor = 0.00001 Perhaps, this is the wrong function to use?
... View more
02-09-2016
06:29 AM
|
0
|
0
|
771
|
POST
|
Hi, I just discovered the referenced Raster Mosaic using function such as hillshading. It looks great! However, how could I adjust the display (file attached) in order to show only shades (black) and not the greyish parts? I would like to use a sort of white or brown background and accentuate the relief with shades...
... View more
02-09-2016
04:10 AM
|
0
|
6
|
4354
|
POST
|
Thank you for asking about the time.strptime function in my script... And I appreciated the blog post. Unfortunately, I cannot find out which file (or anything else) is missing on the other machines on which I wish to run the script. The PythonWin gives me the following paths, but it doesn't tell me from which file the time.strptime is coming from! For the time being, I intend to "suspend" any call to time.strptime even if it makes the script less efficient. PythonWin 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information.
>>> import sys
>>> sys.path
['', 'C:\\WINDOWS\\system32\\python27.zip', 'C:\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Python27\\ArcGIS10.2\\lib', 'C:\\Python27\\ArcGIS10.2\\lib\\plat-win',
'C:\\Python27\\ArcGIS10.2\\lib\\lib-tk',
'C:\\Python27\\ArcGIS10.2\\Lib\\site-packages\\pythonwin',
'C:\\Python27\\ArcGIS10.2',
'C:\\Python27\\ArcGIS10.2\\lib\\site-packages',
'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin',
'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy',
'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts',
'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32',
'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32\\lib']
>>> I need to build up more knowledge about Python and arcpy to solve this sort of problems...
... View more
01-20-2016
08:06 AM
|
0
|
1
|
977
|
POST
|
The Python looks installed correctly on the other machine with a C:\Python27\ArcGIS10.2\ folder containing the libraries and all the stuff... It looks like. This is why I was suspecting the file to which the time module references might be not in the right place! Or there is a variable to set in order to indicate explicitly where to ook for Python libraries, modules... In addition to find out the file the time module references to, where is it possible to check/set the path and other variable for Python? Thanks
... View more
01-14-2016
07:10 AM
|
0
|
1
|
977
|
POST
|
It is already a line at the beginning of the script: # Import system modules
import sys, string, os, arcpy, time But the time module probably references to a file which is not on the other machine, I imagine. It works on mine...
... View more
01-14-2016
06:45 AM
|
0
|
3
|
977
|
POST
|
Hi, I have a python script tool importing several modules such as: import sys, string, os, arcpy, time In particular, I am interested in the time module because I call the time.strftime function in the script... The tool works fine on my machine but fails to execute on another machine, crashing when the function time.strftime is called! Therefore, I would like to find out which file on my machine the import time module references to. Then, I could copy this file on the other machine to make my tool works! Thanks
... View more
01-14-2016
06:23 AM
|
0
|
9
|
4076
|
POST
|
Hi, The Raster Catalog is in a File GDB v10.2. With a Mosaic Dataset, it takes just a few minutes to run the script versus a few hours with the Raster Catalog. However, I would prefer to use Raster Catalog because it can manage the rasters within the File GDB and compress the rasters smartly. The Mosaic Dataset just point to the rasters on disk... The error I receive is: <function GetMessages at 0x1ACABF70>
Completed script RasterValuesToPointsCATALOG...
Succeeded at Tue Dec 22 11:44:46 2015 (Elapsed Time: 1.48 seconds) when the script tries: arcpy.gp.ExtractValuesToPoints(fc, raster, fc_tmp) This is the reason why I suspect the rasters object genereted with the Walk functions not containing the proper raster...
... View more
12-22-2015
05:07 AM
|
0
|
1
|
1600
|
POST
|
Hi, The ListDatasets function works very well to run through a RasterCatalog. It took 3h58min to extract elevation from 1320 tiled DEMs... Now, I would like to test the Walk function in order to see if the processing would be faster because the Data Access module is supposed to access data much faster according to ESRI documentation. However, _, _, rasters = next(arcpy.da.Walk(rasCatalog)) for raster in rasters:
arcpy.gp.ExtractValuesToPoints(fc, raster, fc_tmp) did not work with workspace set a the Raster Catalog path... And I have to admit that I am not familiar with the Data Access module syntax!
... View more
12-21-2015
05:45 AM
|
0
|
3
|
1600
|
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
|
1600
|
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
|
6081
|
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
|
546
|
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
|
3245
|
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
|
2181
|
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
|
3019
|
Title | Kudos | Posted |
---|---|---|
1 | 12-15-2022 03:32 AM | |
1 | 05-24-2018 02:11 AM | |
1 | 12-12-2023 08:54 AM | |
1 | 11-22-2023 08:59 AM | |
1 | 10-03-2023 06:03 AM |
Online Status |
Offline
|
Date Last Visited |
06-11-2024
02:03 PM
|