Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 114
Registered: ‎10-13-2015
Accepted Solution

SELECTED FEATURES VECTOR GEOPACKAGE LAYER

Hi Lukasz,

 

We need to selected multiple features of a vector geopackage layer.

We tried with the following code but we received an error.

We things that our problem is the featureClassId of geopackage layer.

Can you provide an example?

How knows the featureClassId of a geopackage layer?

 

var successCallback = function (result) {
    console.log("Feature selected");
};

var errorCallback = function (error) {
    console.log("Error while selecting feature: " + error.message);
};

var config = {
    featureClassId: "canonadaXEDatasetId",
    featureIds: ["6698"]  //id of the existing Zombie feature
}

gsp.selectedFeatures.add(config, successCallback, errorCallback);

Best Regards.

Marti.

Technical Evangelist
Posts: 182
Registered: ‎07-30-2015

Re: SELECTED FEATURES VECTOR GEOPACKAGE LAYER

Hi,

 

please send me the error message and the configuraiton file.

 

 

Frequent Contributor
Posts: 114
Registered: ‎10-13-2015

Re: SELECTED FEATURES VECTOR GEOPACKAGE LAYER

The sintaxis of featureClassId by Vector Geopackage layer is:  {service connectionString}tableName

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.