Giter Site home page Giter Site logo

Comments (4)

nanaeaubry avatar nanaeaubry commented on June 3, 2024 1

@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.

nanaeaubry avatar nanaeaubry commented on June 3, 2024 1

@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.

nanaeaubry avatar nanaeaubry commented on June 3, 2024

@Clubdebambos

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.

Clubdebambos avatar Clubdebambos commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.