Package org.openstreetmap.osmosis.pgsimple.v0_6

Examples of org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlDumpWriter


        populateBbox = capabilityChecker.isWayBboxSupported();
        populateLinestring = capabilityChecker.isWayLinestringSupported();       

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


        populateLinestring = capabilityChecker.isWayLinestringSupported();       

        copyFilesetBuilder =
          new CopyFilesetBuilder(copyFileset, populateBbox, populateLinestring, storeType);
       
        copyFilesetLoader = new CopyFilesetLoader(loginCredentials, preferences, copyFileset);
       
        LOG.fine("Processing input data, building geometries and creating database load files.");
       
      } finally {
        dbCtx.release();
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();       

        copyFilesetBuilder =
          new CopyFilesetBuilder(copyFileset, populateBbox, populateLinestring, storeType);
       
        copyFilesetLoader = new CopyFilesetLoader(loginCredentials, preferences, copyFileset);
View Full Code Here

   *            The node location storage type used by the geometry builders.
   */
  public PostgreSqlDumpWriter(
      File filePrefix, boolean enableBboxBuilder,
      boolean enableLinestringBuilder, NodeLocationStoreType storeType) {
    DirectoryCopyFileset copyFileset;
   
    copyFileset = new DirectoryCopyFileset(filePrefix);
   
    copyFilesetBuilder =
      new CopyFilesetBuilder(copyFileset, enableBboxBuilder, enableLinestringBuilder, storeType);
  }
View Full Code Here

   
    this.enableBboxBuilder = enableBboxBuilder;
    this.enableLinestringBuilder = enableLinestringBuilder;
   
    schemaVersionValidator = new SchemaVersionValidator(dbCtx, preferences);
    indexManager = new IndexManager(dbCtx, !enableBboxBuilder, !enableLinestringBuilder);
   
    nodeBuffer = new ArrayList<Node>();
    nodeTagBuffer = new ArrayList<DbFeature<Tag>>();
    wayBuffer = new ArrayList<Way>();
    wayTagBuffer = new ArrayList<DbFeature<Tag>>();
View Full Code Here

    actionDao = new ActionDao(dbCtx, false);
   
    userSet = new HashSet<Integer>();
    userDao = new UserDao(dbCtx, actionDao);
   
    nodeBuilder = new NodeMapper();
    wayBuilder = new WayMapper(enableBboxBuilder, enableLinestringBuilder);
    relationBuilder = new RelationMapper();
    nodeTagBuilder = new TagMapper(nodeBuilder.getEntityName());
    wayTagBuilder = new TagMapper(wayBuilder.getEntityName());
    relationTagBuilder = new TagMapper(relationBuilder.getEntityName());
View Full Code Here

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

    userSet = new HashSet<Integer>();
    userDao = new UserDao(dbCtx, actionDao);
   
    nodeBuilder = new NodeMapper();
    wayBuilder = new WayMapper(enableBboxBuilder, enableLinestringBuilder);
    relationBuilder = new RelationMapper();
    nodeTagBuilder = new TagMapper(nodeBuilder.getEntityName());
    wayTagBuilder = new TagMapper(wayBuilder.getEntityName());
    relationTagBuilder = new TagMapper(relationBuilder.getEntityName());
    wayNodeBuilder = new WayNodeMapper();
    relationMemberBuilder = new RelationMemberMapper();
View Full Code Here

    relationBuilder = new RelationMapper();
    nodeTagBuilder = new TagMapper(nodeBuilder.getEntityName());
    wayTagBuilder = new TagMapper(wayBuilder.getEntityName());
    relationTagBuilder = new TagMapper(relationBuilder.getEntityName());
    wayNodeBuilder = new WayNodeMapper();
    relationMemberBuilder = new RelationMemberMapper();
    wayGeometryBuilder = new WayGeometryBuilder(storeType);
   
    statementContainer = new ReleasableStatementContainer();
   
    initialized = false;
View Full Code Here

    userDao = new UserDao(dbCtx, actionDao);
   
    nodeBuilder = new NodeMapper();
    wayBuilder = new WayMapper(enableBboxBuilder, enableLinestringBuilder);
    relationBuilder = new RelationMapper();
    nodeTagBuilder = new TagMapper(nodeBuilder.getEntityName());
    wayTagBuilder = new TagMapper(wayBuilder.getEntityName());
    relationTagBuilder = new TagMapper(relationBuilder.getEntityName());
    wayNodeBuilder = new WayNodeMapper();
    relationMemberBuilder = new RelationMemberMapper();
    wayGeometryBuilder = new WayGeometryBuilder(storeType);
   
    statementContainer = new ReleasableStatementContainer();
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.pgsimple.v0_6.PostgreSqlDumpWriter

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.