public boolean isUseProvidedFIDSupported() { return delegate.isUseProvidedFIDSupported(); }
public boolean isUseProvidedFIDSupported() { return queryCapabilities.isUseProvidedFIDSupported(); } };
@Override public boolean isUseProvidedFIDSupported() { return source.getQueryCapabilities().isUseProvidedFIDSupported(); }
@Override public boolean isUseProvidedFIDSupported() { return capabilities.isUseProvidedFIDSupported(); } };
if (getQueryCapabilities().isUseProvidedFIDSupported() && useExisting) { ((FeatureIdImpl) toWrite.getIdentifier()).setID(feature.getID());
@Override public boolean isUseProvidedFIDSupported() { return capabilities.isUseProvidedFIDSupported(); } };
@Override public boolean isUseProvidedFIDSupported() { return capabilities.isUseProvidedFIDSupported(); } };
@Override public boolean isUseProvidedFIDSupported() { return capabilities.isUseProvidedFIDSupported(); } };
public boolean isUseProvidedFIDSupported() { return queryCapabilities.isUseProvidedFIDSupported(); } };
@Override public boolean isUseProvidedFIDSupported() { return source.getQueryCapabilities().isUseProvidedFIDSupported(); }
public void testAddFeaturesUseProvidedFid() throws IOException { assertTrue(featureStore.getQueryCapabilities().isUseProvidedFIDSupported());
if(getQueryCapabilities().isUseProvidedFIDSupported() && useExisting) { ((FeatureIdImpl) newFeature.getIdentifier()).setID(feature.getID());
if(getQueryCapabilities().isUseProvidedFIDSupported() && useExisting) { ((FeatureIdImpl) toWrite.getIdentifier()).setID(feature.getID());
/** * Adds Points/4 feature to the geopackage file referred to by the provided variable name. * * @param fileVariableName the variable which stores the location of the geopackage file. */ @When("^I add Points/4 to the geopackage file (@[^\"]*)$") public void gpkg_AddFeature(final String fileVariableName) throws Throwable { GeoPackageWebAPITestSupport support = new GeoPackageWebAPITestSupport(); File file = new File(context.getVariable(fileVariableName)); DataStore gpkgStore = support.createDataStore(file); Transaction gttx = new DefaultTransaction(); try { SimpleFeatureStore store = (SimpleFeatureStore) gpkgStore.getFeatureSource("Points"); Preconditions.checkState(store.getQueryCapabilities().isUseProvidedFIDSupported()); store.setTransaction(gttx); store.addFeatures(DataUtilities.collection(TestData.point4)); gttx.commit(); } finally { gttx.close(); gpkgStore.dispose(); } }
/** * Modifies all the Point features in the geopackage file referred to by the provided variable * name. * * @param fileVariableName the variable which stores the location of the geopackage file. */ @When("^I modify the Point features in the geopackage file (@[^\"]*)$") public void gpkg_ModifyFeature(final String fileVariableName) throws Throwable { GeoPackageWebAPITestSupport support = new GeoPackageWebAPITestSupport(); File file = new File(context.getVariable(fileVariableName)); DataStore gpkgStore = support.createDataStore(file); Transaction gttx = new DefaultTransaction(); try { SimpleFeatureStore store = (SimpleFeatureStore) gpkgStore.getFeatureSource("Points"); Preconditions.checkState(store.getQueryCapabilities().isUseProvidedFIDSupported()); store.setTransaction(gttx); store.modifyFeatures("ip", TestData.point1_modified.getAttribute("ip"), Filter.INCLUDE); gttx.commit(); } finally { gttx.close(); gpkgStore.dispose(); } }
try { SimpleFeatureStore store = (SimpleFeatureStore) gpkgStore.getFeatureSource("Points"); Preconditions.checkState(store.getQueryCapabilities().isUseProvidedFIDSupported()); store.setTransaction(gttx); store.modifyFeatures("ip", ((SimpleFeature) points1_modified).getAttribute("ip"),
try { SimpleFeatureStore store = (SimpleFeatureStore) gpkgStore.getFeatureSource("Points"); Preconditions.checkState(store.getQueryCapabilities().isUseProvidedFIDSupported()); store.setTransaction(gttx); store.modifyFeatures("ip", ((SimpleFeature) points1_modified).getAttribute("ip"),
try { SimpleFeatureStore store = (SimpleFeatureStore) gpkgStore.getFeatureSource("Points"); Preconditions.checkState(store.getQueryCapabilities().isUseProvidedFIDSupported()); store.setTransaction(gttx); store.modifyFeatures("ip", ((SimpleFeature) points1_modified).getAttribute("ip"),
SimpleFeatureStore store; store = (SimpleFeatureStore) gpkg.getFeatureSource(source.getName().getLocalPart()); Preconditions.checkState(store.getQueryCapabilities().isUseProvidedFIDSupported()); store.setTransaction(gttx); SimpleFeatureCollection features = source.getFeatures();
SimpleFeatureStore store; store = (SimpleFeatureStore) gpkg.getFeatureSource(source.getName().getLocalPart()); Preconditions.checkState(store.getQueryCapabilities().isUseProvidedFIDSupported()); store.setTransaction(gttx); SimpleFeatureCollection features = source.getFeatures();