<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Jeremie,<br>
    <br>
    Am 15.05.2012 15:11, schrieb Jeremie Scheer:
    <blockquote cite="mid:4FB255F4.3060909@armadeus.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Ok I will try with OSM raw files first to see if it corresponds to
      my needs.<br>
      <br>
      <blockquote type="cite">You can transfer the contents of the
        directory to your device and they'll be automatically found and
        used by Marble and also applications using Marble as a library
        (assuming you transfer it to the right directory on the device).
        The directory must not be user specific, you can also use
        Marble's system directory (where openstreetmap.dgml gets
        installed to).</blockquote>
      The map installation directory can be in another path than
      Marble's system directory ? My maps will be installed on a SD card
      that will be inserted in the system, so how can I set the map
      directory to another location in the application code ?<br>
      <br>
    </blockquote>
    <br>
    you've got several options to accomplish that:<br>
    <br>
    (1) Use MarbleDirs::setMarbleDataPath() to have the system path
    point to some directory on the sd card (fill content as needed)<br>
    (2) Use the XDG_DATA_HOME environment variable to change the user
    path to point to the sd card<br>
    (3) Change openstreetmap.dgml to use an absolute path (on the
    sdcard) in the <sourcedir> fields<br>
    <br>
    On Nokia mobile phones for example we use a combination of (2) and
    (3) such that all user retrieved (cached) data is downloaded to the
    largest partition on the device (2) and share openstreetmap data
    with other applications (3). I decided against using (1) there to
    prevent that users mess with data they should not mess with (i.e.
    users can safely wipe out the entire marble cache folder and still
    all map themes are there because they are in the system path).<br>
    <br>
    Regards,<br>
    Dennis<br>
    <br>
  </body>
</html>