POST
|
Hi There, Issues logging into GeoNet so I am replying directly to email. I’ve had a good experience using the arcgis.Portal module in the api at 3.x. TUse Portal.signIn() and it gets the portal info with the current user from the Identify Manager. Then you can query items and get the ones owned by yourself and or belonging to groups. I’m not extremely proficient at the jsapi. However I do know that the complications surrounding the restAPI are lessened when you can use an api function call that calls the restAPI behind the scenes. That’s what the pythonAPI does as well.
... View more
03-26-2020
05:46 PM
|
0
|
1
|
1187
|
POST
|
So what I've come to realize is that the reference to the feature layer with selection must be made using the feature layer name. It seems that in the past I've used the output from the MakeFeatureLayer_management function as input into other tools, but what actually should be passed is the name of the layer. So I end up using layer.name.
... View more
05-22-2019
01:11 PM
|
0
|
0
|
1317
|
POST
|
In an ArcPro python script I have created a feature layers from a GDB feature class and made a selection. field_values = {}
# Field names are identical between the source and the target
row_cnt = int(arcpy.GetCount_management(selected_layer).getOutput(0))
cnt = 0
with da.SearchCursor(selected_layer, update_fields) as _cursor:
for _row in _cursor:
update_values = _row[:-1]
_geo = _row[-1]
for i in range(len(update_values)):
fld = update_fields[i]
if fld not in field_values:
field_values[fld] = [update_values[i]]
else:
field_values[fld].append(update_values[i])
# add this row to the excel table for visual comparison of source data to the final row
test_rows.append(update_values)
cnt += 1
The row count of the selected layer is 21, but when I increase the cnt variable by one each time through the cursor, the total number of lines is 167. Has anyone experienced this issue with ArcPy for Pro? Do layer selections in Pro not work with da.Cursors? I was thinking that a naming conflict between the feature class and the layer could be happening so I appended "_lyr" to the end of the layer name.
... View more
04-04-2019
09:53 AM
|
0
|
10
|
1931
|
POST
|
Hello, This pertains to the ArcGIS Desktop 10.3.1 single use that I have installed to handle GDB replication on my GIS Server machine on an Azure VM. Just about, but not every, time that I start my Azure VM and connect via remote desktop, I am prompted to repair the ArcGIS Desktop Software authorization. Is there a proper way to handle ArcDesktop installations on a VM so that the authorization does not need to be repaired ever? Thanks
... View more
02-11-2016
06:39 AM
|
0
|
0
|
1391
|
POST
|
I set Firefox as the default browser and my log file is below. The loading page loads for WAB but each javascript file is taking several seconds to load. It would take minutes for all of them to load. [2015-11-11 08:59:37.461] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\widgets [2015-11-11 08:59:38.833] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\themes [2015-11-11 09:00:03.382] [INFO] server - No portal URL is set, redirect /webappbuilder to /webappbuilder?action=setportalurl [2015-11-11 09:00:33.346] [INFO] server - Set isXT = true;
... View more
11-11-2015
06:04 AM
|
0
|
1
|
242
|
POST
|
These are the log entries for this morning after I used the startup.bat file three times. The browser window opens but the WAB freezes. Could a code exception cause this without throwing an error? [2015-11-11 08:52:37.245] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\widgets [2015-11-11 08:52:39.556] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\themes [2015-11-11 08:53:37.717] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\widgets [2015-11-11 08:53:38.887] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\themes [2015-11-11 08:55:07.855] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\widgets [2015-11-11 08:55:09.036] [INFO] repo - Read repository items: C:\CODE\arcgis-web-appbuilder-1.2\client\stemapp\themes
... View more
11-11-2015
05:48 AM
|
0
|
0
|
813
|
POST
|
This morning I booted up my pc and opened the startup bat only to have WAB freeze just after the ',,,Repository Items Refreshed,,,'. Closing the WAB command prompt and reopening did allow a new web page to open but the loading screen is taking forever.... Going to reboot the machine. Have you been able to configure good logging for WAB and the node server? I am a python and javascripter but my knowledge of Node does not include how to troubleshoot Node.
... View more
11-10-2015
04:54 AM
|
0
|
5
|
813
|
POST
|
Right out of the gate with a fresh download and the WAB opens up the default Chrome browser as expected.
... View more
11-09-2015
01:54 PM
|
0
|
8
|
813
|
POST
|
Yes, the default Chrome browser is not opened by the WAB startup. In the command prompt things stop right after the "...Repository Items Refreshed...". I just attempted the startup.bat and I was unable to type in this text box until the command prompt was closed.
... View more
11-09-2015
01:32 PM
|
0
|
10
|
813
|
POST
|
I've installed the latest version of WAB onto windows 7 and have node version 4.2.2LTS installed on the system. I am able to run MongoDB, grunt, and dojo build all on Node without issues. When I install WAB it initially boots up quickly. Eventually when I startup the server.js file either using command line or with the startup.bat, the WAB startup seems to block all processes on my pc and the browser freezes. The NT Kernal is getting jammed. The program does not load. When I close the Command Prompt and kill the WAB server, the pc immediately jumps back into action. Has anyone else experienced this behavior with node.js or the WAB? Is this an issue with running on Windows?
... View more
11-09-2015
12:55 PM
|
0
|
13
|
4699
|
POST
|
Hi Jake, What I did in this code is use the queryIds method on a feature layer with the query.geometry = map.extent. Then set a definition expression on the layer using the returned OIDs. I feed the layer with expression into an array. When all 33 layers are queried I add the array to the map. This is fast, but there are some odd symbology and attribute issues that I am finding. P.s> Here is the widget's method / Could you offer any criticism please? startFeatureDownload: function(param, callback) {
var downloadTiles = dom.byId('downloadTiles');
var downloadFeatures = dom.byId('downloadFeatures');
var clearButton = dom.byId('clearButton');
var buttons = [downloadTiles, downloadFeatures, clearButton];
var map = this.map;
var featureUrls = this.testUrls;
offlineWidget.clearMap(null, function(evt) {
var extent = map.extent;
var i = [];
var featureLayers = [];
var index = 0;
arrayUtils.forEach(featureUrls, function(item) {
var request = new esriRequest({
url: item,
content: {f: "json"},
handleAs: "json",
callbackParamName: "callback"
});
request.then(function(response) {
if (response.type === "Feature Layer") {
index += 1;
var drawingInfo = response.drawingInfo;
var geometryType = response.geometryType;
var displayField = response.displayField;
var typeIdField = response.typeIdField;
var types = response.types;
var fields = response.fields;
var id = response.id;
var name = response.name;
// var queryTask = new QueryTask(item);
var query = new Query();
query.returnGeometry = false;
//query.outFields = ["*"];
query.geometry = extent;
query.spatialRelationship = Query.SPATIAL_REL_INTERSECT;
// create the field info array for the feature layer
var fieldinfo = [];
var count;
for (count=0; count < fields.length; count ++) {
var f = fields.shift();
var entry = {
fieldName: f.name,
label: f.alias,
visible: true
};
fieldinfo.push(entry);
}
var popupTemplate = new PopupTemplate({
title: response.name,
fieldInfos: fieldinfo
});
var layer = new FeatureLayer(item, {
mode: FeatureLayer.MODE_SNAPSHOT,
infoTemplate: popupTemplate,
outFields: ["*"]
});
var queryLayer = function(layer) {
layer.queryIds(query, function(result) {
console.log(result);
if (result !== null) {
i.push(1);
layer.setDefinitionExpression("OBJECTID IN (" + result.join(',') + ")");
featureLayers.push(layer);
} else {
i.push(0);
}
var sum = function add(i) {
var cnt = 0;
arrayUtils.forEach(i, function(e) {
cnt += e;
});
return cnt;
};
var x = sum(i);
if (i.length === index) {
var newlayerlist = [];
if (featureLayers.length > 0 && featureLayers.length === x) {
var layerholder = {
polys: {},
lines: {},
points:{}
};
arrayUtils.forEach(featureLayers, function(lyr) {
var layerid = lyr.layerId;
var geo = lyr.geometryType;
switch (geo) {
case "esriGeometryPolygon":
layerholder.polys[layerid] = lyr;
break;
case "esriGeometryPolyline":
layerholder.lines[layerid] = lyr;
break;
case "esriGeometryPoint":
layerholder.points[layerid] = lyr;
break;
}
});
var lists = [layerholder.polys, layerholder.lines, layerholder.points];
var newlists = [[], [], []];
arrayUtils.forEach(lists, function(list) {
var keys = Object.keys(list);
keys.sort();
arrayUtils.forEach(keys, function(key) {
var item = lists.indexOf(list);
newlists[item].push(list[key]);
});
});
var finalLayerList = newlists[0].concat(newlists[1], newlists[2]);
var _maplisten = map.on('layers-add-result', function(evt) {
_maplisten.remove();
offlineWidget.initOfflineDatabase(finalLayerList);
});
map.addLayers(finalLayerList);
}
}
});
};
queryLayer(layer);
}
});
});
});
},
... View more
08-14-2015
07:20 AM
|
0
|
0
|
485
|
POST
|
In order to request a feature service from the server I need to know what layers from the dynamic map service are visible in the current map extent. For the life of me I cannot find a method in the api for either extent, map, feature layer, graphicUtil, or arcgisdynamicmapservicelayer that will do this. We want to maintain the unique symbology of our map service while having the feature access to take onto the device. The question that this raises is "Is it possible to perform analysis on feature service geometries without adding the feaure services to the map?"
... View more
08-13-2015
07:58 AM
|
0
|
2
|
3133
|
POST
|
Situation: You are provided with a geodatabase for an entire county. The map service needs to be for a single neighborhood. The data cannot be edited or processed in ArcMap through a clip or any other geoprocessing tool. The data must have the capability of going offline through an extension of the feature layer. Question: What is the recommended method for requesting data from ArcGIS Server that is within an extent? This is complicated by the fact that there are thousands of features in the layers so not all of the features appear on screen when the service initially loads using the SNAPSHOT request. Possible Solution: I am thinking of using the ON_DEMAND request and requesting a selection set. Other Solutions: Is there a property for the map, dynamic layer, or feature layer that will always set the limits for the features returned from the server? Should I use a geoprocessing service to clip all of the layers and return them as a service? Thanks for the help!!
... View more
07-06-2015
06:47 AM
|
0
|
0
|
1951
|
POST
|
Hi Patricia, Yes, there is a barcode scanner that works with the iPad as an external Human Interface Device (HID) bluetooth device. Initially we were having a problem getting the codes to enter into the fields in Collector. What caused this was that the device was not setup to be an HID. The setup is done by scanning a specific qr code from the manufacturer. I cannot remember the scanner make or model, but it was advertised as working with the iPad Richard
... View more
11-20-2014
01:30 PM
|
0
|
8
|
683
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|