|
POST
|
Hi Kyle, I believe you may have found a bug. I was able to reproduce this issue with your data, and another raster I had that contains a colormap. I would recommend following up with Tech Support so they can properly log this issue. You can use a workaround. Instead of importing the raster by right-clicking on the geodatabase > Import > Raster Dataset, use the Copy Raster tool. With this tool there is the option 'Colormap to RGB'. This will retain the same colors, but your image will now be a 3-band raster dataset. I tested this and was able to view the ArcSDE 10.1 raster dataset successfully in ArcGIS Desktop 10.0.
... View more
11-20-2012
11:42 AM
|
0
|
0
|
8178
|
|
POST
|
Export the TIFF to a new TIFF with JPEG compression by right-clicking on the TIFF in ArcMap > Data > Export Data. If the zipped file is still larger than 1 MB, you can zoom into a smaller extent and when you are exporting the raster, using the steps above, choose the option 'Data Frame (Current)' for the Extent.
... View more
11-20-2012
09:55 AM
|
0
|
0
|
2824
|
|
POST
|
The tool should create the coordinates in decimal degrees. I tested against a feature class added to ArcMap (both the feature class and data frame were set to State Plane Feet). I zoomed to the extent I wanted, added a point to the lower left corner, then to the upper right (which will give me the extent). After pasting the results from the clipboard to notepad, the coordinates were in decimal degrees.
... View more
11-20-2012
06:59 AM
|
0
|
0
|
2305
|
|
POST
|
Can you create a layer package of one of your TIFFs and upload it? You can upload .lpk files up to 10 MBs. To create the layer package, right-click on the TIFF in ArcMap > Create Layer Package.
... View more
11-20-2012
06:52 AM
|
0
|
0
|
2824
|
|
POST
|
Hi Bryan, You can try using the following GP tool which will copy the coordinates in decimal degress to your clipboard: http://epro.maps.arcgis.com/home/item.html?id=e68ca4b6880f477ca73b3557546dc49b
... View more
11-20-2012
04:35 AM
|
0
|
0
|
2305
|
|
POST
|
Try exporting one of the .TIF images to another format (i.e. .IMG), then import the raster into SDE. Do you still receive the same error when trying to view the raster dataset?
... View more
11-20-2012
03:37 AM
|
0
|
0
|
5356
|
|
POST
|
How large are the .tif images? How did you import the raster datasets into SDE?
... View more
11-19-2012
08:58 AM
|
0
|
0
|
5356
|
|
POST
|
Your subsequent 'elif' statements after the first one are indented. Be sure these are aligned with your other if/elif statements.
... View more
11-19-2012
06:44 AM
|
0
|
0
|
1378
|
|
POST
|
Here is an example: import arcpy
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"
lstFDs = arcpy.ListDatasets("*")
for dataset in lstFDs:
lstFCs = arcpy.ListFeatureClasses("*", "POLYLINE", dataset)
for fc in lstFCs:
if fc == 'Pink':
rows = arcpy.UpdateCursor(fc, "", "", "SPECCODE")
for row in rows:
row.SPECCODE = 'PK'
rows.updateRow(row)
elif fc == 'Coho':
rows = arcpy.UpdateCursor(fc, "", "", "SPECCODE")
for row in rows:
row.SPECCODE = 'CO'
rows.updateRow(row)
lstFCs = arcpy.ListFeatureClasses("*", "POLYLINE")
for fc in lstFCs:
if fc == 'Pink':
rows = arcpy.UpdateCursor(fc, "", "", "SPECCODE")
for row in rows:
row.SPECCODE = 'PK'
rows.updateRow(row)
elif fc == 'Coho':
rows = arcpy.UpdateCursor(fc, "", "", "SPECCODE")
for row in rows:
row.SPECCODE = 'CO'
rows.updateRow(row)
del row, rows You will just need to add more 'elif' statements for all of your feature class names. The above code will work for polylines as a stand-alone feature class, or a feature class within a feature dataset.
... View more
11-19-2012
06:28 AM
|
0
|
0
|
1378
|
|
POST
|
I could not reproduce the errors you are receiving. Attached is the script and some data I tested with.
... View more
11-16-2012
09:20 AM
|
0
|
0
|
4039
|
|
POST
|
You can loop through all of the feature classes and append the values for field HUC_8 to a list. You can then loop through the list to apply the query and copy/append to the new feature class. Ex: import arcpy, os
from arcpy import env
env.overwriteOutput = 1
list = []
# append all HUC_8 values to list
def getHUC_8():
env.workspace = r"G:\ChrisGIS\Events_Editor0806"
lstGDBs = arcpy.ListWorkspaces("*", "FileGDB")
for gdb in lstGDBs:
env.workspace = gdb
for fc in arcpy.ListFeatureClasses("Events2HEM"):
rows = arcpy.SearchCursor(fc, "", "", "HUC_8")
for row in rows:
list.append(row.HUC_8)
getHUC_8()
# remove duplicates from list
list = dict.fromkeys(list)
list = list.keys()
env.workspace = r"G:\ChrisGIS\Events_Editor0806"
lstGDBs = arcpy.ListWorkspaces("*", "FileGDB")
for gdb in lstGDBs:
env.workspace = gdb
for n in list:
for fc in arcpy.ListFeatureClasses("Events2HEM"):
arcpy.MakeFeatureLayer_management(fc, "fc_lyr", "HUC_8 = " + str(n))
env.workspace = r"G:\ChrisGIS\HUC_8" + os.sep + str(n) + ".gdb"
if arcpy.Exists("Events2HEM"):
arcpy.Append_management("fc_lyr", "Events2HEM", "NO_TEST")
else:
arcpy.FeatureClassToFeatureClass_conversion("fc_lyr", env.workspace, "Events2HEM")
env.workspace = gdb
... View more
11-16-2012
07:46 AM
|
0
|
0
|
4039
|
|
POST
|
I could not reproduce this with ArcGIS Desktop 10.0 SP5. Let's test to check that it's nothing specific with the raster datasets. Can you import the attached TIFF and see if you can view it in ArcGIS Desktop 10.0?
... View more
11-15-2012
04:54 AM
|
0
|
0
|
5356
|
|
POST
|
Hi Kyle, Are you attempting to view a raster dataset or a mosaic dataset? Is this occurring for all raster/mosaic datasets? What version of ArcGIS Desktop 10.0 (including Service Packs) are you using? What RDBMS is SDE 10.1 installed for (i.e. SQL Server 2008, Oracle 10gR2, etc)?
... View more
11-14-2012
11:31 AM
|
0
|
0
|
5356
|
|
POST
|
You can create a new field of type Double, and then use the Field Calculator to calculate the values from the Float field to the new Double field.
... View more
11-14-2012
11:14 AM
|
0
|
0
|
3343
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 4 | 05-07-2020 05:14 PM | |
| 1 | 03-25-2026 04:16 AM | |
| 1 | 03-16-2026 01:00 PM | |
| 1 | 12-22-2025 10:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|