[Marble-devel] GeoTiff

Javier Becerra - AUVA javier at auva.es
Thu Feb 16 13:21:17 UTC 2012

Hi Konrad:

I have made some progress in overlaying a GeoTiff in Marble, however my
solution is not exactly what you ask. Anyway, I guess that my experience
might give you some ideas:

1) I have used GDAL's gdal2tiles.py in order to break the original
GeoTiff into 256x256 tiles at different zoom levels. (See my note below
regarding the y coordinate of the generated tiles).
2) Instead of dynamically adding a texture layer to the MarbleWidget, I
modify a dgml file (e.g. openstreetmap.dgml) to add a new texture layer
which points to the tiles created by gdal2tiles.py (you can look at
openstreetmap's "hillshading" texture and do something similar).

Then you just have to select the modified theme in Marble and you can
navigate to your overlaid image.

As I said, it is not exactly what you were asking for, but that might be
a good starting point.

Best regards,

NB: it seems that gdal2tiles generates tiles with the y coordinate
starting on the bottom of the map (as per TSM specs), and marble (OSM)
expects them to have the y origin at the top of the map (or viceversa, I
always end up messing that), so I transform the y coordinates in the
images generated by gdal2tiles.py in order to get them at the right
place in marble. BTW, I wonder if there is a way to tell Marble about
this top/bottom origin in the DGML file?

El jue, 16-02-2012 a las 13:23 +0100, Konrad Enzensberger escribió:
> Hi,
> i was wondering how to add a GeoTiff map to marblewidget.
> Is this possible ?
> Or do i need to create image tiles from the original tiff ?
> I know marblewidget CreateMapWizard, but this only handles world
> images,
> any hint how to modify TileCreator class ?
> br, konrad
> _______________________________________________
> Marble-devel mailing list
> Marble-devel at kde.org
> https://mail.kde.org/mailman/listinfo/marble-devel

More information about the Marble-devel mailing list