|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
Mapnik doesn't show a mapHi,
I am running gpsdrive on an eeepc 901 with Xubuntu 8.10. All works fine, and I wanted to try mapnik. I follwed the instructions in /usr/share/doc/gpsdrive/README.Debian. Importing the world faild: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $ osm2pgsql -m -d gis planet-090418.osm.bz2 osm2pgsql SVN version 0.52-20080912 $Rev: 7141 $ Using projection SRS 900913 (Spherical Mercator) Setting up table: planet_osm_point Setting up table: planet_osm_line Setting up table: planet_osm_polygon Setting up table: planet_osm_roads Reading in file: planet-090418.osm.bz2 Entity: line 8301: parser error : AttValue: ' expected <node id="103920" lat="59.9388385" lon="10.787819 ^ Entity: line 8301: parser error : attributes construct error <node id="103920" lat="59.9388385" lon="10.787819 ^ Entity: line 8301: parser error : Couldn't find end of Start Tag node <node id="103920" lat="59.9388385" lon="10.787819 ^ planet-090418.osm.bz2 : failed to parse Error occurred, cleaning up ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Interesting thing is, I can't find node id="103920" in planet-090418.osm.bz2. So I tried with a smaler map bayern.osm.bz2. Import worked find. But in gpsdrive I can't see any map. I activated the checkbox 'Mapnik Mode' but I only see my waypoints. Output of gpsdrive is: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $ qpsdrive Creating main window .gpsdrive/way.txt reloaded Using Mapnik config-file: /usr/share/gpsdrive/mapnik/osm.xml Read 503 POI-Types from /usr/share/gpsdrive/map-icons/icons.xml map_koord.txt reloaded Thank you for using GpsDrive! ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Perhaps someone could help me. Thanks Stefan _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a map> So I tried with a smaler map bayern.osm.bz2. Import worked find. But in > gpsdrive I can't see any map. I activated the checkbox 'Mapnik Mode' but > I only see my waypoints. Output of gpsdrive is: > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > $ qpsdrive > Creating main window > .gpsdrive/way.txt reloaded > Using Mapnik config-file: /usr/share/gpsdrive/mapnik/osm.xml > Read 503 POI-Types from /usr/share/gpsdrive/map-icons/icons.xml > map_koord.txt reloaded > Thank you for using GpsDrive! > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Perhaps someone could help me. For a test you might want to zoom in to a zoom level of about 1:5000. And then wait a little while. Because if you first had a large zoom level even my 4Core-2.1 GHz Cpu needs about 8 seconds to render the Europe image the first time. But after having it rendered once it will be cached and it should show up a lot faster. Another thing you might want to try is to increase the Debuglevekl to see what really happpens. -- Jörg (Germany, Tettnang) http://www.ostertag.name/ _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapHi Jörg
Joerg Ostertag (gpsdrive Tettnang/Germany) schrieb: > For a test you might want to zoom in to a zoom level of about 1:5000. And then > wait a little while. Because if you first had a large zoom level even my > 4Core-2.1 GHz Cpu needs about 8 seconds to render the Europe image the first > time. But after having it rendered once it will be cached and it should show > up a lot faster. I did wait some minutes, no cpu usage, no map ... > Another thing you might want to try is to increase the Debuglevekl to see what > really happpens. I tried gpsdrive -d gpsdrive -D 100 gpsdrive -d -D 100 same output ... Stefan _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a map-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Stefan Liebl schrieb: > Hi Jörg > > Joerg Ostertag (gpsdrive Tettnang/Germany) schrieb: >> For a test you might want to zoom in to a zoom level of about 1:5000. >> And then wait a little while. Because if you first had a large zoom >> level even my 4Core-2.1 GHz Cpu needs about 8 seconds to render the >> Europe image the first time. But after having it rendered once it will >> be cached and it should show up a lot faster. > > I did wait some minutes, no cpu usage, no map ... > >> Another thing you might want to try is to increase the Debuglevekl to >> see what really happpens. > > I tried > gpsdrive -d > gpsdrive -D 100 > gpsdrive -d -D 100 > > same output ... Hi there, I read the mail but was unable to send emails at that moment and forgot to reply later. Having the same problem here, I can second the failure. But on my system it is NOT gpsdrive's fault but mapnik's (using 0.6.0 here). I don't know what I changed that breaks mapnik but using the "generate_image.py"-script from OSM, I get blank (grey) images. So I know where to search and I know we as gpsdrive-devs don't need to search the code for errors since the mistake is outside that scope. Be sure to hear from me when I got mapnik working again. Jannis -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkn3WYwACgkQeYlewm37lbinUwCfX2myHUUiaKBIxRQ9rAUuoagw MMIAniMMUKR0go4znLEwhWfr23N9V9Yf =NV96 -----END PGP SIGNATURE----- _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a map-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Jannis Achstetter schrieb: > Be sure to hear from me when I got mapnik working again. I've got it working here again (with mapnik 0.6.0). It seems that I imported a corrupted .osm-file into the pg-database and thus mapnik didn't get any objects from the db. It didn't throw an error but rendered an empty map. Importing a current .osm-file (from geofabrik in my case) fixed the problem and gpsdrive is working again. (It still shows forests only when I zoom out a little but I'll update my osm.xml and see if that helps) wishing a nice weekend to all of you, Jannis -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkn7Km8ACgkQeYlewm37lbil7ACfboSuuWIkFBugS/SE3HfcJ3w+ XugAn3816zYpfFpibqOl6C+qylaJoEGH =9Rvf -----END PGP SIGNATURE----- _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapHi,
still can't see maps. I activated world_boundaries in osm.xml. This works. When I import an osm-file, my diskspace doesn't get less. When I first tried to import the whole world, I got some errors. So perhaps my database is corrupt. Does anyone know how to delete the database? Thanks, Stefan _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapOn Thursday 02 July 2009, Stefan Liebl wrote:
> Hi, > > still can't see maps. I activated world_boundaries in osm.xml. This works. > > When I import an osm-file, my diskspace doesn't get less. When I first > tried to import the whole world, I got some errors. So perhaps my > database is corrupt. Does anyone know how to delete the database? I use mapnik-osm-updater.sh --all-planet-geofabrik=europe/germany to refill the OSM Database. Hope this Helps Joerg _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapOn Thu, Jul 9, 2009 at 3:03 AM, Joerg Ostertag <Joerg@...> wrote: On Thursday 02 July 2009, Stefan Liebl wrote: Have you set up the database according to http://wiki.openstreetmap.org/wiki/Mapnik/PostGIS ? You could try osm2pgsql ( http://wiki.openstreetmap.org/wiki/Osm2pgsql ) directly, that is my preferred method. Run $ osm2pgsql -m -d gis yourmap.osm.bz2 (remove the "-m" if projection is off by some 10 km). _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapHi
Joerg Ostertag wrote: > > I use > mapnik-osm-updater.sh --all-planet-geofabrik=europe/germany > to refill the OSM Database. I don't have mapnik-osm-updater.sh on Xubuntu Jaunty. Jan-Erik Skata schrieb: > > Have you set up the database according to > http://wiki.openstreetmap.org/wiki/Mapnik/PostGIS ? Yes > You could try osm2pgsql ( http://wiki.openstreetmap.org/wiki/Osm2pgsql ) > directly, that is my preferred method. Run > $ osm2pgsql -m -d gis yourmap.osm.bz2 I did $ osm2pgsql -m -d gis bayern.osm.bz2 and also $ osm2pgsql -m -d gis austria.osm.bz2 It runs for a while and the output looks ok. But no map in Gpsdrive. When I did it first with planet-latest.osm.bz2 I got some errors. So I think perhaps the database is corrupt now. > (remove the "-m" if projection is off by some 10 km). I don't have any projection at all ... Stefan _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapOn Wednesday 08 July 2009, Stefan Liebl wrote:
> Hi > > Joerg Ostertag wrote: > > I use > > mapnik-osm-updater.sh --all-planet-geofabrik=europe/germany > > to refill the OSM Database. > > I don't have mapnik-osm-updater.sh on Xubuntu Jaunty. Well; it's a simple shell script and can be found directly in svn. Currently I don't have an overview, but plan would be to have this in the debian package openstreetmap-utils in the gpsdrive.de repository. - Joerg _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a map>> You could try osm2pgsql ( http://wiki.openstreetmap.org/wiki/Osm2pgsql )
>> directly, that is my preferred method. Run >> $ osm2pgsql -m -d gis yourmap.osm.bz2 > > I did > $ osm2pgsql -m -d gis bayern.osm.bz2 > and also > $ osm2pgsql -m -d gis austria.osm.bz2 > > It runs for a while and the output looks ok. But no map in Gpsdrive. > > When I did it first with planet-latest.osm.bz2 I got some errors. So I > think perhaps the database is corrupt now. > Try using osm2pgsql -c -m -d gis your.osm.bz2 the -c creates the tables in the database. -- Cheers Ross _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapOn Thu, Jul 9, 2009 at 2:10 AM, Ross Scanlon <info@...> wrote: >> You could try osm2pgsql ( http://wiki.openstreetmap.org/wiki/Osm2pgsql ) If you dont have any other PostgreSQL databases you could also just delete its data directory (in /var somewhere) and set up the database from beginning. Used disk space does not grow if the map already is in the database. Have you tried the Mapnik script generate_image.py as described in http://wiki.openstreetmap.org/wiki/Mapnik#Rendering_tiles ? Does it generate anything? _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapRoss Scanlon schrieb:
> Try using > osm2pgsql -c -m -d gis your.osm.bz2 > > the -c creates the tables in the database. ok, now it's a little bit different. After about an hour I get the following output: $ osm2pgsql -c -m -d gis bayern.osm.bz2 osm2pgsql SVN version 0.52-20080912 $Rev: 7141 $ Using projection SRS 900913 (Spherical Mercator) Setting up table: planet_osm_point Setting up table: planet_osm_line Setting up table: planet_osm_polygon Setting up table: planet_osm_roads Reading in file: bayern.osm.bz2 Processing: Node(6584k) Way(522k) Relation(0k)Killed I think, perhaps I am running out of memory. I habe 1GB ram and 230MB swap. But in gpsdrive now I see some shadows of munich. Perhaps I will get some more ram. Stefan _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapOn Thu, Jul 16, 2009 at 11:15 PM, Stefan Liebl <Alter.Depp@...> wrote: Ross Scanlon schrieb: Seems the Bayern extract is only about 120M compressed. I have 1GB of ram and have added the Finland extract (50M) without any swapping at all. Takes about a minute. Try adding more swap! Can be done in a file, doesnt need to be a partition. Will be reinstalling my laptop soon so I could before that try to add the Bayern extract. Have you done the PostgreSQL "tuning" described in http://wiki.openstreetmap.org/wiki/Mapnik/PostGIS ? _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
|
|
Re: Mapnik doesn't show a mapOn Thu, Jul 16, 2009 at 10:15:18PM +0200, Stefan Liebl wrote:
> Reading in file: bayern.osm.bz2 > Processing: Node(6584k) Way(522k) Relation(0k)Killed There's a problem with larger areas. If you import the UK and Ireland using the default "ram" method, you run the danger of running out of virtual memory (3Gb per process on most 32bit platforms). The only way round that is to use the very slow "slim mode" or switch to a 64bit platform. You run out of virtual memory long before you run out of real memory, due to the sparse arrays that osm2pgsql uses. -- Paul Martin <pm@...> _______________________________________________ GPSdrive mailing list GPSdrive@... http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive |
| Free embeddable forum powered by Nabble | Forum Help |