|
POST
|
Here's one issue: if the user actually selects a service layer from the widget's drop-down list but does not make a selection in the map and hits "Execute", then it will become unresponsive.
... View more
10-03-2016
12:51 PM
|
0
|
9
|
2455
|
|
POST
|
I'll give it a go. Super appreciative, Robert. Thanks a bunch!
... View more
10-03-2016
12:44 PM
|
0
|
0
|
2455
|
|
POST
|
Sent! The messenger tool is flakey so look for the second PM.
... View more
10-03-2016
12:18 PM
|
0
|
12
|
2455
|
|
POST
|
Sending you a PM with a GP service url to test with. Thanks a ton.
... View more
10-03-2016
11:45 AM
|
0
|
14
|
2455
|
|
POST
|
Does the GP service you need to test against have to accept that Feature Set parameter? Or can it be just some basic GP service that doesn't do much of anything? I'm asking because this particular GP service is actually behind our firewall since it's performing edits/inserts on a Feature Class in one of our SDE databases. But if you just need an endpoint to set the widget to, can't you just enter anything? Thanks a bunch!
... View more
10-03-2016
11:17 AM
|
0
|
16
|
2455
|
|
POST
|
Hi Andrew, This is a single map service that contains the same feature class that has been added multiple times and apply a unique definition query to each one. After thinking thru this, I'm under the impression that this is the best approach compared to attempting to apply the def queries to individual web layers. Thanks, j
... View more
10-03-2016
10:24 AM
|
0
|
0
|
1077
|
|
POST
|
Geoprocessing Widget "hangs" if nothing is selected before hitting "Execute" button. Sorry for cross-post, I'm not getting any response in the other forum https://community.esri.com/thread/183807-gp-widget-hangs The current implementation is actually working just fine! However, I am not sure where to look or if it's possible to make an adjustment in the GP widget itself to help alleviate this problem. If the user doesn't select any features before hitting "Execute" on the widget, it seems to become unresponsive, however it does finally clear itself and returns to normal after a couple of minutes. This behavior will confuse users who will be very click-happy and exclaim the application is broken. I am hoping that there is a simple tweak I can apply to the widget itself to account for nothing being selected and perform a quick exit out of process. This is the standard Geoprocessing widget that acquires a Feature Set (the selection) and uses that as an input parameter.
... View more
10-03-2016
08:24 AM
|
0
|
23
|
6436
|
|
POST
|
What is the recommended approach for representing a single feature class uniquely in multiple ways within a single map service? Task: Represent a single Feature Class in a map service multiple ways. Current Solution: Copy / Paste that same feature class into a data frame, apply specific definition queries to each copy, apply unique symbology to each copy. Publish this as a single map service. Does this conform with best practice? Are there any additional burdens placed on the ArcGIS Server (extra SOC's)? Are there BENEFITS to this configuration for ArcGIS Server? Edit: I should mention that our alternative approach would be to just publish a simplified map service of that single feature class but create multiple unique configurations of Web Layers (ie, with def queries and symbology applied). I assume this would apply extra burden on the ArcGIS Server site compared to publishing a single map service as I mention above? We are looking into standardizing along best practices and hope to achieve a solid plan for being more flexible in representation of map services in order to allow user adjustment at the web-end, while keeping map service configuration and maintenance as simple as possible.
... View more
09-30-2016
01:01 PM
|
0
|
2
|
1658
|
|
POST
|
What's wrong with listing out the fields? It's a good practice to be explicit in the fields you want to work with anyway. However, if you must use all of the fields then you can just easily build a list of them: eflds = [f.name for f in arcpy.ListFields(MyFeatureclass)]
... View more
09-22-2016
06:01 AM
|
1
|
0
|
2615
|
|
POST
|
Thanks Joshua -- I'm pretty sure I tried to implement that but didn't fully see (as usual) and overlooked what key to use and moved on to the next example. I will learn one of these days. I still struggle with dictionaries, but they are really well suited for our GP services output because many of the org's apps are written by JavaScript developers and makes for a slick way to integrate them into our GIS world. In this instance, the dictionary output is really just the attribute result of spatial selections that run far more efficiently on the ArcGIS Server for obvious reasons, then just compiling the results into a dict to return to the calling application as JSON that they are accustomed to working with.
... View more
08-29-2016
06:05 AM
|
0
|
0
|
984
|
|
POST
|
I was down that road but found the implementation I posted above. I'm pretty sure it's what I need, just need to validate when I get a chance. Thanks!
... View more
08-26-2016
04:19 PM
|
0
|
3
|
4504
|
|
POST
|
I think this does it. Would like to get validation though! Thanks for looking. unique_data = [] for d in JSONlist2: data_exists = False for ud in unique_data: if ud['asset'] == d['asset']: data_exists = True break if not data_exists: unique_data.append(d) data2['Features'] = unique_data
... View more
08-26-2016
02:11 PM
|
1
|
9
|
4504
|
|
POST
|
Hi all! I'm in need of assistance in removing duplicate values within a single dictionary as I'm not having any success with the ideas/examples I've found. I need to identify and remove any duplicate "asset" within this dicitionary: { "Features": [ [ { "asset": { "isCoastal": 0, "name": "G344E", "WMRegion": "SOUTHERN_REGION", "wcuname": "WCA3A", "type": "structure", "isActive": 1 } }, { "asset": { "isCoastal": 0, "name": "G344E", "WMRegion": "SOUTHERN_REGION", "wcuname": "WCA3A", "type": "structure", "isActive": 1 } }, { "asset": { "isCoastal": 0, "name": "G344E", "WMRegion": "SOUTHERN_REGION", "wcuname": "WCA3A", "type": "structure", "isActive": 1 } }, { "asset": { "isCoastal": 0, "name": "G344E", "WMRegion": "SOUTHERN_REGION", "wcuname": "WCA3A", "type": "structure", "isActive": 1 } }, { "asset": { "isCoastal": 0, "name": "G344F", "WMRegion": "SOUTHERN_REGION", "wcuname": "WCA3A", "type": "structure", "isActive": 1 } }, { "asset": { "isCoastal": 0, "name": "G344F", "WMRegion": "SOUTHERN_REGION", "wcuname": "WCA3A", "type": "structure", "isActive": 1 } }, { "asset": { "isCoastal": 0, "name": "S145", "WMRegion": "SOUTHERN_REGION", "wcuname": "WCA2B", "type": "structure", "isActive": 1 } } ] ] }
... View more
08-26-2016
01:55 PM
|
0
|
12
|
12871
|
|
POST
|
I don't know why you need to import a toolbox to perform that operation. Just add the required methods and parameters in the script you intend to run on a schedule.
... View more
08-16-2016
06:25 AM
|
1
|
0
|
1744
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-17-2020 10:47 AM | |
| 1 | 10-25-2022 11:46 AM | |
| 1 | 08-08-2022 01:40 PM | |
| 1 | 02-15-2019 08:21 AM | |
| 2 | 08-14-2023 07:14 AM |
| Online Status |
Offline
|
| Date Last Visited |
01-22-2025
02:28 PM
|