POST
|
1. Yes, the white patches are in the exact same location 2. Yes, when previewing the overview from one of the offending areas, the preview also exhibit the white patches, as shown attached... Any guess?
... View more
02-12-2016
08:53 AM
|
0
|
2
|
1264
|
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
|
594
|
POST
|
Hi, In my mosaic dataset, I deleted all the Overviews in case they were corrupted and not correct. Then, I nuilt all the Pyramids and Statistics in the source rasters before rebuilding all the Overviews again... The rasters are in NAD83 projected in UTM39N and the project has the same Projected Coordinate System for info... And I still have the same problem. Need to learn more about rasters and mosaicking until I find a workaround.
... View more
02-12-2016
07:54 AM
|
0
|
4
|
1264
|
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
|
594
|
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
|
4177
|
POST
|
Hi, I recently created a Mosaic Dataset in a FGDB and loaded USGS High Resolution Orthoimageries into it. It is fine and fast but on certain areas the overviews seem not to work properly, as shown in the file attached. However, if I zoom in, the Orthoimagery do appear at certain scale... Is there anything wrong in my workflow?
... View more
02-09-2016
04:05 AM
|
0
|
8
|
3228
|
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
|
736
|
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
|
736
|
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
|
736
|
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
|
3835
|
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
|
1284
|
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
|
1284
|
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
|
1284
|
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
|
5765
|
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
|
421
|
Title | Kudos | Posted |
---|---|---|
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 | |
1 | 04-13-2022 12:55 AM |
Online Status |
Offline
|
Date Last Visited |
01-30-2024
04:03 PM
|