POST
|
I found this thread very helpful, I just needed to create a hosted view that had a definition query, very simple and just a few lines of code. make sure you have the feature layer collection referenced <item_id> is the item number of the hosted feature layer you want to create the view from. from arcgis.gis import GIS from arcgis.features import FeatureSet, Feature, FeatureLayer,FeatureCollection,FeatureLayerCollection username = <uname> password = <pwd> gis = GIS(<agol_url>, username, password) expItem = gis.content.get(<item_id>) flc = FeatureLayerCollection.fromitem(expItem) theVw = flc.manager.create_view(name="<layer_name>",capabilities='Query',view_layers=[flc.layers[0]]) theVw.layers[0].manager.update_definition({'viewDefinitionQuery': 'placename is not null'}) I hope people find this simple example helpful -bert
... View more
05-07-2019
08:36 AM
|
1
|
0
|
1081
|
POST
|
I am writing code to update attributes of ArcGIS Online feature layers using local data, arcgis online data or arcgis server data. I have been mostly successful using either edit_feature with updates (very slow) or calculate. Basically, I'm adding/moving polygon attributes to points. Calculate is much faster, but when processing a lot of features (looping) it tends to time out. Also, calculate you have to be aware of special characters that sql doesn't like and escape them. I'm just wondering if anyone has different approaches to this. I have started looking into join_features, but haven't written anything yet. Thanks! -bert
... View more
03-18-2019
01:25 PM
|
0
|
0
|
324
|
POST
|
Playing around with this code in Jupyter Notebook, if I use the layer number it works, theURL = "https://jcgis.jacksongov.org/arcgis/rest/services/ElectionAdministration/ElectedOfficials/MapServer/0" theURL = theURL[:-2] mil = MapImageLayer(theURL) findRes = mil.find("z",1,return_geometry=True) Oddly, if I use zero for the layer number, it errors, saying missing 'layers' for find operation. But it works if I use the word "top". The API doc says there are only 3 options for this parameter and that it is an optional parameter, both are not true! optional string. The layers to perform the identify operation on. There are three ways to specify which layers to identify on: top: Only the top-most layer at the specified location. visible: All visible layers at the specified location. all: All layers at the specified location.
... View more
03-15-2019
11:44 AM
|
0
|
0
|
401
|
POST
|
I am trying top use the MapImageLayer find function and it will only return data for the top layer. I have changed the layers parameter to "all", but still just get results for the top layer. Any help is welcome. -bert here's the code I'm using. from arcgis.gis import GIS from arcgis.features import FeatureSet, Feature, FeatureLayer, FeatureLayerCollection from arcgis.mapping import MapImageLayer theURL = "https://jcgis.jacksongov.org/arcgis/rest/services/ElectionAdministration/ElectedOfficials/MapServer/0" theURL = theURL[:-2] mil = MapImageLayer(theURL) findRes = mil.find("Cleaver","all",return_geometry=True) print(findRes) for keyMil, valueMil in findRes.items(): print(keyMil) ##print(valueMil[0]) print(len(valueMil))
... View more
03-15-2019
11:26 AM
|
0
|
1
|
554
|
POST
|
I started by adding the field to the feature service related table called RampInspection. The begin repeat section name is RampInspection, so I added RampInspection_count as an integer field. Then deleted that field from the related table and added the same field to the feature layer. Both times I got the errors detailed below. Then in the survey I added a hidden question with the name RampInspection_count, set the label to Ramp Inspection count and esri:fieldType to esriFieldTypeInteger. I tried adding the field to the repeat section, to the main feature layer section (group) and outside of both and I still am getting error messages when I save the excel doc. If the question is added to either the repeat section or main feature layer group the message reads: if the field is added outside of both the message reads:
... View more
01-07-2019
07:01 AM
|
0
|
7
|
1765
|
POST
|
Here is the Survey form, thanks for taking a look.
... View more
01-02-2019
11:33 AM
|
0
|
10
|
1765
|
POST
|
I have updated Connect to 3.1 and the issue still exists. I am publishing to AGOL. The only wrinkle in the Survey is that I have nested repeat for images. Here is the latest log file. Thanks for the help!
... View more
12-24-2018
06:03 AM
|
0
|
1
|
1765
|
POST
|
Can you limit a single user, email or device, from taking the same Survey more than once?
... View more
12-11-2018
10:58 AM
|
0
|
1
|
247
|
POST
|
I have a related table in my service and when I set the repeat count and try and republish, it says 1 field does not exist in the feature layer. I have a log file set up for survey 123 and can see it checking for a field called <my repeat table name>_count (RampInspection_count) and then saying it can't find it. I have attached the log file. FYI, even if I put zero in the count, I still get the error, only of it is blank can I republish the survey. Do I have to add this column to my feature layer? Thanks! -bert
... View more
12-03-2018
11:26 AM
|
1
|
16
|
3700
|
POST
|
This was answered in this post - https://community.esri.com/thread/211255-query-date-field-for-hosted-layer-in-arcgis-pro
... View more
11-19-2018
08:31 AM
|
0
|
0
|
158
|
POST
|
I had to CAST the date string to get it to work like this: DateSmoke BETWEEN CAST('2018-08-01' AS Date) AND CAST('2018-08-31' AS Date) or DateSmoke > CAST('2018-08-01' AS Date)
... View more
09-12-2018
01:39 PM
|
3
|
0
|
564
|
POST
|
that looks to be the issue. I do not see the ImageDescription in the EXIF information. thanks!
... View more
09-10-2018
01:31 PM
|
0
|
0
|
327
|
POST
|
I was just looking into that... I have tried other devices and could not even install the Spike app, so when I was able to install the app and use it without any issues, I figured it would work with Survey 123. I didn't know how strict the list was. I will have to find a device on the list and try it. Thanks!
... View more
09-10-2018
01:08 PM
|
0
|
2
|
327
|
POST
|
I just got my Spike device, created a feature service, created a form from it and configured the form for use with Spike. I had no problem getting a Distance measure using the spike question type. But, I have been unsuccessful measuring areas with the spike-full-measure question type. I tried using the sample survey form, let it create a service and then tried to measure areas, still no success. I am not getting any errors, no measurements are populated in the Survey 123 form. Is this a hardware/software/version issue? Survey 123 v 3.0.134 Spike v. 1.7.7(1004) Android v 6.0.1 Tablet: ASUS Model P00l Also, I noticed the sample survey form has some calculations using this syntax in the json pulldata - Spike.objects.1.dimensions.0 and some using this syntax Spike.objects[1].dimensions Do both of these work? Also in the blog post - https://community.esri.com/groups/survey123/blog/2018/03/06/using-spike-with-survey123-for-arcgis The table describing standard tags populated by Spike has ImageDescription as imageDescription. Sorry to throw all this out there. Thanks! -bert
... View more
09-10-2018
11:48 AM
|
0
|
4
|
408
|
POST
|
Sorry, I am not being clear enough. These are not existing attachments. The survey I am creating uses the inbox to "edit" existing data. I added some image questions to other parts of the survey and they operate correctly in the app. But I went in this morning and added two other image questions and they do not seem to work. I see the label in the app but not the camera or file icons.
... View more
08-28-2018
11:23 AM
|
0
|
1
|
267
|
Title | Kudos | Posted |
---|---|---|
1 | 05-07-2019 08:36 AM | |
1 | 12-03-2018 11:26 AM | |
1 | 04-05-2018 02:19 PM | |
3 | 09-12-2018 01:39 PM | |
1 | 08-06-2018 05:24 AM |
Online Status |
Offline
|
Date Last Visited |
11-13-2023
02:15 PM
|