|
POST
|
Hi Ed, Are you using ArcGIS 10.1? If you are, you can use the new data access module. Using arcpy.da.UpdateCursor is much faster than the regular arcpy.UpdateCursor. A thread found here shows a user was able to update half a billion records in one hour with the arcpy.da.UpdateCursor.
... View more
01-07-2013
02:25 AM
|
0
|
0
|
949
|
|
POST
|
If you're looking to obtain the path of the feature class, try: filename = "'" + arcpy.env.workspace + os.sep + fc + "'"
... View more
01-07-2013
02:09 AM
|
0
|
0
|
2666
|
|
POST
|
Try specifying each layer and title in the 'layerInfos' for the legend constructor: var legend = new esri.dijit.Legend({
map: map,
layerInfos:[{layer:princPortLayer, title:"U.S. Ports"},
{layer:schedKPortLayer, title:"Foreign Ports"}]
}, "legendDiv");
legend.startup();
... View more
01-04-2013
10:48 AM
|
1
|
1
|
5324
|
|
POST
|
Hi David, Add single quotes to your 'filename' variable. Try the following: for fc in fcLst:
filename = "'" + os.path.abspath(__file__) + "'"
arcpy.AddField_management(fc, 'shpname','text')
arcpy.CalculateField_management(fc, 'shpname',filename, "PYTHON" )
... View more
01-04-2013
09:52 AM
|
0
|
0
|
2666
|
|
POST
|
Yes, it would still be possible to view the service if the REST cache has not been cleared. I would recommend to set the cache to clear periodically. From 10.1 onwards ArcGIS Server automatically updates the REST cache when you add, update or remove services and folders. This eliminates the need for clearing REST cache manually when a change is made to the services or folders.
... View more
01-04-2013
04:16 AM
|
0
|
0
|
1281
|
|
POST
|
Hi Chris, Try clearing your browser's cache and then see if you are able to view the cached service.
... View more
01-04-2013
02:39 AM
|
0
|
0
|
1281
|
|
POST
|
You are correct, the field GRIDCODE represents the former field VALUE.
... View more
01-04-2013
01:27 AM
|
0
|
0
|
1818
|
|
POST
|
Hi Matthias, If you have 3D or Spatial Analyst, use the Int tool to convert the floating point raster to an integer raster. The decimal values will be dropped from each pixel. If you need to maintain the decimal values, first use the Times tool and multiply the raster by a constant to preserve the number of decimals. For example, if you need to maintain 3 decimals, multiply the raster by 1000. Then, execute the Int tool, followed by the Raster to Polygon tool. Within your polygon shapefile/feature class you will have a Value field. You can then use the field calculator to divide by the constant used for the Times tool, and you will then have the original pixel values.
... View more
01-03-2013
09:05 AM
|
0
|
0
|
1818
|
|
POST
|
When you say records, are you referring to the total number of feature classes within each feature dataset? If so, take a look at this thread. Or, are you referring to the total number of features in each feature class, within each feature dataset?
... View more
01-03-2013
07:42 AM
|
0
|
0
|
901
|
|
POST
|
Hi Jose, If you're receiving these errors in Visual Studio, take a look at the thread here. When defined in HTML, the dojo tag and any nonstandard attributes break the validity rules for most validators.
... View more
01-03-2013
06:57 AM
|
0
|
0
|
1199
|
|
POST
|
Hi Shaaban, Here is a sample. You will need to obtain a Bing Maps key. See the below information on how to do this: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/ve_getting_started.htm
... View more
01-03-2013
03:54 AM
|
0
|
0
|
978
|
|
POST
|
Hi Jose, I believe the 'dojox.layout.FloatingPane' is similar. Here is an example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title></title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css">
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dojox/layout/resources/FloatingPane.css">
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dojox/layout/resources/ResizeHandle.css">
<link rel="stylesheet" href="css/claro.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
<script type="text/javascript">var dojoConfig = {parseOnLoad: true};</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2"></script>
<script type="text/javascript">
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("dojox.layout.FloatingPane");
dojo.require("esri.map");
var map;
function init() {
var initialExtent = new esri.geometry.Extent({"xmin":-8396836.868209211,"ymin":4835062.442691721,"xmax":-8328196.416809216,"ymax":4891396.53253782,"spatialReference":{"wkid":102100}});
map = new esri.Map("mapDiv", {extent: initialExtent})
var baseMap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
map.addLayer(baseMap);
dojo.connect(map, "onLoad", function(theMap){
dojo.connect(dijit.byId('mapDiv'), 'resize', map, map.resize);
});
}
function showMap() {
if (!map) {
init();
}
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline'" style="width: 100%; height: 100%; margin: 0;">
<div id="floater" dojoType="dojox.layout.FloatingPane" title='Map' dockTo="dock" closable="false" resizable="true" dockable="true" >
<div id="mapDiv" data-dojo-type="dijit.layout.ContentPane" style="height:100%;width:100%;">
<input type="button" value="Show Map" onclick="showMap()" />
</div>
</div>
</div>
</body>
</html>
... View more
01-03-2013
02:28 AM
|
0
|
0
|
497
|
|
POST
|
I can't seem to reproduce this. What version of Firefox are you running?
... View more
01-02-2013
10:20 AM
|
0
|
0
|
964
|
|
POST
|
Hi Tracy, For your second and third problems, you are calling the wrong <div> within the mapReady function. Change: dojo.connect(dijit.byId('map'), 'resize', map, map.resize); to dojo.connect(dijit.byId('mapDiv'), 'resize', map, map.resize);
... View more
01-02-2013
08:06 AM
|
0
|
0
|
964
|
|
POST
|
Hi Gord, You could use the following python function within the field calculator: def date(field):
seconds = (field - 25569) * 86400.0
time = str(datetime.timedelta(seconds=seconds))
return time.split(",")[1].split(".")[0] Here is a screen shot. [ATTACH=CONFIG]20365[/ATTACH]
... View more
01-02-2013
07:26 AM
|
0
|
0
|
867
|
| 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
|