Thanks,<br><br>For the below information it noted that:<br><br><i>This will import the data from the OSM file(s) into a PostgreSQL database<br>
suitable for use by the Mapnik renderer</i><br><br>I am assuming that this command will also work correctly if my renderer is instead geoserver since I already have been using geoserver I would prefer to use it instead of Mapnik.<br>
<br><br><div class="gmail_quote">On Thu, Oct 1, 2009 at 6:15 PM, Thomas Wood <span dir="ltr"><<a href="mailto:grand.edgemaster@gmail.com">grand.edgemaster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
$ osm2pgsql --help<br>
osm2pgsql SVN version 0.65-14123<br>
<br>
Usage:<br>
        osm2pgsql [options] planet.osm<br>
        osm2pgsql [options] planet.osm.{gz,bz2}<br>
        osm2pgsql [options] file1.osm file2.osm file3.osm<br>
<br>
This will import the data from the OSM file(s) into a PostgreSQL database<br>
suitable for use by the Mapnik renderer<br>
<br>
Options:<br>
   -a|--append          Add the OSM file into the database without removing<br>
                        existing data.<br>
   -b|--bbox            Apply a bounding box filter on the imported data<br>
                        Must be specified as: minlon,minlat,maxlon,maxlat<br>
                        e.g. --bbox -0.5,51.25,0.5,51.75<br>
   -c|--create          Remove existing data from the database. This is the<br>
                        default if --append is not specified.<br>
   -d|--database        The name of the PostgreSQL database to connect<br>
                        to (default: gis).<br>
   -l|--latlong         Store data in degrees of latitude & longitude.<br>
   -m|--merc            Store data in proper spherical mercator (default)<br>
   -M|--oldmerc         Store data in the legacy OSM mercator format<br>
   -E|--proj num        Use projection EPSG:num<br>
   -u|--utf8-sanitize   Repair bad UTF8 input data (present in planet<br>
                        dumps prior to August 2007). Adds about 10% overhead.<br>
   -p|--prefix          Prefix for table names (default planet_osm)<br>
   -s|--slim            Store temporary data in the database. This greatly<br>
                        reduces the RAM usage but is much slower.<br>
   -S|--style           Location of the style file. Defaults to ./default.style<br>
   -C|--cache           Only for slim mode: Use upto this many MB for caching nodes<br>
                        Default is 800<br>
   -U|--username        Postgresql user name.<br>
   -W|--password        Force password prompt.<br>
   -H|--host            Database server hostname or socket location.<br>
   -P|--port            Database server port.<br>
   -e|--expire-tiles [min_zoom-]max_zoom        Create a tile expiry list.<br>
   -o|--expire-output filename  Output filename for expired tiles list.<br>
   -h|--help            Help information.<br>
   -v|--verbose         Verbose output.<br>
<br>
Add -v to display supported projections.<br>
Use -E to access any espg projections (usually in /usr/share/proj/epsg)<br>
<br>
<br>
2009/10/1 John Mitchell <<a href="mailto:mitchelljj98@gmail.com">mitchelljj98@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> Your documentation states for using osm2pqsql (listed below) :<br>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
><br>
> Before you can use osm2pqsql for the first time with the Spherical Mercator<br>
> projection (see below), you need to initialize configuration data for this<br>
> projection. Do this by running the .sql file included with osm2pqsql:<br>
><br>
> [Syntax on Windows]<br>
> $ psql -d gis -f c:\osm2pgsql\900913.sql<br>
> ------------------------------------------------------------------------------------------------------------------<br>
><br>
> Using osm2pgsql can I import into postgres in a projection other than<br>
> Spherical Mercator (epsg:900913) like wgs84 (epsg:4326)?<br>
><br>
> Thanks,<br>
><br>
> John<br>
><br>
> --<br>
> John J. Mitchell<br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> talk mailing list<br>
> <a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
> <a href="http://lists.openstreetmap.org/listinfo/talk" target="_blank">http://lists.openstreetmap.org/listinfo/talk</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
</div>Regards,<br>
<font color="#888888">Thomas Wood<br>
(Edgemaster)<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>John J. Mitchell<br>