|
POST
|
I believe you are encountering a bug: [#NIM084962 The ArcGIS.com map viewer does not allow editing of ArcGIS Server feature services from an internal network when using Internet Explorer. ] The workaround is to edit through Chrome or Mozilla Firefox.
... View more
02-28-2013
04:00 AM
|
0
|
0
|
1981
|
|
POST
|
The imagery you used previously may have had the image-to-world transformation stored in the header. The header is read first. So, the world file was most likely not being used. See the following link: http://resources.arcgis.com/en/help/main/10.1/index.html#//009t00000028000000 How georeferencing information is accessed The image-to-world transformation is accessed each time an image is displayed, for example, when you pan or zoom. The transformation is calculated from one of the following sources, listed in order of priority: The header file (if the image type supports one) The world file (This will be used first if the Use world file to define the coordinates of the raster check box is checked on the Options dialog box.) The row/column information of the image (an identity transformation)
... View more
02-27-2013
03:51 AM
|
0
|
0
|
934
|
|
POST
|
The .tfw file will need to be in the same directory in order for ArcMap to read it correctly. This is by default; similar to how all files (.shp, .shx, .dbf, .prj) of a shapefile need to be in the same directory. I don't believe there is a way to have ArcMap read another directory in order to read the world file. Any reason why you cannot have the world files in the same directory?
... View more
02-27-2013
02:18 AM
|
0
|
0
|
934
|
|
POST
|
I don't believe this will be possible without writing a script.
... View more
02-25-2013
07:14 AM
|
0
|
0
|
1588
|
|
POST
|
Yes, you can actually add a python script to a model.
... View more
02-25-2013
05:20 AM
|
0
|
0
|
1588
|
|
POST
|
Hi Stu, I would recommend using the Create Fishnet tool to create the polygon grid, and then use the Update cursor to update the attributes.
... View more
02-25-2013
02:35 AM
|
0
|
0
|
724
|
|
POST
|
You can iterate through the directory using the arcpy.ListFeatureClasses function, and then add the shapefile that's found. Ex: import arcpy
from arcpy import env
env.workspace = r"C:\temp\python"
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
lstFCs = arcpy.ListFeatureClasses("*.shp")
for fc in lstFCs:
arcpy.MakeFeatureLayer_management(fc, "fc")
addLayer = arcpy.mapping.Layer("fc")
lyr = arcpy.mapping.Layer("fc")
lyr.name = fc.split(".")[0]
arcpy.RefreshTOC() This code finds all shapefiles within the C:\temp\python directory and adds it to ArcMap.
... View more
02-22-2013
10:12 AM
|
0
|
0
|
2161
|
|
POST
|
Does the arcgis server account have read privileges to the directory where the .sde connection file is stored? Also, be sure you have the 64-bit SQL Server native client installed on the ArcGIS for Server machine: http://www.microsoft.com/en-us/download/details.aspx?id=16978
... View more
02-22-2013
02:26 AM
|
0
|
0
|
1707
|
|
POST
|
To add the shapefile to ArcMap, you will first need to a make a feature layer, then add the feature layer. Ex: shapefile = r"C:\temp\Airports.shp"
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
arcpy.MakeFeatureLayer_management(shapefile, "Airports")
arcpy.mapping.AddLayer(df, shapefile, "AUTO_ARRANGE") To move shapefiles to another directory, you can use the Copy geoprocessing tool.
... View more
02-22-2013
01:48 AM
|
0
|
0
|
2161
|
|
POST
|
Hi Marcelo, You could accomplish this using python. Here is an example: import arcpy
fc = r"C:\raster\polygon.shp"
list = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
for month in list:
arcpy.FeatureToRaster_conversion(fc, month, r"C:\raster\precipitation_" + month + ".tif")
... View more
02-21-2013
11:22 AM
|
0
|
0
|
1588
|
|
POST
|
Hi Brent, Try replacing: arcpy.ImportCADAnnotation(';'.join(lst_anno_lyrs), tmp_an, 1000, "ONE_CLASS_ONLY", "NO_MATCH", "NO_SYMBOL_REQUIRED", "STANDARD", "", "NO_AUTO_CREATE", "NO_AUTO_UPDATE") with: arcpy.ImportCADAnnotation_conversion(';'.join(lst_anno_lyrs), tmp_an, 1000, "ONE_CLASS_ONLY", "NO_MATCH", "NO_SYMBOL_REQUIRED", "STANDARD", "", "NO_AUTO_CREATE", "NO_AUTO_UPDATE")
... View more
02-21-2013
11:07 AM
|
0
|
0
|
986
|
|
POST
|
I am attempting to start and stop an edit session using two buttons within a web app. The edit session begins, but I have to click the "Start Editing" button twice to have it start. The edit session will stop when I click the "Stop Editing" button, but then I am unable to start another edit session. Does anyone know why both of these issues may be occurring? Below is the code: var editorWidget; function startEditing(){ map.addLayers(editLayers); dojo.connect(map, "onLayersAddResult", initEditing); } function stopEditing(){ editorWidget.destroy(); } function initEditing(results) { var featureLayerInfos = dojo.map(results, function(result) { return { "featureLayer": result.layer }; }); var settings = { map: map, layerInfos: featureLayerInfos }; var params = { settings: settings }; editorWidget = new esri.dijit.editing.Editor(params, 'editorDiv'); var options = {snapKey:dojo.keys.copyKey}; map.enableSnapping(options); editorWidget.startup(); }
... View more
02-21-2013
10:33 AM
|
0
|
7
|
2832
|
|
POST
|
You can use the Clip tool within ArcToolbox > Data Management > Raster. Choose the polygon as the output extent and check the option 'Use Input Features for Clipping Geometry'.
... View more
02-21-2013
04:15 AM
|
0
|
0
|
725
|
|
POST
|
Hi Peter, You should not name a shapefile beginning with a number: http://support.esri.com/en/knowledgebase/techarticles/detail/23087 As the previous post stated, you could do this using a search cursor. Not sure how you want to iterate through the table, but you could do this using a where clause. Ex: rows = arcpy.SearchCursor(fc, "OBJECTID = 1")
for row in rows:
time = row.Time
del row, rows
arcpy.Rename_management(fc, time)
... View more
02-21-2013
04:10 AM
|
0
|
0
|
2161
|
|
POST
|
Try calculating the length within the search cursor. Ex: rows = arcpy.SearchCursor("line_test")
for row in rows:
# Create a variable to store the length
length = row.Shape_Length
length = (length / 5.28) + Range
arcpy.AddMessage(length)
del row, rows
... View more
02-19-2013
10:35 AM
|
0
|
0
|
1281
|
| 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 |
Online
|
| Date Last Visited |
12 hours ago
|