Add srtm proccess
This commit is contained in:
parent
ec3d9660aa
commit
c931a568db
2 changed files with 32 additions and 0 deletions
8
build-scripts/indexes-generate-srtm.sh
Executable file
8
build-scripts/indexes-generate-srtm.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
cd ~/srtm-proccess/
|
||||
rm -rf .work
|
||||
mkdir .work
|
||||
mkdir .work/osm
|
||||
if [ -z $INDEXES_FILE ]; then INDEXES_FILE="build-scripts/regions/indexes.xml"; echo "$INDEXES_FILE"; fi
|
||||
|
||||
echo 'Running java net.osmand.data.index.IndexBatchCreator with $INDEXES_FILE'
|
||||
java -XX:+UseParallelGC -Xmx4096M -Xmn512M -Djava.util.logging.config.file=build-scripts/batch-logging.properties -cp "DataExtractionOSM/OsmAndMapCreator.jar:DataExtractionOSM/lib/*.jar" net.osmand.data.index.IndexBatchCreator build-scripts/srtm-batch-generate.xml "$INDEXES_FILE"
|
24
build-scripts/srtm-batch-generate.xml
Normal file
24
build-scripts/srtm-batch-generate.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<batch_process>
|
||||
<process_attributes mapZooms="13-14;15" renderingTypesFile="" zoomWaySmoothness="2"
|
||||
osmDbDialect="sqlite" mapDbDialect="sqlite"/>
|
||||
|
||||
<!-- There are 3 subprocess :
|
||||
1. Download fresh osm files from servers to 'directory_for_osm_files' (override existings).
|
||||
2. Generate index files from all files in 'directory_for_osm_files' and put all indexes into 'directory_for_index_files'
|
||||
3. Upload index files from 'directory_for_index_files' to googlecode.
|
||||
If directory directory_for_uploaded_files is specified all uploaded files will be moved to it
|
||||
All these subprocess could be ran independently ! So you can create some files check them and after that try to upload on googlecode,
|
||||
or you can upload any file you have to googlecode (just put into 'directory_for_index_files')
|
||||
-->
|
||||
<!-- zoomWaySmoothness - 1-4, typical mapZooms - 8-10;11-12;13-14;15 -->
|
||||
<process directory_for_osm_files="/var/lib/jenkins/srtm-proccess" directory_for_index_files="/var/lib/jenkins/indexes" directory_for_generation=".work"
|
||||
skipExistingIndexesAt="/var/lib/jenkins/indexes/uploaded" indexPOI="false" indexMap="true" indexRouting="false" indexTransport="false" indexAddress="false">
|
||||
<!-- Add wget="C:/Program Files/GNUWin32/bin/wget.exe" to process, to use wget for download.
|
||||
On linux systems if wget is in your path it can be wget="wget" or you can make own script with wget command:
|
||||
wget="/path/to/script/wget.sh"
|
||||
Defaultly enabled parameter of wget is: &-&-read-timeout=5 that prevents hanging of download from cloudmade/geofabrik server
|
||||
-->
|
||||
|
||||
</process>
|
||||
</batch_process>
|
Loading…
Reference in a new issue