POST
|
Hi everyone, I have a problem, which is to perform a location allocation activity for facilities, each with a Weight (attractiveness compared to the others) and a maximum Capacity to consider. The only types of problems that consider weights are those of market share (Maximize and Target). The capacity is instead respected only in Maximize the coverage capacity. How to perform an activity that takes into account both constraints? Thanks in advance, Gianni
... View more
09-10-2020
03:21 AM
|
0
|
1
|
400
|
POST
|
I have a Web AppBuilder application, and I call a GeoProcessing Service to retrieve features to select. Features come as follows (in a normal ESRI JSON). { "features": [ { "attributes": { "OBJECTID": 1051, "CODE": "IT9140005", "TYPE": "B", "Name": "Lake S. John", "AREA": "79781684.173", "PERIMETER": "86058.177", "HECTARES": "7978.168", "SHAPE.AREA": 0.008503497389955931, "SHAPE.LEN": 0.952023279018308 }, "geometry": { "rings": [ [[18.580059000423375,41.79841200001471], [18.59070999966758,41.824356000330056], [18.627246000103696,41.815020999720275], ... ... ...]] } } ] } Now I need to select them from a layer by SelectionManager class as follows. this.selectionManager = SelectionManager.getInstance(); this.selectionManager.setSelection(layerToSelect, myfeatures).then(() => { /* do something */ }); What should myfeatures be? Passing the the features of before it returns strange errors (related to something missing in features, spatial Ref, etc). Which is the correct way to pass retrieved features to SelectionManager class, in order to select them? Why do I have to pass geometry too, if the OBJECTIDs might be enough? Could be better select them from an array of OBJECTID? Thanx in advance Gianni
... View more
01-31-2020
03:36 AM
|
0
|
1
|
590
|
POST
|
A Geoprocessing service has been created that uses the Make Route Event Layer tool; in the fields that contain the measures, both in the creation of the route and in the input table, the values are expressed in meters to avoid problems related to the variability of the decimal separator. Run from ArcGIS (ver. 10.6) the script returns properly referenced features. Instead, when published as a GP on ArcGIS Server ver. 10.6 (on OS Linux RedHat), the job performed by the rest interface does not return any referenced features, but all the records in the input table report a localization Error: ROUTE_NOT_FOUND. The inputs passed to the script in the desktop environment and to the GP in the server environment are the same. Any suggestion?
... View more
08-09-2019
05:40 AM
|
0
|
0
|
479
|
POST
|
ArcGIS Server 10.22 OS is Linux (Red Hat Ent. v. 7.4) the command is: sudo pip install beautifulsoup4 and is launched in: /arcgis/server/framework/runtime/.wine/drive_c/Python27/ArcGISx6410.2/lib/site-packages Thanx
... View more
08-08-2019
02:21 AM
|
0
|
0
|
780
|
POST
|
I am trying to run a Python script that uses beautifulSoup, I installed beautifulSoup with: sudo pip install beautifulsoup4 Through ArcGIS desktop it is correctly installed and I can see that it is found inside the folder "site-package". Although when I try to install through the Server I get error 'no module named bs4'. Does anybody know how to install the library through the server correctly? Thanks for your support, Bye
... View more
08-05-2019
08:50 AM
|
0
|
2
|
1046
|
POST
|
I'm trying to configure a ProxyEsri Java, i.e. proxy.jsp (ver. 1.1.2) to call from a WAB app a remote server (NON ARCGIS) but a server that answers me with a simple JSON. This server is authenticated with basic username and password. My proxy.config is set as follows: <?xml version="1.0" encoding="utf-8" ?> <ProxyConfig allowedReferers="*" logFile="proxy_log.log" logLevel="INFO" mustMatch="false"> <serverUrls> <serverUrl url="http://services.arcgisonline.com" matchAll="true"/> <serverUrl url="http://remoteserver.com?param=value&format=json" matchAll="true" username="DMS_USER" password="P12345"/> </serverUrls> </ProxyConfig> I call the proxy as follows (on my tomcat): http://localhost:8080/ProxyEsri/proxy.jsp?http://remoteserver.com?param=value&format=json But it doesn't answer, because it prompts a login page for my proxy url. I tried to insert user and passwd again but it fails. I tried also to call proxy sending user and password in url as: http://localhost:8080/ProxyEsri/proxy.jsp?http://DMS_USER:P12345@remoteserver.com?param=value&format=json Same result. Any ideas? Thanks
... View more
07-29-2019
08:03 AM
|
0
|
1
|
6124
|
POST
|
I am dealing with a very strange affair on WAB (ver. 2.6): I have a web application published on my enterprise ArcGIS Portal and I created a custom widget named QueryTool and configured it in config.json. Last night the browser suddenly started not loading the widget and in the console I noticed that it goes to look for the widget files in the folder: https://<serverMyPortal>/myApp/widgets/QueryToolNoLogin/ instead of: https://<serverMyPortal>/myApp/widgets/QueryTool/ how it should be. It seems it looks for the files in a folder that has the name of the widget with the addiction of "NoLogin" string and it obviously fails. What do you think of this strange behavior? Has it ever happened to you?
... View more
07-26-2019
03:28 AM
|
0
|
0
|
243
|
POST
|
Hi All, I'm trying to publish on ArcGIS Server a geoprocessing service, which creates an Excel File with some data. I'm using Pandas and XlsxWriter but locally it works. On the ArcGIS Server (linux machine) it does not. Seems like it can't find module, though I have installed and overwritten it in different ways, and in python console it imports module with no errors. On ArcGIS Server manager page script fails and logs: ImportError: No module named xlsxwriter Failed to execute (Script). any workaround? thanx
... View more
06-03-2019
01:35 AM
|
1
|
2
|
1546
|
POST
|
Hi all, I'm experiencing an issue in WAB about Selection Manager class: I need to set the tool so that it can make a selection among already selected features; just like ArcMap (ArcGIS Desktop) does with its tool (see figure below) I'm not able to find the correct option neither among Selection Class nor among ArcGIS API JS: Selection manager class has: setFeaturesToSelection, addFeaturesToSelection, removeFeaturesFromSelection Any suggestion? Thanks
... View more
05-20-2019
04:54 AM
|
0
|
3
|
618
|
DOC
|
Thanks for the answer. And Is there anything I can do in root files (general config.json, main.js, and so on). I've tried to set initial display:none and after set it to block, but the behaviour is something not stable. Can you suggest me some workaround? Thanks Il mer 1 mag 2019, 14:42 Robert Scheitlin, GISP <geonet@esri.com> ha scritto: GeoNet <https://community.esri.com/?et=watches.email.document_comment> Popup Panel Widget Version 2.11 - 02/06/19 new comment by Robert Scheitlin, GISP <https://community.esri.com/people/rscheitlin?et=watches.email.document_comment> View all comments on this document <https://community.esri.com/docs/DOC-7355-popup-panel-widget-version-211-020619?commentID=72913&et=watches.email.document_comment#comment-72913>
... View more
05-01-2019
10:54 PM
|
0
|
0
|
8777
|
DOC
|
Hi Robert, I'm using it without side panel, but like a traditional panel on screen instead. Do you have any ideas to prevent showing popup when loading the widget for the first time? Your application does so also. When widget is loaded for the first time it appears for a while and disappears suddenly. Is it possible to prevent this showing? Thanks, Gianni
... View more
04-30-2019
10:45 AM
|
0
|
0
|
8777
|
POST
|
Yes Robert, it seems to do just that if draw-tool is "extent" (rectangle). However I have solved in this way. I transformed extent parameter in a polygon and it returns to work in the usual way. var extentPolygon = esri.geometry.Polygon.fromExtent(a); Thanks for your help! Bye, Gianni
... View more
03-12-2019
06:40 AM
|
0
|
0
|
299
|
POST
|
Hi, I'm experiencing an issue with the widget BatchAttributeEditor of WAB: It connects to a featureLayer (from an ArcGIS server), and at the end of drawing shape (or point) it should fire the query to the service, in order to select features of a query (c variable). _selectSearchLayer: function (a) { // a is the shape of selection
var c = new U; // U is esri/query Object
if ("point" === a.type || "polyline" === a.type) {
var d = ea.getUnitValueForSR(this.map.spatialReference);
c.geometry = da.buffer(a, 1, d)
} else c.geometry = a;
"FeatureQuery" === this.toolType && (c.outFields = [this.config.selectByLayer.queryField]);
c.spatialRelationship = U.SPATIAL_REL_INTERSECTS;
this.selectByLayer.layerObject.selectFeatures(c, W.SELECTION_NEW)
.then(b.hitch(this, this._searchByLayerComplete)) // b.hitch is lang.hitch
}, When I use the point draw-tool it works, when I use extent draw-tool instead, it selects features WITHOUT firing query. It's very strange: I don't find the query in network console of browser, but if I draw an extent around features it selects correctly features, but without querying the service. Could it be a matter of data-caching? Thanks, Gianni
... View more
03-12-2019
03:13 AM
|
0
|
2
|
364
|
POST
|
Hi, I'm experiencing an issue about FeatureSet Load method: the error is RuntimeError: RecordSetObject: Cannot open table for Load The service I'm requesting is on an unsecured host and I'm using a specific context to workaround: requests.packages.urllib3.disable_warnings() os.environ['PYTHONWARNINGS']="ignore:Unverified HTTPS request" This is my simple code: def createFeatureSet(serviceUrl, layerId, bbox): fsURL = buildUrl(serviceUrl, layerId,bbox) fs = arcpy.FeatureSet() result= urllib.urlopen(fsURL, context = ctx) fs.load(result) return fs fs_item = createFeatureSet(serviceUrl, l, bbox) fs_item.save("in_memory\\outlyr.shp") arcpy.MakeFeatureLayer_management("in_memory\\outlyr.shp", "outlayer") Following error trace: Traceback (most recent call last): File "myscript.py", line 85, in <module> fs_item = createFeatureSet(serviceUrl, l, bbox) File "myscript.py", line 80, in createFeatureSet fs.load(result) File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\arcobjects\arcobjects.py", line 175, in load return convertArcObjectToPythonObject(self._arc_object.Load(*gp_fixargs(args))) RuntimeError: RecordSetObject: Cannot open table for Load I tried also these snippets, but I get the same error. example for using token for exporting secured feature service to feature class Do you have any ideas? Thanks, Gianni
... View more
02-06-2019
05:55 AM
|
0
|
1
|
1252
|
Title | Kudos | Posted |
---|---|---|
1 | 06-03-2019 01:35 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|