source: osm/applications/editors/josm/plugins/seachart/jrenderpgsql/README@ 36358

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