POST
|
Hi: I've got a couple SOE's that I've built. But as I'm learning more about hosted services and "Shared Instance" configurations, neither of these workflows support SOE's.. I'm just wondering if there's any thoughts about allowing SOE's to somehow be integrated into "hosted services" or "Shared Instance" configurations in the future? We can still use them in Federated workflows, but I've written some that would be great to share in a "hosted service" environment. (I've got one that checks topology on Feature Datasets accessible through ArcGIS Server Services, and this one would be great to integrate with hosted services managed by our State offices). Thoughts? Karen
... View more
04-16-2020
06:52 AM
|
0
|
1
|
373
|
POST
|
I pulled a bunch of data to the client and have access to a FeatureSet. However, I can't build a Feature Layer as the data isn't tied to a URL (I generated the data using an SOE, so the data is a result of an analysis). In some cases, there is no corresponding geometry for the data. Is there any way to build a FeatureTable off of this table? I tried by using the original FeatureLayer (prior to analysis), and using it's Layer Definition, but so far, I've not found a way to generate a FeatureSet. It looks like it works (no errors when I create a New FeatureTable), but it's not showing up in the table at all. Thoughts?
... View more
01-27-2020
05:26 AM
|
0
|
0
|
235
|
POST
|
If you want to do it in an SOI, you wont be able to undo edits because the SOI occurs before (or after, I can't remember), it gets to the actual edit. I did mine in an SOE so that you can perform the following: start an edit session; check topology before the edit occurs; perform the edits; check topology after the edits; and then either cancel the edit session (undo edits), or continue/save the edits (depending upon which option the user chooses), and pass back topology errors if there are any. It'll help to fully understand how ArcObjects deals with edits. Then simulate that. I had to duplicate many of the ApplyEdits functions in a Feature Service as well in order to pull this off since only Map Services can handle SOEs. Karen
... View more
12-06-2019
05:04 AM
|
0
|
0
|
1126
|
IDEA
|
Sorry guys. A bit late to the conversation (was on vacation). I am interested in seeing something in the REST endpoint that can support server side clustering and provide the ability in the JavaScript API that renders point features that represents numbers of features (not necessarily point features) within variable distances at certain scales. I pulled it off in my app here: www.fs.fed.us/ivm.. If you click on one of the opportunities (ie., Hiking), you can see how it works. At zoomed out scales we summarized by states or FS districts (ie., how many hiking trails in a FS district) and clustered those. Then used real clusters when zoomed in. Took a lot of manipulating to keep the performance up there (when dealing with huge amounts of linear features). But worked pretty good in the end! Would be great to see something like this show up in the REST endpoint so I wouldn't need to do the summary bit. I've had this same issue come up for other clients, so know there's a greater need for this out there. Thanks.
... View more
11-20-2019
08:35 AM
|
0
|
0
|
1320
|
POST
|
Also, last time I checked, the sample online was buggy.
... View more
11-13-2019
07:49 AM
|
0
|
0
|
1126
|
POST
|
Yes. You have to do it as a SOE. You need to run it against the Map Service, not Feature Service. You'll have to essentially reprogram the ApplyEdits REST endpoint. I got it working great, and even added topology checking in the middle of it and provide the ability to undo edits if topology fails.
... View more
11-13-2019
07:48 AM
|
0
|
1
|
1126
|
POST
|
The following code solves my issue: objMoved = newmap.move(folder=configStore.folder) #folder not found for given owner message if it doesnt move it.
print(objMoved)
if (objMoved is None) or \
(objMoved is not None and 'success' in objMoved and not objMoved['success']):
print("we flunked moving the object")
newmap.delete(force=False, dry_run=False)
sys.exit(
"ERROR: Unable to move the item with ItemID {0} to the folder, {1}. ".format(
id, configStore.folder))
... View more
10-17-2019
08:31 AM
|
0
|
0
|
1315
|
POST
|
I am attempting to move an item to a specific folder (using Python API, NOT Juypter). I don't see anything in the API to check if a folder exists. So according to the API: move(folder, owner=None)¶ Moves this item to the folder with the given name. Argument Description folder Required string. The name of the folder to move the item to. Use ‘/’ for the root folder. For other folders, pass in the folder name as a string, or a dictionary containing the folder ID, such as the dictionary obtained from the folders property. owner Optional string or Owner object. The name of the user to move to. Returns: A json object like the following: {“success”: true | false, ”itemId”: “<item id>”, “owner”: “<owner username>”, “folder”: “<folder id>”} I'm trying to figure out how to capture the return object. I've wrapped it in a Try/Catch but that doesn't seem to work. It always gets to the next line but I get the console message, Folder not found for given owner. If I do: objMoved = myItem.move(folder="whatever") objMoved is always None What's the "best practice" way to get the results?
... View more
10-17-2019
06:54 AM
|
0
|
1
|
1457
|
POST
|
OK, we resolved this issue. I was using arcpy.sa.EucDistance(filterFC, '#', arcpy.env.cellSize) to perform this function. But once I switched to arcpy.gp.EucDistance_sa(filterFC, dtw_raster, '#', arcpy.env.cellSize), that fixed it. This thread described the problem in more detail: https://community.esri.com/thread/146373 I just wish I found this solution sooner, as many hours were spent on this bug. The Euclidean Distance function didn't fail at all. It wasn't until we used a UNC path for the Jobs folder that we had that unrelated issue copying the resulting data to the final workspace appear at the end.
... View more
08-22-2019
06:15 AM
|
0
|
0
|
675
|
POST
|
I'm working on a geoprocessing service that performs a Euclidean Distance on some features. The Euclidean Distance works well. The data is properly stored in the Scratch folder. But here's the problem. If I've setup a UNC path for the Jobs folder, at the very end, after it says, "exiting", the service fails with a java.lang.Exception: Could not service request. It actually fails moving the data to the final UNC jobs folder. That folder is mainly empty with some .dat files. Also of note, we have it running on 1 server properly. But the rest of the servers, it fails on. We're currently running 10.6.1. Any ideas? Here's the final messages: esriJobMessageTypeInformative: dtw_raster = C:\Users\ILMOCD~1\AppData\Local\Temp\testing1\testing_gpserver\jf4517a7a7ad7412aa3e10c6a5c3ccd49\scratch\EucDist_tmpNHDF1.tif esriJobMessageTypeInformative: ...exiting... esriJobMessageTypeError: Failed. esriJobMessageTypeInformative: java.lang.Exception: Could not service request.
... View more
08-07-2019
06:15 AM
|
0
|
1
|
869
|
POST
|
I just read this. I'm having a problem with Clip in a Geoprocessing tool (part of a very large python script) running in 10.5.1. It runs perfectly in 10.4.1 and 10.6.1, so I think it's a bug in 10.5.1. Its happening on a very large dataset of NHD Flowlines (linear data). So I'm curious what version of software you ran into this problem with?
... View more
02-20-2019
07:59 AM
|
0
|
1
|
1499
|
POST
|
I'm wondering if it's possible to capture applyEdits of a Feature Service using an SOI? Here's the Rest request I want to intercept: https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm But more importantly, I would like to integrate my code in the middle of the edit session. So when doing the edits within an Edit Operation, I want to call other checks. If the checks fail, I need to basically undo the edit operation, and pass back an error message stating it failed. There is a (non-working) example in the SOE samples of basically applying edits using an SOE. So I think I can probably write my code in the middle of this. But that would require me to essentially write all the code that is part of featureService/applyEdits. I was hoping to avoid this. Ideas? Thanks.
... View more
10-11-2018
06:59 AM
|
2
|
5
|
1479
|
POST
|
The allRequests is an array. So you would push one request at a time into the array. Then, when all done, you would process all requests simultaneously. ie. You can edit Feature from layer 1. Then, edit another feature from layer 2. Then, when ALL of them are done, you would process them all (so you'll end up with an array of responses.). Im not following your last paragraph.
... View more
08-14-2018
02:53 PM
|
0
|
1
|
1180
|
POST
|
Sorry, lots of code there. I do this all the time. I'm assuming you've got a Deferred, Promise with Deferred Resolve and Reject. You also need an dojo/promise/all. create an array and push each request: ie. allRequests.push(this._handleDeletesRequestDef(lyr.url, oids.toString())); Then, at end, just process all requests: For example. if (allRequests.length > 0) { //https://dojotoolkit.org/reference-guide/1.10/dojo/promise.html#dojo-promise //console.log("SaveEditsHandler.js: _processAllRequests(). about to send all "); all(allRequests).then( lang.hitch(this, this._onApplyEditsFinishAll, true), lang.hitch(this, this._onApplyEditsError, true) ); } I'm starting to muck about with FeatureService ApplyEdits. I think it'll just do everything all at once.
... View more
08-14-2018
01:16 PM
|
1
|
3
|
1179
|
POST
|
You've got me thinking about the possibility of panning while double clicking. Do you do something to avoid this issue? I'll definitely research this possibility some more. I recall there's a way to check if the user is currently panning or maybe using mouse-event double-click or something. hmmm.
... View more
06-08-2018
12:16 PM
|
0
|
1
|
675
|
Title | Kudos | Posted |
---|---|---|
1 | 11-21-2017 08:58 AM | |
1 | 08-14-2018 01:16 PM | |
1 | 02-13-2017 07:43 AM | |
2 | 10-11-2018 06:59 AM | |
14 | 09-03-2014 07:35 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|