README.md 1.01 KB
Newer Older
Matija Obreza's avatar
Service    
Matija Obreza committed
1
2
LandOrSea
=========
Matija Obreza's avatar
Matija Obreza committed
3

Matija Obreza's avatar
Service    
Matija Obreza committed
4
= Running LandOrSea
Matija Obreza's avatar
Matija Obreza committed
5

Matija Obreza's avatar
Service    
Matija Obreza committed
6
Obtain the landorsea.jar file from the Downloads section or build from source code.
Matija Obreza's avatar
Matija Obreza committed
7

Matija Obreza's avatar
Service    
Matija Obreza committed
8
Download the two "large split polygons" shapefiles in WGS84 projection from:
Matija Obreza's avatar
Matija Obreza committed
9

Matija Obreza's avatar
Service    
Matija Obreza committed
10
11
12
13
14
* http://openstreetmapdata.com/data/land-polygons
* http://openstreetmapdata.com/data/water-polygons

Shapefiles used in this application are derived from OSM data, © OpenStreetMap contributors.

Matija Obreza's avatar
Matija Obreza committed
15
Create a `data` subdirectory in the directory with the jar file.
16
Extract the shapefile zip archives and move their contents into the newly created `data/` directory. 
Matija Obreza's avatar
Service    
Matija Obreza committed
17
18
as the jar file of this application. You should now have three files in this directory: 

Matija Obreza's avatar
Matija Obreza committed
19
20
21
22
23
	$ find .
	data/land_polygons.shp
	data/land...
	data/water_polygons.shp
	data/water...
Matija Obreza's avatar
Service    
Matija Obreza committed
24
25
26
	landorsea.jar


Matija Obreza's avatar
CLI    
Matija Obreza committed
27
JAI library creates an AWT window. Run in headless mode:
Matija Obreza's avatar
Service    
Matija Obreza committed
28
29
30
31

	java -Djava.awt.headless=true -jar landorsea.jar

Test.
Matija Obreza's avatar
CLI    
Matija Obreza committed
32

33
34
35
36
37
= Features

* Accepts CSV as input, produces CSV output


Matija Obreza's avatar
CLI    
Matija Obreza committed
38
39
40
41
= TODO List

* Generate HTML report
* For "Water" entries, report distance to closest land.