[Tile-serving] [osm2pgsql] Osm2pgsql failed due to ERROR: Usage error. For further information see: (#412)
baditaflorin
notifications at github.com
Tue Jul 21 11:33:32 UTC 2015
osm2pgsql
osm2pgsql SVN version 0.89.0-dev (64bit id space)
Osm2pgsql failed due to ERROR: Usage error. For further information see:
osm2pgsql -h|--help
If i run the command, i don`t get any useful information
osm2pgsql -h
osm2pgsql SVN version 0.89.0-dev (64bit id space)
Usage:
osm2pgsql [options] planet.osm
osm2pgsql [options] planet.osm.{pbf,gz,bz2}
osm2pgsql [options] file1.osm file2.osm file3.osm
This will import the data from the OSM file(s) into a PostgreSQL database
suitable for use by the Mapnik renderer.
Common options:
-a|--append Add the OSM file into the database without removing
existing data.
-c|--create Remove existing data from the database. This is the
default if --append is not specified.
-l|--latlong Store data in degrees of latitude & longitude.
-m|--merc Store data in proper spherical mercator (default).
-E|--proj num Use projection EPSG:num.
-s|--slim Store temporary data in the database. This greatly
reduces the RAM usage but is much slower. This switch is
required if you want to update with --append later.
-S|--style Location of the style file. Defaults to
/usr/local/share/osm2pgsql/default.style.
-C|--cache Use up to this many MB for caching nodes (default: 800)
Database options:
-d|--database The name of the PostgreSQL database to connect
to (default: gis).
-U|--username PostgreSQL user name (specify passsword in PGPASS
environment variable or use -W).
-W|--password Force password prompt.
-H|--host Database server host name or socket location.
-P|--port Database server port.
A typical command to import a full planet is
osm2pgsql -c -d gis --slim -C <cache size> -k \
--flat-nodes <flat nodes> planet-latest.osm.pbf
where
<cache size> is 20000 on machines with 24GB or more RAM
or about 75% of memory in MB on machines with less
<flat nodes> is a location where a 19GB file can be saved.
A typical command to update a database imported with the above command is
osmosis --rri workingDirectory=<osmosis dir> --simc --wx - \
| osm2pgsql -a -d gis --slim -k --flat-nodes <flat nodes>
where
<flat nodes> is the same location as above.
<osmosis dir> is the location osmosis replication was initialized to.
Run osm2pgsql --help --verbose (-h -v) for a full list of options.
Osm2pgsql failed due to ERROR: Usage error. For further information see:
osm2pgsql -h|--help
mapuser at map-analyst:/data/files/florinb/github/osm2pgsql$ osm2pgsql
osm2pgsql SVN version 0.89.0-dev (64bit id space)
Osm2pgsql failed due to ERROR: Usage error. For further information see:
osm2pgsql -h|--help
mapuser at map-analyst:/data/files/florinb/github/osm2pgsql$ osm2pgsql -h
osm2pgsql SVN version 0.89.0-dev (64bit id space)
Usage:
osm2pgsql [options] planet.osm
osm2pgsql [options] planet.osm.{pbf,gz,bz2}
osm2pgsql [options] file1.osm file2.osm file3.osm
This will import the data from the OSM file(s) into a PostgreSQL database
suitable for use by the Mapnik renderer.
Common options:
-a|--append Add the OSM file into the database without removing
existing data.
-c|--create Remove existing data from the database. This is the
default if --append is not specified.
-l|--latlong Store data in degrees of latitude & longitude.
-m|--merc Store data in proper spherical mercator (default).
-E|--proj num Use projection EPSG:num.
-s|--slim Store temporary data in the database. This greatly
reduces the RAM usage but is much slower. This switch is
required if you want to update with --append later.
-S|--style Location of the style file. Defaults to
/usr/local/share/osm2pgsql/default.style.
-C|--cache Use up to this many MB for caching nodes (default: 800)
Database options:
-d|--database The name of the PostgreSQL database to connect
to (default: gis).
-U|--username PostgreSQL user name (specify passsword in PGPASS
environment variable or use -W).
-W|--password Force password prompt.
-H|--host Database server host name or socket location.
-P|--port Database server port.
A typical command to import a full planet is
osm2pgsql -c -d gis --slim -C <cache size> -k \
--flat-nodes <flat nodes> planet-latest.osm.pbf
where
<cache size> is 20000 on machines with 24GB or more RAM
or about 75% of memory in MB on machines with less
<flat nodes> is a location where a 19GB file can be saved.
A typical command to update a database imported with the above command is
osmosis --rri workingDirectory=<osmosis dir> --simc --wx - \
| osm2pgsql -a -d gis --slim -k --flat-nodes <flat nodes>
where
<flat nodes> is the same location as above.
<osmosis dir> is the location osmosis replication was initialized to.
Run osm2pgsql --help --verbose (-h -v) for a full list of options.
Osm2pgsql failed due to ERROR: Usage error. For further information see:
osm2pgsql -h|--help
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/412
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150721/d5715359/attachment.html>
More information about the Tile-serving
mailing list