Package org.neo4j.gis.spatial.rtree

Examples of org.neo4j.gis.spatial.rtree.Envelope.expandToInclude()


  private ReferencedEnvelope getEnvelope(Collection<Layer> layers) {
    CoordinateReferenceSystem crs = null;

    Envelope envelope = new Envelope();
    for (Layer layer : layers) {
      envelope.expandToInclude(layer.getIndex().getBoundingBox());
      if (crs == null) {
        crs = layer.getCoordinateReferenceSystem();
      }
    }
View Full Code Here


    GeometryEncoder geomEncoder = layer.getGeometryEncoder();
    for (Node node: layer.getDataset().getAllGeometryNodes()) {
      if (bbox == null) {
        bbox = geomEncoder.decodeEnvelope(node);
      } else {
        bbox.expandToInclude(geomEncoder.decodeEnvelope(node));
      }
    }
   
    return bbox;
  }
View Full Code Here

                Map<String, Object> nodeProps = getNodeProperties( currentNode );
                Envelope bbox = new Envelope();
                double[] location = new double[] {
                        (Double) nodeProps.get( "lon" ),
                        (Double) nodeProps.get( "lat" ) };
                bbox.expandToInclude( location[0], location[1] );
                addNodeGeometry( currentNode, GTYPE_POINT, bbox, 1 );
                poiCount++;
            }
            addNodeTags( currentNode, currentNodeTags, "node" );
        }
View Full Code Here

                        null );
                Map<String, Object> nodeProps = getNodeProperties( pointNode );
                double[] location = new double[] {
                        (Double) nodeProps.get( "lon" ),
                        (Double) nodeProps.get( "lat" ) };
                bbox.expandToInclude( location[0], location[1] );
                if ( prevProxy == null )
                {
                    createRelationship( way, proxyNode, OSMRelation.FIRST_NODE );
                }
                else
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.