Package org.neo4j.gis.spatial

Examples of org.neo4j.gis.spatial.SpatialDatabaseException


        Node wayNode = makeOSMWay(geom, geomNode.getGraphDatabase().createNode(), gsubtype);
        relationNode.createRelationshipTo(wayNode, OSMRelation.MEMBER);
      }
      break;
    default:
      throw new SpatialDatabaseException("Unsupported geometry: " + geometry.getClass());
    }
    geomNode.setProperty("vertices", vertices);
  }
View Full Code Here


    return way;
  }

  private Node makeOSMRelation(Geometry geometry, Node geomNode) {
    relationId++;
    throw new SpatialDatabaseException("Unimplemented: makeOSMRelation()");
  }
View Full Code Here

    return geometryFactory;
  }

  private Node testIsNode(PropertyContainer container) {
    if (!(container instanceof Node)) {
      throw new SpatialDatabaseException("Cannot decode non-node geometry: " + container);
    }
    return (Node) container;
  }
View Full Code Here

            if (rel == null) {
                    datasetNode.createRelationshipTo(layerNode, SpatialRelationshipTypes.LAYERS);
            } else {
                Node node = rel.getStartNode();
                if (!node.equals(datasetNode)) {
                    throw new SpatialDatabaseException("Layer '" + osmLayer + "' already belongs to another dataset: " + node);
                }
            }
            tx.success();
        }
View Full Code Here

     */
    public OSMDataset(SpatialDatabaseService spatialDatabase, OSMLayer osmLayer, Node layerNode) {
        this.layer = osmLayer;
        Relationship rel = layerNode.getSingleRelationship(SpatialRelationshipTypes.LAYERS, Direction.INCOMING);
        if (rel == null) {
            throw new SpatialDatabaseException("Layer '" + osmLayer + "' does not have an associated dataset");
        } else {
            datasetNode = rel.getStartNode();
        }
    }
View Full Code Here

    this.featureBuilder = new Neo4jFeatureBuilder(layer);
    try {
      this.filter = ECQL.toFilter(cql);
        this.filterEnvelope = Utilities.extractEnvelopeFromFilter(filter);         
    } catch (CQLException e) {
      throw new SpatialDatabaseException("CQLException: " + e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of org.neo4j.gis.spatial.SpatialDatabaseException

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.