POST
|
Hi Ian, You could create a checkout replica. A checkout replica will allow you to replicate data from an SDE Geodatabase to a File Geodatabase. You will then be able to synchronize the changes back to the SDE Geodatabase. However, with a checkout replica, you can only synchronize the edits one time. After the synchronization, you will need to create the checkout replica again. To automate this, you can easily create a model/script that creates the checkout replica each morning.
... View more
11-14-2014
05:01 AM
|
0
|
1
|
458
|
POST
|
Check the geodatabase connection properties. Does the connecting user own data, or have read privileges to other feature classes?
... View more
11-13-2014
12:43 PM
|
0
|
0
|
1087
|
POST
|
Hi Aaron, Try replacing:
warehouse = r"C:\Users\aaronmanuel\AppData\Roaming\ESRI\Desktop10.0\ArcCatalog\Warehouse.sde"
with:
warehouse = r"Database Connections\Warehouse.sde"
... View more
11-13-2014
12:18 PM
|
0
|
4
|
1087
|
POST
|
Hi Chris, I noticed a couple errors: 1. The AttributeInspector module is spelled incorrectly. Change this to: "esri/dijit/AttributeInspector" 2. The Button module is spelled incorrectly. Change this to: "dijit/form/Button" 3. You have two constructors, 'new HomeButton' and 'new LocateButton' that both need to be change to: new Button 4. Also, the line "<script>var dojoConfig = { parseOnLoad: true };</script>" is not commented out. Since you are not within the <script> tags, you are coding in HTML. To comment out a line you would use <!-- -->. However, this line is not needed and you can go ahead and delete it.
... View more
11-13-2014
12:00 PM
|
0
|
1
|
288
|
POST
|
Hi Manetta, You would want to place your question in the Geoprocessing place: Geoprocessing Also, be sure to add tags to your post so that it's easily discoverable.
... View more
11-13-2014
11:32 AM
|
1
|
0
|
616
|
POST
|
Hi Mehrshad, This usually occurs when a layer's data source was broken at some point and you repaired the data source for the layer, but picked the incorrect feature class with another geometry type.
... View more
11-13-2014
11:20 AM
|
0
|
0
|
178
|
POST
|
Hi Rick, Here is an example of one way to do this using Python. You can iterate through the Sales table and append the sales to a list. You can then remove duplicates from list, and iterate through the list. Ex:
import arcpy
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"
env.overwriteOutput = 1
table = "Sales"
#Create empty list
list = []
with arcpy.da.SearchCursor(table, ["Sales"]) as cursor:
for row in cursor:
#Append sales to list
list.append(row[0])
del row, cursor
#Remove duplicates from list
list = dict.fromkeys(list)
list = list.keys()
#Iterate through list
for sale in list:
arcpy.MakeFeatureLayer_management(table, "tableView", "Sales = '" + sale + "'")
...
...
... View more
11-13-2014
09:03 AM
|
2
|
13
|
749
|
POST
|
Hi Mike, You will want to georeference the raster. Take a look at the following link for the steps on how to do this: ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
11-13-2014
04:52 AM
|
2
|
1
|
1249
|
POST
|
Hi Isra, I would recommend creating a new thread for this question.
... View more
11-13-2014
04:44 AM
|
1
|
0
|
488
|
POST
|
1. You can use the following query: query.where = "1=1"; 2. You can use the following query: query.where = "ROOM_NO = '13' OR ROOM_NO = '1'"
... View more
11-12-2014
08:09 AM
|
1
|
3
|
488
|
POST
|
If you perform a join, you can calculate the values from a joined field.
... View more
11-12-2014
07:49 AM
|
1
|
0
|
200
|
POST
|
Hi Chris, Instead of loading the data from the XML table, try doing it from the feature class using the Load Objects tool. This will allow you to load data into non simple feature classes.
... View more
11-12-2014
07:26 AM
|
1
|
0
|
200
|
POST
|
Hi Isra, You will want to make sure you're executing the query 'where' statement. Also, you will want to change the highlightSymbol to a SimpleMarkerSymbol as well. Below is a point data example you can refer to:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>QueryTask with geometry, results as an InfoWindow onHover</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.11/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css">
<script src="http://js.arcgis.com/3.11/"></script>
<script>
var map;
require([
"esri/map",
"esri/graphic",
"esri/InfoTemplate",
"esri/symbols/SimpleMarkerSymbol",
"esri/SpatialReference",
"esri/geometry/Extent",
"esri/layers/GraphicsLayer",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/tasks/query",
"esri/tasks/QueryTask",
"esri/Color",
"dojo/domReady!"
],
function (
Map, Graphic, InfoTemplate, SimpleMarkerSymbol, SpatialReference, Extent, GraphicsLayer,
SimpleFillSymbol, SimpleLineSymbol, Query, QueryTask, Color
) {
map = new Map("mapDiv", {
basemap: "streets",
center: [-81.792107, 26.150807],
zoom: 8
});
map.on("load", setUpQuery);
function setUpQuery () {
var queryTask = new QueryTask("http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0");
//build query filter
var query = new Query();
query.returnGeometry = true;
query.outFields = ["*"];
query.outSpatialReference = { "wkid": 102100 };
query.where = "st = 'FL'";
var infoTemplate = new InfoTemplate();
var content = "<b>City Name: </b>${areaname}<br/>" +
"<b>2000 Population: </b>${pop2000}";
infoTemplate.setTitle("${areaname}");
infoTemplate.setContent(content);
map.infoWindow.resize(245, 125);
//Can listen for complete event to process results
//or can use the callback option in the queryTask.execute method.
queryTask.on("complete", function (event) {
map.graphics.clear();
var highlightSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0]), 1),
new Color([125, 125, 125, 0.35]));
var symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0]), 1),
new Color([0,255,0,0.25]));
var features = event.featureSet.features;
var countiesGraphicsLayer = new GraphicsLayer();
//QueryTask returns a featureSet.
//Loop through features in the featureSet and add them to the map.
var featureCount = features.length;
for (var i = 0; i < featureCount; i++) {
//Get the current feature from the featureSet.
var graphic = features; //Feature is a graphic
graphic.setSymbol(symbol);
graphic.setInfoTemplate(infoTemplate);
countiesGraphicsLayer.add(graphic);
}
map.addLayer(countiesGraphicsLayer);
map.graphics.enableMouseEvents();
//listen for when the mouse-over event fires on the countiesGraphicsLayer
//when fired, create a new graphic with the geometry from event.graphic
//and add it to the maps graphics layer
countiesGraphicsLayer.on("mouse-over",function (event) {
map.graphics.clear(); //use the maps graphics layer as the highlight layer
var graphic = event.graphic;
map.infoWindow.setContent(graphic.getContent());
map.infoWindow.setTitle(graphic.getTitle());
var highlightGraphic = new Graphic(graphic.geometry, highlightSymbol);
map.graphics.add(highlightGraphic);
map.infoWindow.show(event.screenPoint,
map.getInfoWindowAnchor(event.screenPoint));
});
//listen for when map.graphics mouse-out event is fired
//and then clear the highlight graphic
//and hide the info window
map.graphics.on("mouse-out", function () {
map.graphics.clear();
map.infoWindow.hide();
});
});
queryTask.execute(query);
}
});
</script>
</head>
<body class="claro">
Hover over a city in Florida to get more information.
<div id="mapDiv" style="width:900px; height:600px; border:1px solid #000;"></div>
</body>
</html>
... View more
11-12-2014
03:58 AM
|
0
|
5
|
488
|
POST
|
Are you running the tool as a script within ArcMap? If so, what is the Data Type you have specified for this parameter? Try specifying this as a 'Double'. Ex:
... View more
11-12-2014
03:25 AM
|
0
|
3
|
675
|
POST
|
Hi Paul, This option will only be available if you created a hosted feature service by uploading a zipped Shapefile or File Geodatabase.
... View more
11-11-2014
12:44 PM
|
0
|
1
|
333
|
Title | Kudos | Posted |
---|---|---|
1 | Wednesday | |
3 | Tuesday | |
2 | 2 weeks ago | |
1 | 3 weeks ago | |
1 | 3 weeks ago |
Online Status |
Offline
|
Date Last Visited |
yesterday
|