<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1">Hello <br>
<br>
As I have promised I have tried to import the old file without
the -u option so not to use utf sanitize and I still got a problem<br>
./osm2pgsql -U postgres -v -s -S default.style -d gisa -C 2500
/home/zsolt/tmp/planet-100127.osm<br>
osm2pgsql SVN version 0.70.5<br>
<br>
Using projection SRS 900913 (Spherical Mercator)<br>
Setting up table: planet_osm_point<br>
NOTICE: table "planet_osm_point" does not exist, skipping<br>
NOTICE: table "planet_osm_point_tmp" does not exist, skipping<br>
Setting up table: planet_osm_line<br>
NOTICE: table "planet_osm_line" does not exist, skipping<br>
NOTICE: table "planet_osm_line_tmp" does not exist, skipping<br>
Setting up table: planet_osm_polygon<br>
NOTICE: table "planet_osm_polygon" does not exist, skipping<br>
NOTICE: table "planet_osm_polygon_tmp" does not exist, skipping<br>
Setting up table: planet_osm_roads<br>
NOTICE: table "planet_osm_roads" does not exist, skipping<br>
NOTICE: table "planet_osm_roads_tmp" does not exist, skipping<br>
Mid: pgsql, scale=100, cache=2500MB, maxblocks=320001*8192<br>
Setting up table: planet_osm_nodes<br>
NOTICE: table "planet_osm_nodes" does not exist, skipping<br>
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"planet_osm_nodes_pkey" for table "planet_osm_nodes"<br>
Setting up table: planet_osm_ways<br>
NOTICE: table "planet_osm_ways" does not exist, skipping<br>
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"planet_osm_ways_pkey" for table "planet_osm_ways"<br>
Setting up table: planet_osm_rels<br>
NOTICE: table "planet_osm_rels" does not exist, skipping<br>
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"planet_osm_rels_pkey" for table "planet_osm_rels"<br>
<br>
Reading in file: /home/zsolt/tmp/planet-100127.osm<br>
Processing: Node(3670k) Way(0k) Relation(0)Entity: line 21837637:
parser error : Unescaped '<' not allowed in attributes values<br>
750" lon="10.4204140" timestamp="2006-12-31T06:28:45Z" version="1"
changeset="17<br>
^<br>
Entity: line 21837637: parser error : attributes construct error<br>
750" lon="10.4204140" timestamp="2006-12-31T06:28:45Z" version="1"
changeset="17<br>
^<br>
Entity: line 21837637: parser error : Couldn't find end of Start
Tag node<br>
750" lon="10.4204140" timestamp="2006-12-31T06:28:45Z" version="1"
changeset="17<br>
^<br>
/home/zsolt/tmp/planet-100127.osm : failed to parse<br>
Error occurred, cleaning up<br>
<br>
The newest file I have downloaded I could not unpack since there
is an archive error <br>
I really need help cause I am on a project and I need to set the
server up, I am already over my time which was planned for this
task.<br>
<br>
From where can I download a good planet file ? I have tried from
the links which are provided from the openstreetmap site but since
now only one file have worked for me, only one I could unpack<br>
</font><br>
On 6/13/2011 12:07 PM, M∡rtin Koppenhoefer wrote:
<blockquote
cite="mid:BANLkTi=nNBj3XyuRkzMyQM8adir6am141Q@mail.gmail.com"
type="cite">
<pre wrap="">2011/6/13 Zolt Egete <a class="moz-txt-link-rfc2396E" href="mailto:xphreakster@gmail.com"><xphreakster@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Hello
Thank you for the quick reply
I will give it a try without the -u option not to use the UTF-8 sanitize and
will let you know the results as soon as I have some
As far as other map files are concerned I have downloaded a few ones but
this is the only one which I could unpack (have used pbzunzip2, bzip2,
bunzip2) but all the time I have got corrupt archive messages.
Also the MD5 sum of the downloaded file where not consistent with the md5
hash sum from the servers (I do not yet know the reason why)
I have downloaded the other day the latest planet file which is almost 17GB
large and have started to unpack this morning with the following command
pbunzip2 -d -k planet-latest.osm.bz2
pbzip2: *ERROR during decompression: -4
and the error have shown after 200GB is unpacked, but I can still see the
process going on, despite for the error and now it is on 227 GB
Do you think this can impose a problem with the unpacked OSM file ?
</pre>
</blockquote>
<pre wrap="">
yes, the md5 check should pass OK, otherwise I suspect there is a
problem with your download. I suggest you try first a smaller extract
to test your setup, e.g. one of geofabrik. You also don't have to
unpack the file, you can pipe it with bzcat to osm2pgsql. See the wiki
for details. Another option is using pbf files (binary), see the wiki.
cheers,
Martin
</pre>
</blockquote>
</body>
</html>