Java tools for working with Who's On First documents and the Java Topology Suite (JTS)
This repo is testing the validity of shapes from https://github.com/whosonfirst-data/whosonfirst-data
The libraries used are the ones that Elasticsearch uses to parse shapes, hopefully we by this can make the shapes more indexing-friendly.
The data is retrieved via URls in the region.txt
file for all regions in WOF (to start with).
- @peterneubauer
- whosonfirst-data/whosonfirst-data#975
- https://sourceforge.net/projects/jts-topo-suite/
- https://github.com/locationtech/spatial4j
docker run --name elastic -p 9200:9200 -p 9300:9300 -e "xpack.security.enabled=false" -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:5.6.3
docker run --name postgis -p 5432:5432 -e POSTGRES_DB=postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=secret -d mdillon/postgis
curl -X PUT http://localhost:9200/wofs/
curl -X PUT http://localhost:9200/wofs/_mapping/wof -d'@src/test/resources/els_mappings/wof.json'
./import_shapes.sh
-
check out the
whosonfirst-data/whosonfirst-data
Github project in the same folder as this repo.python src/main/python/generate_wof_url_lists.py
.gradlew test
open build/reports/tests/test/index.html