|
POST
|
Just move entirely into a File Geodatabase and model your existing Access tables there, relate them to any Feature Classes, set domains/subtypes, editor tracking and be done with it. You will be opening up your implementation into a whole new world and have capabilities you likely don't even know about (like easily publishing to the web, collector, Web AppBuilder, StoryMaps, and on and on...). VBA is a dead-end street that has a bunch of foreclosed properties down it.
... View more
02-12-2016
06:41 AM
|
2
|
0
|
2874
|
|
POST
|
TortoiseSVN We just keep it project-based, much like any other application and components might exist in SVN.
... View more
02-11-2016
11:23 AM
|
0
|
0
|
3972
|
|
POST
|
I'm putting this question here but it's a hybrid/mix of a AGS service layer's Identify task compared to creating my own Geoprocessing service that accomplishes the same thing. We've experienced poor performance with a custom JavaScript API application that utilizes the Identify task to return JSON output. An editable polygon FeatureService allows a user to define an area and then this feature is used in an Identify process on a point Feature Service containing approx. 85 million features. Can someone explain why I seem to experience better performance with the python code published as a Geoprocessing service compared to the above Identify task? fc2 = arcpy.CreateFeatureclass_management('in_memory', 'tmpFC', "POLYGON")
with arcpy.da.InsertCursor(fc2, ['SHAPE@']) as cur:
cur.insertRow([polygon])
pnt_fc = r'<some FeatureClass in a FGDB registered in AGS>'
arcpy.MakeFeatureLayer_management(pnt_fc, "PointFeatures")
#perform the selection
arcpy.SelectLayerByLocation_management("PointFeatures", "COMPLETELY_WITHIN", fc2)
#count rows to include as attribute in output JSON string
rowcount = int(arcpy.GetCount_management("PointFeatures").getOutput(0))
newlist = []
with arcpy.da.SearchCursor("PointFeatures",['OID@', '_Code1','_Code2','SoilID','SHAPE@X', 'SHAPE@Y']) as sc:
for row in sc:
values = {'layerId': '',
'count': rowcount,
'layerName': '',
'displayFieldName': '',
'value': '',
'attributes':{'OBJECTID': row[0],
'Shape': '',
'_Code1': row[1],
'_Code2': row[2],
'SoilID': row[3]},
'geometryType': '',
'geometry': {'x': '',
'y': '',
'spatialreference': {'wkid': '',
'latest': ''}
}
}
newlist.append(values)
data['_Output'] = newlist
#output JSON parameter
arcpy.SetParameterAsText(1, json.dumps(data)) The native Identify task that has been configured on the Map Service takes 10's of minutes to complete, while the GP service version completes in roughly 2 minutes for the same input selecting polygon feature used in the process. Is there likely a problem with the configuration of the Identify on the Map Service? I'd like to understand why my GP service performs better.
... View more
02-11-2016
06:48 AM
|
0
|
0
|
1978
|
|
POST
|
Thank you, Rebecca. I couldn't find any additional info on this and will just respond to the customer with "Cannot do this in a WebMap. Possibly in a WAB application". Thanks!
... View more
02-08-2016
01:51 PM
|
0
|
0
|
941
|
|
POST
|
Is there any way to change/alter the order in which service layers are presented in the popup of a Web Map? If "1 of 3" service layers are available in a popup, can I set which one appears 1st, 2nd and 3rd?
... View more
02-08-2016
01:14 PM
|
0
|
2
|
2719
|
|
POST
|
Hi Daniel -- I see no one has posted any info on this issue but were you ever able to resolve this somehow?
... View more
02-08-2016
11:55 AM
|
0
|
2
|
3284
|
|
POST
|
res_ws = r'E:\BOM\daily-temperature\daily-maximum-temperature\yourGDB.gdb' # I prefer gdb over folder I agree. Not sure how many times it has occurred but simply moving things into a FGDB resolves various issues I've run into. Pretty much I've just accepted the fact that there's probably a darn good reason why ESRI engineers have fully integrated the fgdb (Default.gdb) into the ArcGIS product, so why not follow?
... View more
02-02-2016
05:58 AM
|
2
|
1
|
2789
|
|
POST
|
Sorry I don't have an immediate answer. I'd love to hear what you find out though as I'm sure I will run into the requirement of multiple params for a geop service at some point.
... View more
01-29-2016
11:41 AM
|
0
|
0
|
3292
|
|
POST
|
Perhaps I'm misunderstanding it myself but I read it as this being the index of the output parameters only. In any case, if there's only one output, set it to 1 like I showed! --- in looking at my own codebase, the only example I have is where I am setting a single output parameter not a list of them. This returns a JSON output string that is the result of some geoprocessing: arcpy.SetParameterAsText(1, json.dumps(data))
... View more
01-29-2016
10:31 AM
|
1
|
4
|
3292
|
|
POST
|
I suppose if that is the second output parameter. I didn't notice the first output parameter in the code sample you posted. Also: do you get any output result when you execute the task from the services url?
... View more
01-29-2016
10:13 AM
|
0
|
6
|
3292
|
|
POST
|
Set the output parameter? arcpy.SetParameterAsText(1, Scale)
... View more
01-29-2016
08:43 AM
|
0
|
8
|
3292
|
|
POST
|
This: C:\Users\kkirkeby\Desktop\GIS-4080\Lesson4_Data\Lesson4_Data\l4_ex5 Is not a geodatabase/workspace. You are missing the ".gdb" at the end. C:\Users\kkirkeby\Desktop\GIS-4080\Lesson4_Data\Lesson4_Data\l4_ex5.gdb
... View more
01-29-2016
08:39 AM
|
1
|
3
|
3880
|
|
POST
|
You can try: gdb_name = 'L4E5.gdb'
gdb_fullPath = out_folder_path +'\' + gdb_name Although I typically would construct strings a bit differently using the 'r' literal: out_folder_path = r'C:\Users\kkirkeby\Desktop\GIS-4080\Lesson4_Data\Lesson4_Data'
gdb_name = 'L4E5.gdb'
gdb_fullPath = out_folder_path +'\' + gdb_name
... View more
01-29-2016
07:55 AM
|
0
|
5
|
3880
|
|
POST
|
Edit: I was able to fix per your suggestion. YESSSS! Whew... thanks Robert. I was really hoping to see this and will get to the workaround asap. THANK YOU!
... View more
01-28-2016
11:57 AM
|
0
|
0
|
788
|
| 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
|