|
POST
|
1. What version of ArcMap, including service packs, are you running? Ex: ArcGIS 10.1 Service Pack 1 2. What type of geodatabase does your mosaic dataset reside in (i.e. File, Personal, SDE)? 3. Try rebuilding the overviews with only the options 'Define Missing Overview Tiles' and 'Generate Overviews'. Make sure the options 'Generate Missing Overview Tiles' and 'Regenerate Stale Overview Tiles are unchecked.
... View more
12-19-2012
09:36 AM
|
0
|
0
|
3799
|
|
POST
|
Thanks for the data, but I could not reproduce this error. 1. What version of ArcGIS, including Service Packs are you running? i.e. ArcGIS 10.1 SP1 2. If you copy these two excel files to a new directory, so the code is only iterating through these two files, do you still receive the error?
... View more
12-19-2012
02:30 AM
|
0
|
0
|
1904
|
|
POST
|
This is most likely a problem with the XLS file. Would you be able to upload the file, or a portion of it if it's too large? Also, when posting code, be sure to wrap it in tags using the # tool above. This will preserve the format/identation.
... View more
12-19-2012
01:51 AM
|
0
|
0
|
1904
|
|
POST
|
You can extract the endpoints from lines using the Feature Vertices to Points tool. Choose the option BOTH_ENDS for the Point Type.
... View more
12-19-2012
01:48 AM
|
0
|
0
|
1241
|
|
POST
|
The Raster to Point tool is the easiest way to convert a raster to point elevation. The Extract Values to Points tool will extract values from an underlying elevation raster to an existing points feature class/shapefile. If you have 3D Analyst, you can use the Interpolate Shape tool to convert your line to 3D based off of an elevation raster. There is an option within this tool for the interpolation to use the input vertex locations.
... View more
12-18-2012
08:06 AM
|
0
|
0
|
1241
|
|
POST
|
Hi Lisa, Would you be able to upload your code? This will make it easier to troubleshoot.
... View more
12-18-2012
07:44 AM
|
0
|
0
|
810
|
|
POST
|
Hi Colleen, 1. Does this occur for all polygon feature classes, or just one in particular? 2. Do you have any service packs installed? I would recommend installing SP5 if you haven't already.
... View more
12-18-2012
05:42 AM
|
0
|
0
|
1169
|
|
POST
|
For the dojo.connect statement, be sure you remove the argument when you call the 'checkExtents' function. Ex: dojo.connect(map, "onExtentChange", checkExtents);
... View more
12-17-2012
10:55 AM
|
0
|
0
|
1320
|
|
POST
|
Hi Greg, Try the following instead: dojo.require("esri.map");
dojo.require("esri.arcgis.utils");
var map, maxExtent,iniExtent, tiledMapServiceLayer;
function init() {
// configure the proxy URL -- required to access Data not on the local server
esri.config.defaults.io.proxyUrl = "/proxy/proxy.ashx";
var lods = [ {"level" : 6, "resolution" : 2445.98490512499, "scale" : 9244648.868618},
{"level" : 7, "resolution" : 1222.99245256249, "scale" : 4622324.434309},
{"level" : 8, "resolution" : 611.49622628138, "scale" : 2311162.217155},
{"level" : 9, "resolution" : 305.748113140558, "scale" : 1155581.108577},];
var webmap = "longwebmapstring"
iniExtent = new esri.geometry.Extent({"xmin": -7315000, "ymin": 5829000, "xmax": -4967000, "ymax": 6836000, "spatialReference":{"wkid":102100}});
mapDeferred = esri.arcgis.utils.createMap(webmap, "map", {
mapOptions: {
extent:iniExtent,
lods: lods,
slider: true,
sliderStyle: "small",
nav:false
}});
mapDeferred.addCallback(function (response) {
var map = response.map;
dojo.connect(map, "onExtentChange", checkExtents);
});
}
function checkExtents(map){
console.log("checkExtents called");
var extent = "";
extent = "XMin: "+ map.xmin.toFixed(4) + " "
+"YMin: " + map.ymin.toFixed(4) + " "
+"XMax: " + map.xmax.toFixed(4) + " "
+"YMax: " + map.ymax.toFixed(4);
console.log(extent);
}
dojo.ready(init);
... View more
12-17-2012
08:23 AM
|
0
|
0
|
1320
|
|
POST
|
I am assumming the raster datasets are floating point rasters, and therefore do not have an associated attribute table. Do you have the 3D Analyst extension? If you do, you can use the Raster Domain tool to create a single polygon feature class of the raster boundary. Then, if you have the Spatial Analyst extension, you can use the Zonal Statistics as Table tool. Use the output from the Raster Domain tool for the input features, specify your raster dataset, choose an output table, check 'Ignore NoData in calculations', and specify ALL for the Statistics Type. The output table will have a COUNT field which contains how many pixels (excluding NoDATA) are within your raster dataset.
... View more
12-17-2012
06:48 AM
|
0
|
0
|
1944
|
|
POST
|
Hi Ian, Here is an example that may help you get started on how to show/hide a pane using a button: <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" />
<style type="text/css" media="screen">
html, body {
height: 99%;
width: 99%;
margin: 0;
padding: 5px;
}
#content{
width: 100%;
height: 100%;
margin: 0;
border: solid #421B14 1px;
}
#leftPane{
padding:2px;
color:#421b14;
width:15%;
height:98%;
text-align:center;
border: solid #421B14 2px;
}
#map {
border:solid 1px #D3D3D3;
width:81%;
height:98%;
}
#header{
height:50px;
border: solid #421B14 2px;
}
</style>
<script type="text/javascript">
var djConfig = {parseOnLoad: true};
</script>
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2"></script>
<script type="text/javascript">
dojo.require("esri.map");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.StackContainer");
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("map", {extent: initialExtent})
var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer(
"http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
dojo.connect(map, "onLoad", function(theMap){
dojo.connect(dijit.byId('map'), 'resize', map, map.resize);
createButton();
});
map.addLayer(tiledMapServiceLayer);
}
function createButton(){
var paneButton = new dijit.form.ToggleButton({
id:"dojoPane",
showlabel: true,
checked: false,
label: "Show Pane",
onChange: function(val){
if (val){
this.set('label', "Hide Pane");
showDiv();
}
else {
this.set('label', "Show Pane");
hideDiv();
}
}
}).placeAt(dojo.byId("header"));
}
function showDiv() {
dijit.byId("leftPane").domNode.style.display = 'block';
}
function hideDiv(){
dijit.byId("leftPane").domNode.style.display = 'none';
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div id="content" dojotype="dijit.layout.BorderContainer">
<div id="header" dojotype="dijit.layout.ContentPane" region="top"></div>
<div id="leftPane" style="display: none;" dojotype="dijit.layout.ContentPane" region="left"></div>
<div id="map" dojotype="dijit.layout.ContentPane" region="right"></div>
</div>
</body>
</html>
... View more
12-17-2012
05:29 AM
|
0
|
0
|
596
|
|
POST
|
I believe the problem may be that you do not have an array created for legendLayers. Ex: var legendLayers = []; Here is the code I was able to get to work with a hosted feature service from ArcGIS.com: <!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/dojo/dijit/themes/claro/claro.css">
<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="css/layout.css"/>
<script type="text/javascript">
var djConfig = {
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.dijit"); // optimize: load dijit layer
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
dojo.require("dijit.layout.TabContainer");
dojo.require("esri.dijit.Legend");
dojo.require("esri.layers.FeatureLayer");
dojo.require("dijit.form.CheckBox")
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("map", {
extent: initialExtent
});
dojo.connect(map, 'onLoad', function (map) {
dojo.connect(dijit.byId('map'), 'resize', map, map.resize);
});
var basemapUrl = "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer";
var referenceUrl = "http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer";
var dynamicUrl = "http://services.arcgis.com/Fz6BBJUji5ArUSDM/arcgis/rest/services/Service_Requests/FeatureServer/0";
var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapUrl);
var dynamicLayer = new esri.layers.FeatureLayer(dynamicUrl);
var referenceLayer = new esri.layers.ArcGISTiledMapServiceLayer(referenceUrl);
var legendLayers = [];
legendLayers.push({ layer: dynamicLayer, title: "Service Requests" });
dojo.connect(map, 'onLayersAddResult', function (results) {
//add the legend
var legend = new esri.dijit.Legend({
map: map,
layerInfos: legendLayers,
arrangement: esri.dijit.Legend.ALIGN_RIGHT
}, "legendDiv");
legend.startup();
});
map.addLayer(basemap);
map.addLayers([dynamicLayer, referenceLayer]);
dojo.connect(map, 'onLayersAddResult', function (results) {
//add check boxes
dojo.forEach(legendLayers, function (layer) {
var layerName = layer.title;
var checkBox = new dijit.form.CheckBox({
name: "checkBox" + layer.layer.id,
value: layer.layer.id,
checked: layer.layer.visible,
onChange: function (evt) {
var clayer = map.getLayer(this.value);
clayer.setVisibility(!clayer.visible);
this.checked = clayer.visible;
}
});
//add the check box and label to the toc
dojo.place(checkBox.domNode, dojo.byId("toggle"), "after");
var checkLabel = dojo.create('label', { 'for': checkBox.name, innerHTML: layerName }, checkBox.domNode, "after");
dojo.place("<br />", checkLabel, "after");
});
});
}
dojo.addOnLoad(init);
</script>
</head>
<body class="claro">
<div id="mainWindow" dojotype="dijit.layout.BorderContainer" design="headline"
gutters="false" style="width:100%; height:100%;">
<div id="header" dojotype="dijit.layout.ContentPane" region="top">
This is the header section
<div id="subheader">subheader</div>
</div>
<div dojotype="dijit.layout.ContentPane" id="leftPane" region="left">
<div dojotype="dijit.layout.TabContainer" >
<div dojotype="dijit.layout.ContentPane" title = "Legend" selected="true">
<div id="toggle"></div>
<div id="legendDiv"></div>
</div>
<div dojotype="dijit.layout.ContentPane" title="Tab 2" >
Content for the second tab
</div>
</div>
</div>
<div id="map" dojotype="dijit.layout.ContentPane" region="center">
</div>
<div id="footer" dojotype="dijit.layout.ContentPane" region="bottom" >
this is the footer section
</div>
</div>
</body>
</html>
... View more
12-17-2012
04:21 AM
|
0
|
0
|
1154
|
|
POST
|
Hi Jamal, I was able to reproduce this crash using ArcGIS 10.1 Service Pack 1. I would follow up with Tech Support to have this bug logged and your customer information added to the bug. As a workaround, you can successfully execute this command using IDLE or PythonWin.
... View more
12-17-2012
02:43 AM
|
0
|
0
|
1485
|
|
POST
|
Hi Mark, I highly recommend Introduction to Geoprocessing Scripts Using Python. This course is how I was able to learn python.
... View more
12-17-2012
02:19 AM
|
0
|
0
|
2902
|
| 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 |
Friday
|