POST
|
Hi, I have a Pythonscript which transforms input featureclass and tables into several output tables and one featureclass. The output tables are connected to the featureclass and to each other with relationship classes (everything in one single GDB). For avoiding nested loops, i initially put the input data into pythonic lists ("data" in the code). I use ArcGIS 10.3.1, Python 2.7.8, here's the code (nothing special): def insertRows(workspace, fields, data):
edit.startOperation()
with arcpy.da.InsertCursor(workspace, fields) as cursor:
for row in data:
try:
cursor.insertRow(row)
except:
err = ""
for elm in row:
err = err + str(elm) + "|"
arcpy.AddError("Error at row: " + err)
arcpy.AddError(sys.exc_info()[0])
edit.stopOperation() Stacktrace: Traceback (most recent call last):
File "XX.py", line 600, in <module>
insertRows(xGDB + os.sep + "BP_Plan", fields_BP_Plan, dict_BP_Plan)
File "XX.py", line 255, in insertRows
cursor.insertRow(row)
RuntimeError: Feld kann nicht bearbeitet werden. # Field is not editable Filling the tables with more than 8000 rows is no problem, but the code breaks exactly on inserting record #1000 into output featureclass. The row data itself has no problem (when I switch inputdata's OID sort direction, it also breaks on record #1000). The list objects are also filled. Maybe there are some known limitations on editsessions when many relationship classes are involved. I would appreciate any hints.
... View more
12-02-2015
12:44 AM
|
0
|
9
|
5061
|
POST
|
Yes thats no problem. But you have to prepare your data either in the webmap or (if you use ArcGIS Server) in MXD before exposing to collector. Your symbology can vary depending on an attribute value. Take a look at 'edit symbology' in layer context menu inside the webmap or in layer's symbology tab in arcmap. If you change the attribute in collector the symbology changes also. I recommend the use of domains for a comfortable outdorr editing. Andre
... View more
09-23-2015
07:17 AM
|
1
|
1
|
440
|
POST
|
Hi, is solved this in DeveloperEdition by adding this to the "map"-section in config.json: "mapOptions": { "logo": false} Andre
... View more
08-21-2015
12:32 AM
|
6
|
4
|
7363
|
POST
|
Hi, in addtion to this topic: i got a mapservice containing an aerial image and polygon features. This service is token-based secured in AGS 10.3.1 and it's added as an element with saved credentials in Portal for ArcGIS. I can load the service via basemap gallery widget into my WAB application (Dev) without any problems and printing works fine. But if I insert the referrer-Urls (http://OURSERVER.de, http://OURSERVER.de:3344) from our server inside element's use limitations printing fails and i get the following error log: <Msg time='2015-08-13T13:30:39,243' type='SEVERE' code='20010' target='Geoprocessing/SecurePrintingTools.GPServer' methodName='GPServerSync.CheckMessages' machine='H2200268.STRATOSERVER.NET' process='9736' thread='11500' user='null' >Error executing tool. Export Web Map Job ID: jd8a975a112704ce89dc31a6ef7ed0181 : Layer "layer12": Unable to connect to map server at http://OURSERVER.de/arcgis_hok/sharing/servers/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/rest/services/HOKis_Karten/FDOP2013_Flst/MapServer.
ERROR: code:403, You do not have permissions to access this resource or perform this operation. Access to this resource is forbidden, regardless of authorization.
Failed to execute (ExportWebMap).
Failed to execute (Export Web Map).</Msg> The printing service is setup on the same AGS instance and printing other layers and basemaps works just fine. I think there's a special port for printing issues, which I can't figure out. Any ideas? I appreciate any hints. Andre
... View more
08-13-2015
04:52 AM
|
0
|
3
|
3917
|
POST
|
Hi, in my webmaps I'm able to route from a selected feature inside every popup (in mapviewer). It's at the bottom right site of the pop-up, beneath "Zoom To". When I import this webmap into a WAB-Application, the button is not there. What do I have to do, to make this button available? (I use WAB Developer Edition) I added the ESRI-routingservice as an element to my AGOL-Account and saved my credentials within, so everyone can use it from our applications without logging in to AGOL. I would appreciate any hints. Andre
... View more
06-02-2015
07:33 AM
|
0
|
0
|
2564
|
POST
|
For those with similar problems: I solved the problem by adding the AGS Service as an element in my AGOL account and saved the server credentials within the element. After that I restricted the allowed Referrer-Urls to my WAB-Application, so neither one can load the service into new web maps nor download data from the service. Andre
... View more
05-22-2015
04:18 AM
|
1
|
0
|
750
|
POST
|
thx for your reply, my basemap has the same wkid and the same tiles as esri basemaps. it's successfully integrated in several flex applications, because there I can specify a token. Andre
... View more
05-18-2015
08:19 AM
|
0
|
0
|
750
|
POST
|
Hi, I'm trying to add a basemap provided by an AGS 10.1 to my WAB-Application. The service is token-based secured. Operational secured layers work fine with a proxy configuration. This is the config-UI for the basemap gallery widget: It is also impossible to combine non-secured with secured services in this UI. I thought another workaround would be, to add the basemap directly to the web map, but then the other esri basemaps didn't work; or more precisely: if I switch over to an esri basemap my own secured basemap turns grey an is not available anymore. I appreciate any suggestions Andre
... View more
05-18-2015
06:44 AM
|
0
|
3
|
4242
|
POST
|
Eduardo, there are several ways to achieve this. Maybe this could help you: http://www.arcgis.com/home/item.html?id=0d47b17d3b884b9d977a6f76fc6bfcaa
... View more
05-08-2015
07:32 AM
|
0
|
0
|
311
|
DOC
|
Thx for your reply. I altered the URL in config.json, but it didn't work. The default URL is still used instead. But I solved the problem by hardcoding the profileTaskUrl property in Widget.js and now the widget is able to use other terrain data, than provided by ESRI! Andre
... View more
05-08-2015
05:52 AM
|
1
|
0
|
24841
|
POST
|
Hi, I've been encountered similar problems. Have you tried this at the beginning of your code: reload(sys) sys.setdefaultencoding('UTF8') Maybe this blogpost will help you too Andre
... View more
05-08-2015
03:14 AM
|
0
|
1
|
461
|
DOC
|
Robert, thanks for your updates. I published my own profile service with AGS 10.1. It's available here: Geoprocessing/ElevationProfile (GPServer). Parameter are identical to the original esri elevation service, but when I change Profile Task URL to my own profile service, it says "Invalid Task Url". Though I can hit the OK-Button afterwards, but when I open the setting page the old Profile Task Url is in the textbox. So could you give me hint, where the service URL is checked in Settings.js or maybe why my service isn't valid? Thanks, Andre
... View more
04-23-2015
05:57 AM
|
0
|
0
|
24841
|
DOC
|
Robert, you did a great job on this. Thanks. I guess it does not work with the ElevationsSOE interface for AGS 10.1? Because the DEM data from AGOL is to imprecise in europe for our purposes. What do you think of a print button in the widget? Regards, Andre
... View more
03-09-2015
08:07 AM
|
1
|
0
|
24841
|
POST
|
I can't retrace your approach, but here's my solution: 1. Negative buffer on Feature -3m 2. Positive buffer on neg. buffer 3m (now you have a feature without spikes more narrow than 6m, but with rounded corners) 3. If the new buffer perimeter is less than the original feature perimeter * 0.75 and if the ratio between bufferarea and featurerarea is > 0.95, then a spike is detected (Otherwise, the algorithm stops her) 4. Use the Tool "Split Line At Vertices" with second buffer as input 5. Delete every linefeature, whose Shape_length is less than 0.3 Meters 6. Use the Tool "Extend line" with the cleaned lines as input, and length = 4m (greater than bufferradius) 7. Use the Tool "Feature to Polygon" with the extended lines as input These number parameters did it for my data, other data will need other number inputs, especially the bufferradius is important for spike detection. Andre
... View more
02-26-2015
01:02 AM
|
0
|
0
|
437
|
POST
|
Hi, I had a similar problem with printing secured services in WAB. What comes up in you log file? Did you create a userconnection in ArcCatalog to the ArcGIS Server instance providing the wanted secured services? You should also set that userconncetion in the secured Printing Service tool. That did it for me. Andre
... View more
02-17-2015
07:45 AM
|
0
|
5
|
539
|
Title | Kudos | Posted |
---|---|---|
2 | 03-14-2024 12:59 AM | |
1 | 05-22-2015 04:18 AM | |
1 | 09-23-2015 07:17 AM | |
1 | 01-26-2015 08:08 AM | |
1 | 12-02-2015 07:44 AM |
Online Status |
Offline
|
Date Last Visited |
11 hours ago
|