Codota Logo
MemoryDataStoreWithProvidedFIDSupport
Code IndexAdd Codota to your IDE (free)

How to use
MemoryDataStoreWithProvidedFIDSupport
in
org.locationtech.geogig.test

Best Java code snippets using org.locationtech.geogig.test.MemoryDataStoreWithProvidedFIDSupport (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: locationtech/geogig

public static MemoryDataStore newMemoryDataStore() {
  return new MemoryDataStoreWithProvidedFIDSupport();
}
origin: org.locationtech.geogig/geogig-core

public static MemoryDataStore newMemoryDataStore() {
  return new MemoryDataStoreWithProvidedFIDSupport();
}
origin: org.locationtech.geogig/geogig-geotools

public void exportToFile(File file, String tableName, ImmutableList<Feature> features)
    throws Exception {
  MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport();
  memStore.addFeatures(features);
  DataStore gpkgStore = createDataStore(file);
  try {
    export(memStore.getFeatureSource(tableName), gpkgStore);
  } finally {
    gpkgStore.dispose();
  }
}
origin: locationtech/geogig

public void exportToFile(File file, String tableName, ImmutableList<Feature> features)
    throws Exception {
  MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport();
  memStore.addFeatures(features);
  DataStore gpkgStore = createDataStore(file);
  try {
    export(memStore.getFeatureSource(tableName), gpkgStore);
  } finally {
    gpkgStore.dispose();
  }
}
origin: locationtech/geogig

public File createDefaultTestData() throws Exception {
  File file = createEmptyDatabase();
  MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport();
  TestFeatures.setupFeatures();
  memStore.addFeatures(ImmutableList.of(points1, points2, points3));
  memStore.addFeatures(ImmutableList.of(lines1, lines2, lines3));
  DataStore gpkgStore = createDataStore(file);
  try {
    export(memStore.getFeatureSource(pointsType.getName().getLocalPart()), gpkgStore);
    export(memStore.getFeatureSource(linesType.getName().getLocalPart()), gpkgStore);
  } finally {
    gpkgStore.dispose();
  }
  return file;
}
origin: org.locationtech.geogig/geogig-geotools

public File createDefaultTestData() throws Exception {
  File file = createEmptyDatabase();
  MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport();
  TestFeatures.setupFeatures();
  memStore.addFeatures(ImmutableList.of(points1, points2, points3));
  memStore.addFeatures(ImmutableList.of(lines1, lines2, lines3));
  DataStore gpkgStore = createDataStore(file);
  try {
    export(memStore.getFeatureSource(pointsType.getName().getLocalPart()), gpkgStore);
    export(memStore.getFeatureSource(linesType.getName().getLocalPart()), gpkgStore);
  } finally {
    gpkgStore.dispose();
  }
  return file;
}
org.locationtech.geogig.testMemoryDataStoreWithProvidedFIDSupport

Javadoc

GeoTools' MemoryDataStore does not support Hints.USE_PROVIDED_FID at the time of writing, hence this subclass decorates it to support it.

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JButton (javax.swing)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now