Comments (4)
@Clubdebambos Interesting, I will reach out to the Online team and see what is happening. The REST documentation implies that this property still exists: https://developers.arcgis.com/rest/services-reference/enterprise/query-domains-feature-service-.htm
Not sure why it would not show up when adding a domain.
I will keep you updated on what I find
from arcgis-python-api.
@Clubdebambos
I got a reply from the team that implements this:
queryDomains
is not implemented by all feature service implementations.
At this time only arcobjects FS supports it.
Users do not set supports properties - they are indicators to clients of when something is supported - when a service adds support it with advertise with a supports property. That way clients that look for the support property will just start to work with the new feature is supported. A false for a supports property (or not listing it which means false) indicates it is not supported
So it is only for arcobjects FS and hosted FS in enterprise and online will not support it.
We will better document this in the API as well but hope this clears it up for you
from arcgis-python-api.
Can you check in the FeatureLayerCollection if supportsQueryDomains
is in the properties?
And if so, is it set to True?
If this is not the case then an empty list is returned
from arcgis-python-api.
Thanks for the reply @nanaeaubry ,
There is no property called supportsQueryDomains and when I attempt to add one, although I get an indication that the addition was successful, when I access the flc properties, the property does not exist. Why wouldnt this property be automatically added when you add a domain?
from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection
"""Access AGOL"""
agol = GIS("home")
item = agol.content.get("051cfbc792854a44b4502000ba839f30")
add_dict = {
"supportsQueryDomains": True
}
flc = FeatureLayerCollection.fromitem(item)
"""Update the JSON definition"""
status = flc.manager.add_to_definition(update_dict)
print(status)
from arcgis import GIS
from arcgis.features import FeatureLayerCollection
## connect to agol
agol = GIS("home")
## get feature service as an item object
item = agol.content.get("051cfbc792854a44b4502000ba839f30")
## create a flc object from item object
flc = FeatureLayerCollection(item.url, agol)
## print properties
print(flc.properties)`
from arcgis-python-api.
Related Issues (20)
- WebMap object basemap_title() getter does not do as it says in the documentation for API version 2.2.0.1 HOT 1
- JSON Format Mismatch for NER data export from Doccano Editor vs. ArcGIS Format
- Issues with datetime imports; arcgis python API is overwriting the import causing a runtime exception HOT 1
- GeoAccessor.compare incorrectly shows every row as modified HOT 3
- GeoSeriesAccessor.equals returns None in version 2.2 HOT 3
- edit_features does not set NaT dates to null in version 2.2 HOT 1
- edit_features sets all dates to the same value in version 2.2 HOT 5
- InsecureRequestWarning when initializing GIS with client_id and client_secret HOT 1
- Need help with Web Maps HOT 2
- Deep Learning essentials are failing to install in Google colab
- clone_items throws "IndexError: list index out of range" when there are nested repeats in the featureservice
- Overwriting Hosted Table in Online Capabilities HOT 4
- Append job gets stuck in pending state indefinitely HOT 2
- Python Bypasses User Credit Allotment in AGOL HOT 2
- Table query fails with "TypeError: Casting to unit-less dtype 'datetime64' is not supported. Pass e.g. 'datetime64[ns]' instead." HOT 6
- clone_items() with item_mapping parameter misses group layers in the web map HOT 1
- Item.share() is not working when the groups parameter is specified HOT 1
- generate_raster fails in local and ArcGIS Online notebooks HOT 3
- Installing into Azure Databricks. Could you document recommended arcgis & databricks runtime versions and prerequisites?
- GeoAccessor.from_table results in empty array HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcgis-python-api.