Global Positioning System Reference
In-Depth Information
API that allows the programmer to specify the traversal rules. The returned
result can be empty, a single node, or a subgraph composed of nodes and
their relationships interconnecting them.
Regarding the development platform, in addition to Java, Neo4j has
links with the Python, Jython, Ruby and Clojure programming languages.
For other platforms, Neo4j provides access through a REST interface (Hoff
2009).
Neo4j Spatial
Neo4j supports the storage and manipulation of spatial data through
the library Neo4j Spatial, 10 developed in Java. The Neo4j Spatial enables
spatial operations on data stored in Neo4j, for instance, operations to locate
data within a specifi c region or an area close to a point of interest (PoI).
Furthermore, it allows integration with the GeoTools library, 11 GeoServer, 12
and uDig. 13
Neo4j Spatial may import spatial data in both ESRI Shapefi le (.SHP)
and Open Street Map (.OSM) formats. The fi rst type that defi nes a geometry
collection is a Layer type. Each layer has an index for queries and can
be presented as an EditableLayer to edit its geometry. The DefaultLayer
pattern uses geometric WKB functions for storing all types of geometry as
properties of the type byte []. There is also a layer named OSMLayer that
supports map fi les from Open Street Map and stores the OSM model as a
single fully connected graph. The OSMLayer supports geometries of type
Point, Linestring and Polygon, but has the restriction of supporting only
one geometry by layer. Multi-geometries from OSM fi les are considered
to be multi-layered. On the other hand, the layer containing data from a
shapefi le supports Point, Linestring, Polygon, Multipoint, Multilinestring,
and Multipolygon geometries.
An interesting feature of the Neo4j Spatial library is the ability to
divide a single layer into multiple sub-layers or views through the use of
pre-confi gured fi lters. This ability can be interesting when working with
large datasets.
The Neo4j Spatial library contains the Java Topology Suite, an API
written in Java that implements geometries and 2D geometric operations.
Thus, it is possible to use the full capacity of the JTS (Java Transaction
Service) in geometric operations with instances obtained from Neo4j
Spatial.
10 Neo4j Spatial, https://github.com/Neo4j/spatial
11 GeoTools, http://www.geotools.org/
12 GeoServer, http://geoserver.org/
13 uDig, http://udig.refractions.net/
Search WWH ::




Custom Search