how to install:
- Download OrientDB (v. 2.2.x or above) (http://www.orientdb.com) and install the geospatial plugin http://orientdb.com/docs/2.2/Spatial-Index.html
- clone current project (or download it)
- Edit index.html file and insert your Google Maps API Key
- in the root directory of the project, run
npm install
tsc
(you need NPM and Typescript stuff installed) 5. create a symbolic link in OrientDB /www directory to the root of this project, eg.
cd OrientDB/www/
ln -s root/to/this/project/ ui
- Start OrientDB and create a DB called
geo
- Execute the following statements in OrientDB
CREATE CLASS POI EXTENDS V
CREATE PROPERTY POI.location EMBEDDED OPoint
create index POI.location on POI(location) SPATIAL ENGINE LUCENE
CREATE CLASS Natural EXTENDS V
CREATE PROPERTY Natural.location EMBEDDED OPolygon
CREATE INDEX Natural.location on Natural(location) SPATIAL ENGINE LUCENE
CREATE CLASS Person EXTENDS V
CREATE PROPERTY Person.location EMBEDDED OPoint
CREATE CLASS FriendOf EXTENDS E
- In your browser, open http://localhost:2480/ui/index.html
- To load POI and Natural data, you can use https://github.com/luigidellaquila/wkt-to-orient
Acknowledgements:
This project is derived by Angular quick-start project (https://github.com/angular/quickstart)