Last change
on this file since 36358 was 35091, checked in by frederik, 5 years ago |
add new tool to make seamap tiles from a osm2pgsql db
|
File size:
1016 bytes
|
Line | |
---|
1 | jrenderpgsql
|
---|
2 | ------------
|
---|
3 |
|
---|
4 | This is a modified version of "jrender".
|
---|
5 |
|
---|
6 | Instead of loading .osm files from a pre-defined directory structure
|
---|
7 | like "jrender" does, this program issues an SQL query and fetches
|
---|
8 | seamark data from PostGIS, where it is expected to have been imported
|
---|
9 | with a standard osm2pgsql import using the "--hstore" flag.
|
---|
10 |
|
---|
11 | It then generates an XML document from the PostGIS data which is
|
---|
12 | good enough to be processed by the S57 library routines as usual.
|
---|
13 |
|
---|
14 |
|
---|
15 | BUILDING
|
---|
16 | --------
|
---|
17 |
|
---|
18 | You might have to adapt some paths in the build.xml for the PostGIS
|
---|
19 | and PostgreSQL JDBC drivers to be found.
|
---|
20 |
|
---|
21 |
|
---|
22 | RUNNING
|
---|
23 | -------
|
---|
24 |
|
---|
25 | java -jar jrenderpgsql.jar "jdbc:postgresql:///mydatabae?user=myuser&password=mypassword" 14 8663 5304 tile.png
|
---|
26 |
|
---|
27 | Optional command line flags --debug (outputs the OSM XML),
|
---|
28 | and --tilesize and --scale (use --tilesize 512 --scale 2.0
|
---|
29 | for "retina" tiles)
|
---|
30 |
|
---|
31 |
|
---|
32 | STATUS
|
---|
33 | ------
|
---|
34 |
|
---|
35 | Seems to work at least for z12 and larger, but has received little
|
---|
36 | testing.
|
---|
37 |
|
---|
38 | Author: Frederik Ramm.
|
---|
39 | License: GPL v2.0 or later
|
---|
40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.