Class OgcFeatureCollectionTable

    • Constructor Detail

      • OgcFeatureCollectionTable

        public OgcFeatureCollectionTable​(OgcFeatureCollectionInfo ogcFeatureCollectionInfo)
        Constructs an OGCFeatureCollectionTable from the given OgcFeatureCollectionInfo.
        Parameters:
        ogcFeatureCollectionInfo - an OGCFeatureCollectionTable
        Throws:
        java.lang.IllegalArgumentException - if ogcFeatureCollectionInfo is null
        Since:
        100.9.0
      • OgcFeatureCollectionTable

        public OgcFeatureCollectionTable​(java.lang.String url,
                                         java.lang.String collectionId)
        Constructs an OGCFeatureCollectionTable from the URL of the "OGC API - Features" service and the unique identifier for the collection.
        Parameters:
        url - the URL of the "OGC API - Features" service landing page that contains the feature collection
        collectionId - the unique identifier for the collection from the service
        Throws:
        java.lang.IllegalArgumentException - if url is null or empty
        java.lang.IllegalArgumentException - if collectionId is null or empty
        Since:
        100.9.0
    • Method Detail

      • populateFromServiceAsync

        public ListenableFuture<FeatureQueryResult> populateFromServiceAsync​(QueryParameters queryParameters,
                                                                             boolean clearCache,
                                                                             java.util.List<java.lang.String> outfields)
        Asynchronously populate the "OGC API - Features" feature collection table with the results of a query.

        Use the default (empty) QueryParameters to get all features from the service. Specifying null or an empty List for outfields will result in the default set of outfields being used. Spatial queries (those that specify geometries) must use the QueryParameters.SpatialRelationship.INTERSECTS spatial relationship.

        Parameters:
        queryParameters - parameters that define how features are returned from the service
        clearCache - set to true to clear existing table data before populating it with features returned from the service, false otherwise
        outfields - an optional list of names of attribute fields to include in the output result, null or an empty list to include the default outfields set
        Returns:
        a ListenableFuture that represents the query operation on the service. When the query is done the result returns a list of FeatureQueryResult objects.
        Throws:
        java.lang.IllegalArgumentException - if queryParameters is null
        Since:
        100.9.0
      • getUrl

        @Deprecated
        public java.lang.String getUrl()
        Deprecated.
        as of 100.13.0, use getUri()
        Gets the URL of the "OGC API - Features" service landing page.
        Returns:
        the service's landing page URL
        Since:
        100.9.0
      • onRequestRequired

        protected void onRequestRequired​(com.esri.arcgisruntime.internal.jni.CoreRequest request)
      • getCredential

        public Credential getCredential()
        Description copied from interface: RemoteResource
        Gets the Credential that is set on the network-enabled resource.

        Only applicable if the resource is secured.

        Specified by:
        getCredential in interface RemoteResource
        Returns:
        the Credential, or null if there is none
      • setCredential

        public void setCredential​(Credential credential)
        Description copied from interface: RemoteResource
        Sets a Credential to be used by the network-enabled resource in the event of an authentication challenge. The default credential is null.

        Only applicable if the resource is secured.

        Specified by:
        setCredential in interface RemoteResource
        Parameters:
        credential - the Credential to be used for authentication
      • getUri

        public java.lang.String getUri()
        Gets the URL of the "OGC API - Features" service landing page.
        Specified by:
        getUri in interface RemoteResource
        Returns:
        the service's landing page URL
        Since:
        100.13.0