Examples of BoundContainer


Examples of org.openstreetmap.osmosis.core.container.v0_6.BoundContainer

    @Override
    public void run() {
      try {
        sink.initialize(Collections.<String, Object>emptyMap());
        if (publishBound) {
          sink.process(new BoundContainer(bound));
        }
        sink.process(new NodeContainer(createNode()));
        sink.complete();
      } finally {
        sink.release();
View Full Code Here

Examples of org.openstreetmap.osmosis.core.container.v0_6.BoundContainer

  @Override
  public void complete() {
    objects.complete();

    if (nodesSeen) {
      sink.process(new BoundContainer(new Bound(right, left, top, bottom, this.origin)));
    }

    ReleasableIterator<EntityContainer> iter = null;

    try {
View Full Code Here

Examples of org.openstreetmap.osmosis.core.container.v0_6.BoundContainer

          new SchemaVersionValidator(loginCredentials, preferences)
                  .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
         
          entityDao = new AllEntityDao(dbCtx.getJdbcTemplate());
         
          sink.process(new BoundContainer(new Bound("Osmosis " + OsmosisConstants.VERSION)));
          reader = entityDao.getCurrent();
          try {
            while (reader.hasNext()) {
              sink.process(reader.next());
            }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.container.v0_6.BoundContainer

          new SchemaVersionValidator(loginCredentials, preferences)
                  .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);
         
          entityDao = new AllEntityDao(dbCtx.getJdbcTemplate());

          sink.process(new BoundContainer(new Bound("Osmosis " + OsmosisConstants.VERSION)));
          reader = new EntitySnapshotReader(entityDao.getHistory(), snapshotInstant);
          try {
            while (reader.hasNext()) {
              sink.process(reader.next());
            }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.container.v0_6.BoundContainer

  /**
   * {@inheritDoc}
   */
  @Override
  public void end() {
    getSink().process(new BoundContainer(bound));
    bound = null;
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.container.v0_6.BoundContainer

            SAXParser parser = createParser();
            InputStream inputStream =
              getInputStream(myBaseUrl + "/map?bbox=" + myLeft + "," + myBottom + "," + myRight + "," + myTop);

            // First send the Bound down the pipeline
            mySink.process(new BoundContainer(new Bound(myRight, myLeft, myTop, myBottom, myBaseUrl)));

            try {
                parser.parse(inputStream, new OsmHandler(mySink, true));
            } finally {
                inputStream.close();
View Full Code Here

Examples of org.openstreetmap.osmosis.core.container.v0_6.BoundContainer

            double leftf = block.getBbox().getLeft() * multiplier;
            double topf = block.getBbox().getTop() * multiplier;
            double bottomf = block.getBbox().getBottom() * multiplier;

            Bound bounds = new Bound(rightf, leftf, topf, bottomf, source);
            sink.process(new BoundContainer(bounds));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.