Package org.openstreetmap.osmosis.pgsnapshot.v0_6.impl

Examples of org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.PostgreSqlDatasetContext


      }

      copyFilesetBuilder =
        new CopyFilesetBuilder(copyFileset, populateBbox, populateLinestring, storeType, keepInvalidWays);
     
      copyFilesetLoader = new CopyFilesetLoader(loginCredentials, preferences, copyFileset);
     
      LOG.fine("Processing input data, building geometries and creating database load files.");
     
      initialized = true;
    }
View Full Code Here


 
 
  private void initialize() {
    if (!initialized) {
      DatabaseContext dbCtx;
      DatabaseCapabilityChecker capabilityChecker;
     
      LOG.fine("Initializing the database and temporary processing files.");
     
      dbCtx = new DatabaseContext(loginCredentials);
      try {
        capabilityChecker = new DatabaseCapabilityChecker(dbCtx);

        populateBbox = capabilityChecker.isWayBboxSupported();
        populateLinestring = capabilityChecker.isWayLinestringSupported();
      } finally {
        dbCtx.release();
      }

      copyFilesetBuilder =
View Full Code Here

   */
  public PostgreSqlDumpWriter(
      File filePrefix, boolean enableBboxBuilder,
      boolean enableLinestringBuilder, NodeLocationStoreType storeType,
      boolean keepInvalidWays) {
    DirectoryCopyFileset copyFileset;
   
    copyFileset = new DirectoryCopyFileset(filePrefix);
   
    copyFilesetBuilder =
      new CopyFilesetBuilder(copyFileset, enableBboxBuilder, enableLinestringBuilder, storeType, keepInvalidWays);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  public DatasetContext createReader() {
    return new PostgreSqlDatasetContext(loginCredentials, preferences);
  }
View Full Code Here

    this.loginCredentials = loginCredentials;
    this.preferences = preferences;
    this.storeType = storeType;
    this.keepInvalidWays = keepInvalidWays;
   
    copyFileset = new TempCopyFileset();
  }
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.pgsnapshot.v0_6.impl.PostgreSqlDatasetContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.