no Mapnik world boundaries?

View: New views
6 Messages — Rating Filter:   Alert me  

no Mapnik world boundaries?

by hamish_b :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Holy cow!, is there a better way to run GpsDrive with Mapnik support
but without needing to install the 300mb openstreetmap-mapnik-world-
boundaries.deb ?

I get this error:

2.10pre7$ gpsdrive
[...]
DB: Using waypoints from local user file.
Read 528 POI-Types from geoinfo.db
Missing '/usr/share/mapnik/world_boundaries' please install mapnik world boundaries, if error occurs!
 got exception ...
terminate called after throwing an instance of 'std::ios_base::failure'
  what():  failed opening file: Bad file descriptor
Aborted


my hackish solution:
# bypass Mapnik wanting 300mb World Boundaries DB to be installed
sed -e 4594,4863d ./build/scripts/mapnik/osm-template.xml > ~.gpsdrive/osm.xml


??

thanks,
Hamish
_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive

Re: no Mapnik world boundaries?

by Joerg Ostertag (Tettnang) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 30 August 2009, Hamish wrote:
> Holy cow!, is there a better way to run GpsDrive with Mapnik support
> but without needing to install the 300mb openstreetmap-mapnik-world-
> boundaries.deb ?

...

> my hackish solution:
> # bypass Mapnik wanting 300mb World Boundaries DB to be installed
> sed -e 4594,4863d ./build/scripts/mapnik/osm-template.xml >
> ~.gpsdrive/osm.xml

My suggested solution would have looked similar ;-)

I still hope that some day all coastlines will be integrated into the main
database. If this point is reached this step will no longer be needed.

-
Joerg
_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive

Re: no Mapnik world boundaries?

by hamish_b :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HB:
> > is there a better way to run GpsDrive with Mapnik support
> > but without needing to install the 300mb
> > openstreetmap-mapnik-world-boundaries.deb ?

> > my hackish solution:
> > # bypass Mapnik wanting 300mb World Boundaries DB to
> > # be installed
> > sed -e 4594,4863d ./build/scripts/mapnik/osm-template.xml >
> > ~.gpsdrive/osm.xml
JO:
> My suggested solution would have looked similar ;-)
>
> I still hope that some day all coastlines will be
> integrated into the main database. If this point is
> reached this step will no longer be needed.

n.b.:

gpsdrive (2.10svn2457) unstable; urgency=low

   * Added test to mapnik.cpp for world boundaries existance, if there then attempt to initialize mapnik, else disable mapnik

 -- rosscoe via GPSdrive discussion list <gpsdrive@...>  Wed, 05 Aug 2009 11:53:49 +0200



I'll post a bit more about my last few commits soon, one bug I
see but don't know how to fix is in map_handler.c it treats
map tiles from gpsdrive_generate_mapnik.py as proj == proj_map
instead of proj_mapnik leading to projection errors which are
very obvious beyond 1:500k. There's already a code comment about
it, but other things need to change too and I'm not sure...


wishes:
- allow gpsdrive's mapnik tile caching to be disabled, perhaps
with a new gpsdriverc option, or look for an enviro var?

Live disks keep $HOME in RAM and alloc()ed space for that is
non recoverable.

- option to set the DB name at run time instead of compile time

!

- new dashboard item: lat/lon position of target



cheers,
Hamish



     

_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive

Re: no Mapnik world boundaries?

by Guenther Meyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Donnerstag 03 September 2009 schrieb Hamish:

> HB:
> > > is there a better way to run GpsDrive with Mapnik support
> > > but without needing to install the 300mb
> > > openstreetmap-mapnik-world-boundaries.deb ?
> > >
> > > my hackish solution:
> > > # bypass Mapnik wanting 300mb World Boundaries DB to
> > > # be installed
> > > sed -e 4594,4863d ./build/scripts/mapnik/osm-template.xml >
> > > ~.gpsdrive/osm.xml
>
> JO:
> > My suggested solution would have looked similar ;-)
> >
> > I still hope that some day all coastlines will be
> > integrated into the main database. If this point is
> > reached this step will no longer be needed.
>
> n.b.:
>
> gpsdrive (2.10svn2457) unstable; urgency=low
>
>    * Added test to mapnik.cpp for world boundaries existance, if there then
> attempt to initialize mapnik, else disable mapnik
>
>  -- rosscoe via GPSdrive discussion list <gpsdrive@...>
> Wed, 05 Aug 2009 11:53:49 +0200
>
>
>
> I'll post a bit more about my last few commits soon, one bug I
> see but don't know how to fix is in map_handler.c it treats
> map tiles from gpsdrive_generate_mapnik.py as proj == proj_map
> instead of proj_mapnik leading to projection errors which are
> very obvious beyond 1:500k. There's already a code comment about
> it, but other things need to change too and I'm not sure...
>
>
> wishes:
> - allow gpsdrive's mapnik tile caching to be disabled, perhaps
> with a new gpsdriverc option, or look for an enviro var?
>
there should be an option "enable map caching" in the settings, which sets
mapnik_caching...

> - option to set the DB name at run time instead of compile time
>
editing gpsdriverc is not an option?
adding the db name to the settings dialog could be done, but changes would
require a restart of gpsdrive; everything else would be more complex...

> - new dashboard item: lat/lon position of target
>
should be easy to do that.


_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive

signature.asc (204 bytes) Download Attachment

Re: no Mapnik world boundaries?

by hamish_b :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hamish:
> > wishes:
> > - allow gpsdrive's mapnik tile caching to be disabled,
> > perhaps with a new gpsdriverc option, or look for an
> > enviro var?

Guenther:
> there should be an option "enable map caching" in the
> settings, which sets mapnik_caching...

ahh, yes. I missed that.  "mapnik_caching = 1"
thanks.

maybe rename it "enable mapnik tile caching" to make it
more obvious?

Also, about the live-Mapnik I've been wondering about file
sizes. For immediate display you want PNG compression off
(i.e. a PPM image), for storing on disk you want it at max
(but that takes time/CPU/batteries).  I wonder if we could
have both somehow. PPM to memory, and once it is displayed
fork() off the writing to max optimized PNG to store on the
disk... ?? Just a vague idea. For now with the new script
gpsdrive_tile_crush.sh in SVN you can shrink your cache by
about 60% for those!

I'm not sure why the PNGs are so huge, even for a single road
in the desert it is >100k when it should be smaller than a
JPEG for line art. Maybe there is fine pixelation happening?
I'm still working on understanding that. For now I'll add a
--jpeg output option to gpsdrive_mapnik_gentiles.py


> > - option to set the DB name at run time instead of
> > compile time
> >
> editing gpsdriverc is not an option?

I mean for the PostGIS Mapnik database. Currently hardcoded
as "gis".

> adding the db name to the settings dialog could be done,
> but changes would require a restart of gpsdrive; everything
> else would be more complex...

Sounds reasonable to ask folks to restart.


> > - new dashboard item: lat/lon position of target
>
> should be easy to do that.

excellent, thanks!


Hamish



     

_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive

Re: no Mapnik world boundaries?

by hamish_b :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> > > - option to set the DB name at run time instead of
> > > compile time
> >
> > editing gpsdriverc is not an option?
>
> I mean for the PostGIS Mapnik database. Currently hardcoded
> as "gis".

i.e. how to (re)build a custom osm.xml ?

I tried with another name and search & replace in osm.xml but
it failed.

I see mapnik_xml_file= in gpsdriverc.


thanks,
Hamish



     

_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive