POST
|
I am trying to update a feature layer with an updated CSV (detailed in this Sample Notebooks section of the ArcGIS API for Python documentation). Here is the code I have been using: I have had no issues when testing various parameters (this is only part of a larger script that interacts with a SQL database; this section is dealing with the SQL query results as a CSV, preparing it for comparison/update to the feature layer). While test running some code in Jupyter, there was a small syntax error right after this section. I fixed the syntax error, restarted the kernel, and ran the code. However, now I cannot seem to run the edit_features method any longer, instead receiving this error: Did the kernel not clear this parameter? Is it stuck in some weird limbo between Jupyter and the feature layer that I can't figure out? How do I remove the key to allow the updates parameter to function properly again, and what can I do in the future to ensure this doesn't happen?
... View more
05-27-2019
10:50 AM
|
3
|
1
|
933
|
POST
|
Good afternoon! I'm working a script that should pull down only the most recently created records (from within the past hour) from a hosted feature layer. Scenario/workflow: (1) Customer creates a new record to the feature layer via a Survey123 submission (2) Script runs hourly to export any new records and pulls this record down to save to a local SQL Server DB What I have been able to do so far: (1) Get item content and export all features to a CSV via a ZIP folder to the local machine (2) Unzip the folder, remove the CSV Collection from AGOL and delete the ZIP folder locally, leaving the local CSV However, this is where I start to have the problem. I will manually modify the feature layer (add in a polygon), allow the feature layer to save, verify in the feature layer properties that it recognizes the modification, and then run the script, but the modification isn't recognized. I am not sure if it's because I live in the Central time zone and the then_ts variable is simply converting Central time to UTC while uwfBuildings is strictly UTC or what, but it's doing my head in. If I change the seconds variable for then to (3600*4) - for four hours ago - it will recognize that a change has been made, even though the change I made last was 30 min ago: I'm concerned that it is not possible to get the time resolution for the last modification for a feature layer to within an hour. If there is, how? Also, concerning the export method, even if I get this to work, how can I pull specific records from the feature layer that match the criteria? What WHERE clause could be used to identify new records if the feature layer isn't time-enabled (see below - the WHERE clause would go after the export_format parameter)? Thanks so much for any and all help!
... View more
04-02-2019
12:28 PM
|
0
|
0
|
245
|
POST
|
Michael, Thanks for taking the time to look into this. Jeremy
... View more
10-09-2015
05:49 AM
|
0
|
0
|
607
|
POST
|
Michael, Thanks! I will update my notes here and await your reply. As far as the feature datasets go, we are in the process of trying out network datasets for our customers, so that is the reason why I went ahead and put everything in feature datasets. However, I can create a separate file geodatabase of just feature classes and work with that - as you say, it's definitely worth investigating. Thanks again.
... View more
10-07-2015
06:47 AM
|
0
|
2
|
607
|
POST
|
Michael, Absolutely, and thanks for the quick response. Hopefully my detailed process will help. Different customers provide me with shapefiles (streets, land use, address points, hydrology, zones, etc.) which I then convert into feature classes within feature datasets in a file geodatabase I create on a VM where I have ArcGIS Basic installed. From there, I create four basic map documents: Basemap, Streets, Structures, and Zones. Each map document contains basically the exact same feature classes, just for that particular customer (lakes, streets, houses, various businesses, etc.) From there, I simply save the map document and share as runtime content. I store it all in a single folder. The folder will contain the four subfolders housing their particular .geodatabase file (so Basemap, Streets, Structures, and Zones). This, along with a created .json file that our app uses to display the runtime content is placed on an customer's server. We create many other applications (not ArcGIS-related) that require users to have full control of the drive and its subfolders in order for those applications to work, and these folders are stored on the same drive. We then create a .bin file that directs to the .json file (which itself points to the individual .geodatabase files). From there the user, from their local machine, access the server where the application (and associated map data) is stored. When we use this process in-house, we cannot replicate the errors that occur. I will load up mapping application from two different servers, and while the applications are both pointing to the same location where the .geodatabases are stored (on a third server), again, no errors occurred. We have verified that all the permissions are correct for the users. I hope this helps.
... View more
10-06-2015
06:13 AM
|
0
|
4
|
607
|
POST
|
Our company creates an app that allows the client to store the runtime content on their server for multiple users to access at the same time. However, when first providing the clients with the data, we get random errors at different sites. We generally use four layers (four geodatabase files) - at every site one or more of these layers will give the error Database Lock Error Protocol: It's never the same layers and all users on every server have full control (read/write access); however, after about 1 - 2 days of deployment, the errors disappear altogether, never to return. We thought it was because multiple users were accessing the data at the same time, but if that's the case, why would only one or two layers show this error and not all 4 four? Why would it then disappear with no subsequent signs of similar errors? We want to be able to identify what causes this and haven't been able to pinpoint it. Does anyone have any idea what could be causing this?
... View more
10-05-2015
01:40 PM
|
0
|
6
|
2889
|
POST
|
Dan, Thanks for the response. From what little information I can gather from their infrastructure, they seem to be very concerned with maintaining coherent geodata and workflow management. Since it looks as more of workflow management system then any actual geodata creation / manipulation, I didn't think it would have any issues or limitations. I have not encountered any issues or limitations, but that's only because I haven't received any geodata from them (yet) that would be in any way associated with this extension. I just wanted to see if anyone within the community has used these two products together (Runtime Engine and Production Mapping extension) and ran into any issues themselves in order to get the most accurate information to answer my client's query. Thanks so much for the help!
... View more
08-11-2015
01:18 PM
|
0
|
0
|
342
|
POST
|
I have a client who will be acquiring the Production Mapping extension for use with their agency. I currently receive data from them in the form of geodatabases and / or shapefiles in order to help generate mapping for them. If they get this extension, are there any issues or limitations that may arise due to some of the functionality of the runtime engine for .net vs simply storing it in a geodatabase?
... View more
08-05-2015
02:31 PM
|
0
|
2
|
2043
|
POST
|
I am trying to share a streets layer that utilizes a definition query of only the streets that have the word "AVE" in their name. However, when I share the layer as runtime content, it shares all the streets and not just the ones I identified using the SQL statement. Are definition queries something that do not transfer in the creation of the runtime content?
... View more
08-05-2015
01:37 PM
|
0
|
1
|
2850
|
POST
|
Huy, Thanks so much for the help! I saw this feature but the concept didn't click until you mentioned it. Thanks again!
... View more
04-15-2015
06:32 AM
|
0
|
0
|
355
|
POST
|
I am trying to use two different fields to label the points in my Structures runtime layer: STNUM (street number) and SECONDARYL (I assume is secondary location or label). Here are what my labels look like: This is my SQL Expression: And here is my error code when I analyze the map document for runtime content generation: Any ideas why this happens and what I can do to circumvent it (besides just creating a new field)?
... View more
04-01-2015
02:04 PM
|
0
|
1
|
2928
|
POST
|
Christos, I have a question that may or may not be related to your issue. The basic point of that question I posed is that I have to go through the process of creating runtime content sometimes 4 or 5 times in order for all the layer information to show up within the runtime environment we created. The fact that we programmed the environment may have something to do with it, but the issue I am discussing is intermittent - it doesn't happen all the time. It's somewhat similar to your issue. I hope we get some sort of response or perhaps you have come to a conclusion concerning this? Thanks! Jeremy Mullins
... View more
03-25-2015
07:34 AM
|
0
|
0
|
510
|
POST
|
I am using ArcMap 10.3.0.4322 for Desktop with a Basic License. When I share my layers as runtime content and then try to view them in an ArcGIS Runtime Environment (using Runtime SDK for .NET), the layers sometimes get cut off. It doesn't matter the type or the size of the file (polygonal zones for county or streets layer for the entire state), it still takes multiple times of attempting to share the layers as runtime content before it actually recreates the entire layer. I thought it was because I wasn't zoomed out to the map's full extent, however, after testing that hypothesis it turned out to be false. Any ideas as to what the issue might be?
... View more
03-13-2015
02:32 PM
|
0
|
2
|
3755
|
POST
|
My name is Jeremy - I am extremely new to ArcGIS Runtime SDK for .NET, so I apologize for my obvious lack of knowledge, but I had a quick question. The company I work for is using this SDK and has created a runtime environment for the maps we are going to be using for our clients. However, I am confused about something, and I just want to make sure I understand it. When I create a map in ArcMap and set my appropriate visible extents, symbology, labels, etc, not all of the settings choices I made make it into the runtime content. I assume this is because within the runtime environment these settings need to be redone because it's a, well, different environment. My first most basic question is this: what can/should I do in ArcMap as far as aesthetics before I create the map as runtime content - this way we know what we can do in ArcGIS for Desktop application and what we should be programming into our new runtime environment.
... View more
02-27-2015
12:28 PM
|
0
|
0
|
3667
|
POST
|
Thomas, I want to thank you again for all your help. This worked perfectly. However, I wasn't able to get it to output to a feature service, which was my final goal. I unfortunately didn't have enough time to troubleshoot the problem more. Thanks again for all your help.
... View more
11-20-2014
07:53 PM
|
0
|
0
|
526
|
Title | Kudos | Posted |
---|---|---|
3 | 05-27-2019 10:50 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|