POST
|
I recently ran into this issue as well and found your question here. I was not able to adjust the "syncEnabled" field of a hosted Feature Layer through Python, but manually it works fine. Following the documentation as described on https://developers.arcgis.com/rest/services-reference/online/update-definition-feature-service-.htm to adjust the "syncEnabled" setting would not work: Adding the JSON code {"syncEnabled": true} to the "updateDefinition" parameter gives me the response "Field 'syncEnabled' cannot be updated". The solution Fortunately, I figured out how this can be done by checking the actual request being made while changing this setting manually, through the Developer Tools Interface (Press F12). Here I found out that the "updateDefinition" field of the request contained the JSON code: {"capabilities":"Query,Sync"} Using this value instead does update this setting on the hosted Feature Layer.
... View more
2 weeks ago
|
0
|
0
|
44
|
IDEA
|
Currently, the gauge widget shows 'no data' whenever there are no features for the value with statistic sum. The gauge only appears if there is at least 1 feature that matches with the defined value in the gauge settings. It would be great if the gauge would still show the progress value, but at 0. For example: I have 10 features, all with the status not started. In the gauge I want to set the value as the sum of areas for the features that are completed. The maximum value is the sum of areas for all features. When there is no feature that has the status completed, the gauge shows 'no data', instead of showing a progress of 0 out of the total area. What I get: What I want: Note: For the statistic count, the gauge does show a progress of 0.
... View more
09-16-2022
07:38 AM
|
5
|
0
|
420
|
POST
|
Thank you Carl Albury for your reply. I have been looking into this issue a little bit deeper, and came to the conclusion that the amount of returned items always matched the expected outcome. It just inconsistently returned duplicate and missing items. My solution was to check for duplicate items in the returned list, and redo the entire search until I got a list without duplicates. So far this has done the job: def search_gis_layers(
gis_portal: Any,
query: str,
item_type: str,
max_items: int = 1000,
failures: int = 0,
) -> List[Any]:
"""Search layers in ArcGIS Online.
:param gis_portal: Connection to ArcGIS Online portal
:param query: the string to search for
:param item_type: item type to search for
:param max_items: the maximum numbers of items to return
:param failures: the number of incomplete requests
:return: list of items"""
item_search = gis_portal.content.search(
query, item_type=item_type, max_items=max_items
)
search_result = []
mission_failed = False
for item in item_search:
if item not in search_result:
search_result.append(item)
else:
logging.error(f"{item} is already present in list search_result")
mission_failed = True
failures += 1
break
if mission_failed and failures < 10:
return search_gis_layers(gis_portal, query, item_type, max_items, failures)
elif mission_failed and failures >= 10:
sys.exit(
"Mission failed. Tried 10 times, the returned layer list remained incomplete."
)
else:
return search_result
... View more
11-10-2020
02:40 AM
|
0
|
0
|
637
|
POST
|
I got the exact same issue. Carl Albury did you find a solution in the meantime, since it is a while that you posted this question?
... View more
10-22-2020
09:14 AM
|
0
|
2
|
637
|
IDEA
|
For hosted View Layers it is possible to set a View Definition, to define what fields or features are available in the view. I would like to be able to set the View Definition for a Related Table in a hosted View Layer as well. See: To control what data users see, the owner of a hosted feature layer view, or an administrator, can define what fields or features are available in the view. You can also limit the hosted feature layer view to a specific area by defining a spatial extent. These definitions are saved with the hosted feature layer view and allow you more control over what content people see. Retrieved from: https://doc.arcgis.com/en/arcgis-online/manage-data/set-view-definition.htm#:~:text=Click%20the%20Visualization%20tab.&text=and%20click%20Set%20View%20Definition,make%20available%20in%20the%20view.
... View more
08-18-2020
07:33 AM
|
2
|
1
|
1057
|
POST
|
Do you know if it is also possible to edit the json file in order to disable the time extent at all? So you can use the slider only for displaying data that falls on a single instance in time. For example as described here: TimeSlider | ArcGIS API for JavaScript 4.16
... View more
07-31-2020
03:10 AM
|
0
|
1
|
1587
|
IDEA
|
Is there any status update for this idea? Can we expect it to be processed in the near future (read: this year)?
... View more
07-22-2020
06:51 AM
|
2
|
0
|
2004
|
IDEA
|
The Situation Awareness widget in the Web AppBuilder in ArcGIS Online has the option to create a report with a summary of the analysis in the form of a table with the resulting features. If this particular Feature Layer does have a Relationship Class with a Related Table, I would like to see the Related Records on the report as well, in combination with the original features.
... View more
07-21-2020
05:23 AM
|
1
|
0
|
413
|
POST
|
I recently noticed the same thing, still not knowing what might be the reason for this to happen.
... View more
07-17-2020
06:46 AM
|
0
|
0
|
1333
|
IDEA
|
At our project we would like to use Survey123 to be able to request an approval to a certain pre-defined work area. For this it would be nice to have a reference layer with all work areas defined as polygons, of which one (or more) can be selected in the form. So instead of creating a new feature (point, line or polygon), I would like to select an existing one. Technically, this might make a copy of the original polygon and paste it in a second Feature Layer with selected data from the filled-in form as attributes of the new polygon.
... View more
05-14-2020
04:53 AM
|
13
|
6
|
2138
|
POST
|
Thank you Bruce. With the Data Interoperability extension, I ended up with multiple errors, so clearly I am doing something wrong there. Below I have an example of my json file with a single feature that has a DateStart and DateEnd in its properties, both in isoformat(). Looking forward to your solution. {
"type":"FeatureCollection",
"features":[
{
"type":"Feature",
"geometry":{
"type":"LineString",
"coordinates":[
[
4.882968545975606,
52.29634137093137
],
[
4.881542853722186,
52.29658708716925
],
[
4.88014973322635,
52.29671842967587
],
[
4.878669981113818,
52.296904955183386
],
[
4.877233024191733,
52.29709001994841
],
[
4.8757635706510625,
52.297295383098664
],
[
4.874432216343373,
52.29754608638658
],
[
4.873038640810869,
52.29785678574871
],
[
4.871599150723431,
52.29810638483495
],
[
4.870205615404385,
52.29839148061371
],
[
4.868889872763475,
52.29869834599177
],
[
4.867450845414482,
52.299034404814044
],
[
4.8661522461864095,
52.29933752226991
],
[
4.864746241974371,
52.29966685398816
],
[
4.8634325188495895,
52.29997504285232
],
[
4.862099801977044,
52.30028610780678
]
]
},
"properties":{
"No.":1.0,
"Jaar":2020.0,
"WK":3.0,
"Dag":"Wednesday",
"Discipline":"Delivery",
"Status":"Uitgevoerd",
"Maatregelno.":547414.0,
"Fase":"nan",
"Omschrijving werkzaamheden":"Bomen zagen",
"Vakno.":"C",
"Weg":"A9",
"Kant":"HRR",
"Werkruimte":"26,100 - 27,650",
"CROW":"210.0",
"Tekst-wagen":1.0,
"Aantal rijstroken":3.0,
"Rijstroken":"R3, R4, VL",
"DateStart":"2020-01-15T10:00:00",
"DateEnd":"2020-01-15T13:00:00",
"VS":"nan",
"Bijzonderheden":"Incl. 1x TW t.b.v. rijstrookindeling"
}
}
]
}
... View more
03-05-2020
01:35 AM
|
0
|
1
|
2550
|
POST
|
Good day, Via the JSON To Features tool in ArcGIS Pro (version 2.5.0), I can import a .JSON file. Its format is based on the GeoJSON format described here: https://geojson.org/geojson-spec.html Importing works correctly for most part, but ArcGIS Pro does not recognizes a datetime format. I tried it as a datetime format and also with timestamp() or isoformat(). Neither of these options result in the correct way. The datetime format gives an error when importing the file, the other two options result in a Field Type of Long Integer or Double instead of Date, when you check the Data Type of the particular field in the Attribute Table. Is there a way to add a date in the properties of a feature in a JSON, and import it in ArcGIS Pro with recognizing that property as a Date Type? Is it also possible to do this directly into ArcGIS Online? Thank you!
... View more
03-04-2020
07:48 AM
|
0
|
3
|
2836
|
Title | Kudos | Posted |
---|---|---|
5 | 09-16-2022 07:38 AM | |
2 | 08-18-2020 07:33 AM | |
2 | 07-22-2020 06:51 AM | |
13 | 05-14-2020 04:53 AM | |
1 | 07-21-2020 05:23 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|