QGIS tiles generator for geopaparazzi

1,273 views
Skip to first unread message

andrea antonello

unread,
Apr 11, 2013, 2:21:41 AM4/11/13
to geopapara...@googlegroups.com, GFOSS. it
Hi everybody, sorry for crossposting,
I wanted to inform you that there is a new plugin for QGis that
generates tilsets that can then be used as maps for geopaparazzi.

Thanks to Ruggero Valentinotti, which developed this tool and released
it to the community.

The plugin can be found here:
http://www.bacinimontani.provincia.tn.it/qgis/plugins.xml

The help to use this plugin is accessible through the plugin interface itself.

Enjoy!
Andrea

Fabio Giacomazzi

unread,
Apr 11, 2013, 7:22:08 AM4/11/13
to geopapara...@googlegroups.com
Grazie!
Lo proverò al più presto ....

Fabio Giacomazzi


2013/4/11 andrea antonello <andrea.a...@gmail.com>
Andrea

--
You received this message because you are subscribed to the Google Groups "geopaparazzi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geopaparazzi-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Fabio Giacomazzi

unread,
Apr 11, 2013, 10:22:11 AM4/11/13
to geopapara...@googlegroups.com
Salve,
ho provato il plugin ma mi da errore (in tre differenti tentativi, uno anche con una ridotta escursione dello zoom (13-16) e uno con WIDTH di 256 pixel); in un caso mi ha bloccato il programma: 

An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:/Users/Fabio/.qgis//python/plugins\GeopapaTile\doGeopapaTile.py", line 256, in accept
    self.doMapurlfile(outDir,sourceName)
  File "C:/Users/Fabio/.qgis//python/plugins\GeopapaTile\doGeopapaTile.py", line 92, in doMapurlfile
    xmlfile = open(sourceDir+"/tilemapresource.xml");
IOError: [Errno 2] No such file or directory: PyQt4.QtCore.QString(u'D:\\DOCUMENTI\\GoogleEarth\\geopaparazzi_data\\geopapaTile\\tile_source/tile_source//tilemapresource.xml')

Python version:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


QGIS version:
1.8.0-Lisboa Lisboa, 6416f38

Python path: ['C:\\Users\\Fabio\\.qgis\\python\\plugins\\elevation', 'C:/PROGRA~2/Quantum GIS Lisboa/apps/qgis/./python', 'C:/Users/Fabio/.qgis//python', 'C:/Users/Fabio/.qgis//python/plugins', 'C:/PROGRA~2/Quantum GIS Lisboa/apps/qgis/./python/plugins', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\bin\\python27.zip', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\DLLs', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\qgis\\bin', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', '~/.qgis/python', 'C:\\Users\\Fabio\\.qgis\\python\\plugins\\mmqgis/forms', 'C:\\Users\\Fabio\\.qgis\\python\\plugins\\openlayersov\\logic', 'C:\\Users\\Fabio\\.qgis\\python\\plugins\\openlayersov\\gui', '.', '~/.qgis/python', '.', 'C:\\PROGRA~2\\Quantum GIS Lisboa\\apps\\qgis\\python\\plugins\\fTools\\tools', 'D:/data/Qgis_files']


Questo invece il log generato dal Plugin:

Starting...

gdalwarp -s_srs EPSG:3857 -t_srs EPSG:3785 -r bilinear D:\DOCUMENTI\GoogleEarth\geopaparazzi_data\geopapaTile\tile_source/image.tif D:\DOCUMENTI\GoogleEarth\geopaparazzi_data\geopapaTile\tile_source/image_3785.tif

gdalwarp:

- Creating output file that is 1000P x 609L.

Processing input file D:\DOCUMENTI\GoogleEarth\geopaparazzi_data\geopapaTile\tile_source/image.tif.

0...10...20...30...40...50...60...70...80...90...100 - done.

gdal2tiles.bat -z 4-16 -r bilinear D:\DOCUMENTI\GoogleEarth\geopaparazzi_data\geopapaTile\tile_source/image_3785.tif D:\DOCUMENTI\GoogleEarth\geopaparazzi_data\geopapaTile\tile_source/tile_source/

gdal2tiles.bat:



Questa l'interfaccia del plugin nel corso del mio tentativo:


Immagine in linea 1



2013/4/11 andrea antonello <andrea.a...@gmail.com>
Andrea

image.png

andrea antonello

unread,
Apr 15, 2013, 2:52:28 AM4/15/13
to geopapara...@googlegroups.com
Hi, I am afraid I am not the author of the plugin and also I am no QGIS user or developer.

I wrote the author and I think he is working with another usre to solve issues with the plugin.

I am afraid that is all the help I can give here,
Cheers,
Andrea



image.png

Simone Bianchi

unread,
Jan 8, 2014, 9:16:38 PM1/8/14
to geopapara...@googlegroups.com
Dear all,
GeoPapaTile is working for me!!

I used QGis 2.0.1 with GeoPapaTile 0.1.3. I created a simple map, run the plugin and it gave the message "An error has occured ... " but the all files were created in the target folder. I copied them in the map folder of a Galaxy Note 8 (GT-N5100) with the last updated version of Geopaparazzi. And the tiles are correctly visualized in the map view!!!!

Great news at least for me! I love Geopaparazzi and this tiles creator plugin is so straightforward to use!!


2013/4/11 andrea antonello <andrea.a...@gmail.com>
Andrea

To unsubscribe from this group and stop receiving emails from it, send an email to geopaparazzi-users+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "geopaparazzi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geopaparazzi-users+unsub...@googlegroups.com.

andrea antonello

unread,
Jan 9, 2014, 1:42:05 AM1/9/14
to geopapara...@googlegroups.com
Hi Simone,
 
GeoPapaTile is working for me!!

I used QGis 2.0.1 with GeoPapaTile 0.1.3. I created a simple map, run the plugin and it gave the message "An error has occured ... " but the all files were created in the target folder. I copied them in the map folder of a Galaxy Note 8 (GT-N5100) with the last updated version of Geopaparazzi. And the tiles are correctly visualized in the map view!!!!

Great news at least for me! I love Geopaparazzi and this tiles creator plugin is so straightforward to use!!

this is great to hear.

Would you be willing to write down a little howto? I would be glad to add it to the user documentation here:

Ciao,
Andrea



 
To unsubscribe from this group and stop receiving emails from it, send an email to geopaparazzi-us...@googlegroups.com.

CatalystDROID

unread,
Jan 21, 2014, 3:52:27 PM1/21/14
to geopapara...@googlegroups.com, GFOSS. it
Can you use this to create offline basemaps?

Tim Howard

unread,
Jan 22, 2014, 7:32:40 AM1/22/14
to geopapara...@googlegroups.com
Yes. The tiles (or tile sets) you create are stored locally (usually in the maps folder on the sd card on your unit) and thus are available with no connectivity (offline). This works particularly well for basemaps. 

Tim

CatalystDROID

unread,
Jan 22, 2014, 10:25:53 AM1/22/14
to geopapara...@googlegroups.com
Is there any directions out there or a how to?  Or could you provide me with the an example how to maybe?

Tim Howard

unread,
Jan 22, 2014, 10:55:38 AM1/22/14
to geopapara...@googlegroups.com
I can't help you with GeopapaTile, but if you get it the plugin to work, it would be helpful if you could write directions.  Did you get the plugin to install in QGis?

For other methods....

I'd start by reading the wiki files for geopaparazzi, starting here:


I have had great luck with the OpenAndroMaps discussed there.   If you find places in the wiki that need more description, I'm sure your additions would be appreciated. 

You might also want to check out the new wiki pages associated with .mapurl files:


You might also look at the discussion of using GDAL, here, which has also worked for me:

Simone Bianchi

unread,
Jan 22, 2014, 9:13:37 PM1/22/14
to geopapara...@googlegroups.com
Dear all,
please find a simple 'how to' guide for the plugin, based on the 'Help' section provided by the author, Ruggero Valentinotti. I hope it helps, it can be uploaded on the wiki. Keep in mind that it's based on a test and try use! For example, I run some tests changing the 'pixel width' but didn't see any apparent change.

GeoPapatile

Installation: The plugin is available from the plugin manager.

Map preparation: Arrange the map as you prefer. The tiles will be created based only on the portion visible in the map window. (Tip: keep the width of lines thin, 0.1 or 0.2).

Tiles creation: When ready, click on the GeoPapatile button or activate it from the Plugins menu. In the command window, check the following parameters:
  • Project CRS: the Project Coordinate Reference System will be automatically identified by the plugin.
  • DPI: Resolution of the output image. You can keep the default.
  • WIDTH [pixel]: Pixel width of the output image. You can keep the default.
  • Zoom level: Zoom levels to render in the GeoPaparazzi map (format: 2-5 or 10). Change it according to the scale you need to work with.
  • Image name: name of the tif image reprojected to EPSG:3785 by using gdalwarp
  • Tiles name: name of the directory containing small tiles and metadata.

Tip: rendering at level 15 or 16, with large maps, will take some time to process. The plugin may seem to do not respond, do not try to use QGis meanwhile.

Export to GeoPaparazzi: Copy all the contents of the target directory to directly to the folder 'Maps' on your android device. GeoPaparazzi will read it automatically at start up. To change the tiles source, go to Option -> Select Tile Source and choose the desired one.






2014/1/22 Tim Howard <tgho...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "geopaparazzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geopaparazzi-us...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Simone Bianchi
www.simonebianchi.eu

Simone Bianchi

unread,
Jan 22, 2014, 9:29:05 PM1/22/14
to geopaparazzi-users
Dear all,
sorry to bother you again, but now my GeoPaparazzi displays only the last custom set of tiles i copied in the folder 'Map' after creating them with GeoPapatile. I'm sure before I was able to change maps on the go, but now the older tiles are not visible anymore. GeoPaparazzi jump to the 'map center' of those tiles, but doesn't display them. I might have deleted/overwritten some files?

Cheers
Simone


2014/1/23 Simone Bianchi <simonb...@gmail.com>



--
Simone Bianchi
www.simonebianchi.eu

andrea antonello

unread,
Jan 24, 2014, 7:18:38 AM1/24/14
to geopapara...@googlegroups.com
Hi Simone,
it might be that in the last version something has changed.

Could you get us a zip of a test dataset that gives the problem you
describe to check what the problem is?

Thanks
Andrea
> You received this message because you are subscribed to the Google Groups
> "geopaparazzi-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Simone Bianchi

unread,
Feb 10, 2014, 10:00:13 PM2/10/14
to geopaparazzi-users
Dear all,
this is one of the datasets that are giving me problems. I was able to visualize it in the field, but now if I select it again as tile source, nothing is shown on the map. The same is happening today for all tile sources i prepared myself.

Thanks
Simone

ps sorry for the large attachment, I have to split it in 3 messages!
test.part1.rar
test.part2.rar

Simone Bianchi

unread,
Feb 10, 2014, 10:01:37 PM2/10/14
to geopaparazzi-users
Message 2/3
--
Simone Bianchi
www.simonebianchi.eu

test.part4.rar
test.part3.rar

Simone Bianchi

unread,
Feb 10, 2014, 10:03:00 PM2/10/14
to geopaparazzi-users
Message 3/3.

Again sorry for all the attachments!!
--
Simone Bianchi
www.simonebianchi.eu

test.part5.rar
test.part6.rar

andrea antonello

unread,
Feb 12, 2014, 4:40:20 AM2/12/14
to geopapara...@googlegroups.com
Hi Simone,
first thing: don't send all these attachments in mailinglist! Please! :)
I suggest you to use free upload services like: http://ge.tt/ or google drive.
Second: please do not send rar archives. The linux distributions do
not have a free driver for that. Please use ZIP.

Third (finally a nice one): your data works perfectly for me. I loaded
it and pushed "center on map" an the attached screenshot appeared.

Cheers,
Andrea
tralach.png

r.ar...@forest-carbon.org

unread,
Feb 18, 2014, 12:01:08 AM2/18/14
to geopapara...@googlegroups.com
Hi Simone, were you able to view your tile?
I'm having the same problem. I've only been able to view the default .mapurl's and an mbtile I found on another site.
But I'm only getting a white extent for any tiles I try to create from the QGIS plugin.
I can see the tiles are created properly in the folder tree, and the extent of the image is visible as a white square in the corresponding zoom levels. But no imagery.
I'm using the latest version of Geopaparazzi that's meant to have the TMS fix.
I'm thinking it might be a device issue. I'm trying it on a Samsung Note 8.0. What are you trying it on?
I think it might be related to the device as I'm having a similar problem with the media::image type in ODK Collect.
>>>> >>> For more options, visit https://groups.google.com/groups/opt_out.
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Simone Bianchi
>>>> >> www.simonebianchi.eu
>>>> >>
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Simone Bianchi
>>>> > www.simonebianchi.eu
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> > Groups
>>>> > "geopaparazzi-users" group.
>>>> > To unsubscribe from this group and stop receiving emails from it, send
>>>> > an
>>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "geopaparazzi-users" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>>
>>> --
>>> Simone Bianchi
>>> www.simonebianchi.eu
>>>
>>
>>
>>
>> --
>> Simone Bianchi
>> www.simonebianchi.eu
>>
>
>
>
> --
> Simone Bianchi
> www.simonebianchi.eu
>
> --
> You received this message because you are subscribed to the Google Groups
> "geopaparazzi-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an

Simone Bianchi

unread,
Feb 25, 2014, 3:07:40 AM2/25/14
to geopaparazzi-users
Dear all,
it is exactly the same issue, I visualize a white square with no imagery. I'm using a Samsung Note 8.0 too. It is just weird that I was able to visualize them correctly at the beginning for few days.

Cheers
Simone


To unsubscribe from this group and all its topics, send an email to geopaparazzi-us...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
Simone Bianchi
www.simonebianchi.eu

r.ar...@forest-carbon.org

unread,
Feb 27, 2014, 3:46:33 AM2/27/14
to geopapara...@googlegroups.com
My current workaround is to create the tiles in TileMill instead of with the plugin - but this takes a verrry long time compared to the plug-in and something like MapTiler (which Geopapa doesn't like either, no matter what editing I do to the .mapurl file).

I resolved my ODK Collect issue, but still think it might have something to do with the Samsung Note 8 device.

Would be great if Geopaparazzi could test this device as it's becoming increasingly popular in developing countries, especially where remote off-line work is necessary in the field.

We're trying to use Geopapa for satellite imagery classification ground truthing and other forest inventory related work.

Fabio, Moovida? Que dicen ustedes?
>>>> >>> For more options, visit https://groups.google.com/groups/opt_out.
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Simone Bianchi
>>>> >> www.simonebianchi.eu
>>>> >>
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Simone Bianchi
>>>> > www.simonebianchi.eu
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> > Groups
>>>> > "geopaparazzi-users" group.
>>>> > To unsubscribe from this group and stop receiving emails from it, send
>>>> > an
>>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "geopaparazzi-users" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>>
>>> --
>>> Simone Bianchi
>>> www.simonebianchi.eu
>>>
>>
>>
>>
>> --
>> Simone Bianchi
>> www.simonebianchi.eu
>>
>
>
>
> --
> Simone Bianchi
> www.simonebianchi.eu
>
> --
> You received this message because you are subscribed to the Google Groups
> "geopaparazzi-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "geopaparazzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geopaparazzi-users+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Simone Bianchi
www.simonebianchi.eu

andrea antonello

unread,
Feb 27, 2014, 4:32:52 AM2/27/14
to geopapara...@googlegroups.com
> My current workaround is to create the tiles in TileMill instead of with the
> plugin - but this takes a verrry long time compared to the plug-in and
> something like MapTiler (which Geopapa doesn't like either, no matter what
> editing I do to the .mapurl file).

I am not using those, so I am not sure how to help.
I will try to get a small testset to check if it is a problem of format.

> I resolved my ODK Collect issue, but still think it might have something to
> do with the Samsung Note 8 device.
>
> Would be great if Geopaparazzi could test this device as it's becoming
> increasingly popular in developing countries, especially where remote
> off-line work is necessary in the field.

Well that is indeed a great thing to know.

I do not own a Note 8, so it would be nice to hear of other people in
the list. Anyone around that can perform some tests?

> We're trying to use Geopapa for satellite imagery classification ground
> truthing and other forest inventory related work.
>
> Fabio, Moovida? Que dicen ustedes?

I am willing to help, but need to be able to reproduce the problem. I
tried Simone's data and they work for me. Would you care to share a
zip with your non-working data? Maybe we find something with those.

Cheers,
Andrea
>>>> >>>> >>> geopaparazzi-us...@googlegroups.com.
>>>> >>>> >>> For more options, visit
>>>> >>>> >>> https://groups.google.com/groups/opt_out.
>>>> >>>> >>
>>>> >>>> >>
>>>> >>>> >>
>>>> >>>> >>
>>>> >>>> >> --
>>>> >>>> >> Simone Bianchi
>>>> >>>> >> www.simonebianchi.eu
>>>> >>>> >>
>>>> >>>> >
>>>> >>>> >
>>>> >>>> >
>>>> >>>> > --
>>>> >>>> > Simone Bianchi
>>>> >>>> > www.simonebianchi.eu
>>>> >>>> >
>>>> >>>> > --
>>>> >>>> > You received this message because you are subscribed to the
>>>> >>>> > Google
>>>> >>>> > Groups
>>>> >>>> > "geopaparazzi-users" group.
>>>> >>>> > To unsubscribe from this group and stop receiving emails from it,
>>>> >>>> > send
>>>> >>>> > an
>>>> >>>> > email to geopaparazzi-us...@googlegroups.com.
>>>> >>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>> >>>>
>>>> >>>> --
>>>> >>>> You received this message because you are subscribed to a topic in
>>>> >>>> the
>>>> >>>> Google Groups "geopaparazzi-users" group.
>>>> >>>> To unsubscribe from this topic, visit
>>>> >>>>
>>>> >>>> https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
>>>> >>>> To unsubscribe from this group and all its topics, send an email to
>>>> >>>> geopaparazzi-us...@googlegroups.com.
>>>> >>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> --
>>>> >>> Simone Bianchi
>>>> >>> www.simonebianchi.eu
>>>> >>>
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Simone Bianchi
>>>> >> www.simonebianchi.eu
>>>> >>
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Simone Bianchi
>>>> > www.simonebianchi.eu
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> > Groups
>>>> > "geopaparazzi-users" group.
>>>> > To unsubscribe from this group and stop receiving emails from it, send
>>>> > an
>>>> > email to geopaparazzi-us...@googlegroups.com.
>>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "geopaparazzi-users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> geopaparazzi-us...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>>
>> --
>> Simone Bianchi
>> www.simonebianchi.eu
>>
> --
> You received this message because you are subscribed to the Google Groups
> "geopaparazzi-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to geopaparazzi-us...@googlegroups.com.

Tim Howard

unread,
Feb 27, 2014, 11:45:14 AM2/27/14
to geopapara...@googlegroups.com
We own a Note 8 and are thinking about getting more to use as our primary data collection tool so we are very interested in the resolution of this problem too. 

We'd be happy to perform tests and help figure this out (although responses may be delayed by a few days as the person who would primarily work on this is out at a conference). 

Best, 
Tim

andrea antonello

unread,
Feb 28, 2014, 1:27:43 AM2/28/14
to geopapara...@googlegroups.com
Hi Tim,

> We own a Note 8 and are thinking about getting more to use as our primary
> data collection tool so we are very interested in the resolution of this
> problem too.
>
> We'd be happy to perform tests and help figure this out (although responses
> may be delayed by a few days as the person who would primarily work on this
> is out at a conference).

great. I think the first step would be to just try out a dataset by
Simone and Ricardo and see if you experience the same problem.

Based on that we can do some tests, maybe in debug mode, if you have
access to the device at some point.

Cheers,
Andrea

> Best,
> Tim
>
>
> On Thursday, February 27, 2014 4:32:52 AM UTC-5, moovida wrote:
>>
>>
>> I do not own a Note 8, so it would be nice to hear of other people in
>> the list. Anyone around that can perform some tests?
>>
>>

Mark Johnson

unread,
Feb 28, 2014, 7:30:37 AM2/28/14
to geopapara...@googlegroups.com, GFOSS. it

I tried this plugin and received the same error as above:
file missing: tilemapresource.xml

This was caused by the image not being created
- thus gedal2tiles.py did not run
-- and therefore tilemapresource.xml was not created.

I placed an image in the directory and the gdalwarp then ran, but failed with gdal2tiles.py due to the parameter '-r bilinear'
- removing this parameter (which is the same as '-r average') the tiles were created.

Since the QGIS version 2.0, many thing no longer work correctly using the default instalment on ubuntu
- most of the icons on the toolbar do not show up
Also there was spatialite problems.
So I installed the nightly built version, which resolved the spatialite problem - but not the icon problem

Why the code 'image.save(myImagePath , "tif") '  does not work I cannot say.

Why, when images are created, they do not showup on a specific machine
- this is most probably not a problem of of the plugin or gdal2tiles or geopaparazzi

It would be interesting to know if existing .mbtiles files show up properly on these machines.

In :
http://www.mj10777.de/public/download/mbtiles/

there are some small ones that can be used to test this [1861_Mercator_World.mbtiles is 1.4MB] and should work.

Last December I was playing around with the last know open-source gdal2tiles version (which is now closed source) and build in logic to directly create mbtiles as they are created for geopaparazzi:

https://github.com/mj10777/mapmbtiles

The python code is far from perfect, but the created mbtiles files show up correctly in qgis and geopaparazzi
- the 1870.Berlin_Umgebung.2_gb.mbtiles was created with this script

When installed on linux (there is a deb file), it creates a 'gdal2mbtiles' which links to the installed library.
- this uses the same parameters as gdal2tiles.py : just add '--mbtiles' as a parameter and it will create a mbtiles file with the same name as the given image in the same directory

There is a samples directory that show how to use the library from a simple python script
- fill a mbtiles from a WMS server (as geopaparazzi does)
- create an image (when tif is used a geotif is created) from the mbtiles (all or only a portion)
- copy a portion of one mbtiles into another

and other functions from the original `Landez` project code that have not been tested yet

The install scripts for windows and mac have not been tested.

If GeopapaTile could check if 'gdal2mbtiles' exists, it would only have to add the '--mbtiles' as a parameter to create a mbtiles file directly.


Mark Johnson

Zsolt Pataki

unread,
Mar 3, 2014, 11:58:49 AM3/3/14
to geopapara...@googlegroups.com, GFOSS. it
Hi,

We created dozens of tilemaps for our project by Geopap QGIS plugin, and we experienced that the Geopaparazzi shows the maps only by internet connection.
When Wifi and Data Connect closed the app is showing only the white tile 'shadows'. When the smartphone get internet connection on any way the tiles
are shown immediately.
The offline data must to be online...?!

Cheers,
Zsolt

Mark Johnson

unread,
Mar 3, 2014, 1:32:01 PM3/3/14
to geopapara...@googlegroups.com, GFOSS. it
No, this should not be so.
Could you please try to make an archive of one of these  tilemaps (including the .mapurl file) and send it to me please, so that I could try to look for a cause of this problem. Also please name the machine that you are working with.

I tried this plugin a few days ago and although on my linux machine it did not work correctly, the created .mapurl and the tiles looked correct.

On our android machines it works correctly, so without a sample of how it does not work, it is difficult to determine what the cause could be.

Mark Johnson

Cheers,
Zsolt

Zsolt Pataki

unread,
Mar 9, 2014, 7:50:05 PM3/9/14
to geopapara...@googlegroups.com, GFOSS. it
Hi Mark,
I couldn't answer to you in last days. Sorry!
I puted an example to my dropbox:

I use the geopap on a Sony Xperia P 
Android 4.1.2

And one of my colleges observed the same situation 
on a different hardware (I dont know the type of that.)

My experiences not changed.
Cheers,
Zsolt

CatalystDROID

unread,
Mar 9, 2014, 8:41:52 PM3/9/14
to geopapara...@googlegroups.com
How is the Note 8 ?  Does it have an SPen?  I have a Note 2 and it is an excellent device.  But something with a bigger display for field work would be better especially with an S-Pen.

Mark Johnson

unread,
Mar 10, 2014, 7:28:08 AM3/10/14
to geopapara...@googlegroups.com, GFOSS. it


On Monday, 10 March 2014 00:50:05 UTC+1, Zsolt Pataki wrote:
Hi Mark,
I couldn't answer to you in last days. Sorry!
I puted an example to my dropbox:

I use the geopap on a Sony Xperia P 
Android 4.1.2

And one of my colleges observed the same situation 
on a different hardware (I dont know the type of that.)

The cause of this problem is now clear.

The problem here is that when a mapurl is used and NO bounds are given, the whole world is assumed.
Therefore when you open the map, your last position is used (because it is inside -180.0,-85.05113,180.0,85.05113)
- the center parameter is only used: when your present position is OUTSIDE the bounds
-- it is NOT considered desirable, when the map is opened, to ALWAYS zoom to that center position
-- ONLY when that position it is outside the given bounds
Otherwise if you want to see the present position in another map and switch to that map AND it autocratically moved to the center position
- you would have to manoeuvre back to your original position

So the trick here is to set the bounds of the tiles properly, in this case add:

bounds=20.670776367 48.542068764 20.676269531 48.545705492

For this you can use the supplied: tilemapresource.xml:
      <BoundingBox minx="48.52322122677337" miny="20.64462758986457" maxx="48.56322040949905" maxy="20.70158315449930"/>
      <Origin x="48.52322122677337" y="20.64462758986457"/>

Please NOTE: gdal2tiles has always created this file incorrectly: the Latitude/Longitude values are switched!

This is known by the 'GeopapaTile' developer and the mapurl parameter is correctly written
- '    ## attenzione! gdal2tiles.py usa x ed y invertite!'

The bounds parameter should be added to the plugin code:

After line 132 in '.qgis2/python/plugins/GeopapaTile/doGeopapaTile.py' of the plugin:
    f.write("center=%s %s\n" % (xcenter,ycenter))
add this:
    f.write("bounds=%s %s %s %s\n" % (minx,miny,maxx,maxy))

Also checking if the image was really created after 'self.doImage' about line 231:
    self.doImage(imagepath,imagepathNoExt)
    if os.path.isfile(imagepath):

should be added and the gdalwarp and gdal2tiles only done if it does exist.
- this fails on my machine and bring the error reported by another user that the 'tilemapresource.xml' is not being found.
-- since the image is not created, gdal2tiles creates nothing.

Why this fails: no idea.

Mark Johnson, Berlin Germany

 

Simone Bianchi

unread,
Mar 11, 2014, 10:46:21 PM3/11/14
to geopaparazzi-users
Hello Mark,
thanks to get to the core of the problem!!

Unfortunately, I am not able to understand how to solve the issue, my programming skills are very very limited. Are you suggesting we have to modify the doGeopapaTile.py with the lines you are indicating? I can open the file with notepad++ but not sure how to insert your code.

May you share a modified version of the file to let us try it?

Cheers


--
You received this message because you are subscribed to a topic in the Google Groups "geopaparazzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geopaparazzi-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Simone Bianchi
www.simonebianchi.eu

Mark Johnson

unread,
Mar 12, 2014, 12:12:54 AM3/12/14
to geopapara...@googlegroups.com
2014-03-12 3:46 GMT+01:00 Simone Bianchi <simonb...@gmail.com>:
Hello Mark,
thanks to get to the core of the problem!!

Unfortunately, I am not able to understand how to solve the issue, my programming skills are very very limited. Are you suggesting we have to modify the doGeopapaTile.py with the lines you are indicating? I can open the file with notepad++ but not sure how to insert your code.
If you can, yes.
Just copy and past this after the line with 'f.write("center=%s %s\n" % (xcenter,ycenter))'

    f.write("bounds=%s %s %s %s\n" % (minx,miny,maxx,maxy))
(making sure that the 'f'.write' is underneath the previous one - Indentation is important in python and save the file)
At least add the 'bounds' parameter into your .mapurl - that in it self will resolve the problem
- making the change would resolve this for new TileSets created, for previous TileSets you must add this yourself.

May you share a modified version of the file to let us try it?
I could, but the plugin does NOT run correctly on my machine so I can really test it properly.
Also with python you must make sure that the indentation is correct - which for the second change is needed for the code that follows.
It would be better if the original autor of the plugin did this .

For Windows users: 'notepad++' is a good program to use when making changes on linux based files. It insures the the files are rewritten to disk in the linux fashion correctly (Eńd-of-Line = '\n' as apposed to windows which is '\n\r' or Mackentosh which is '\r').

Mark

Zsolt Pataki

unread,
Mar 13, 2014, 6:19:08 AM3/13/14
to geopapara...@googlegroups.com, mj1...@googlemail.com
Hello Mark,

Thanks the suggestion!
I tried it, but the core of the problem isn't changed.

I embedded your code snipet into the script, and after that the Geopapa wrote the mapuerl file with the "bounds" parameters.
That's correct!

But the explained problem exist toward.
You can show an image about:

1. The background map is the downloadable version of Hungary.map (from Thinkgeo osm data server)
   The center of the view is near to the center of my topology tile map.
   I put two bookmarks for the sensing the change of the center.
2. I changed the background map to my topology tiles.
    Nothing viewable, but the center of the view changed slightly to the center of the tile map.
3. I started the wifi connection on the smartphone (red arrow-circle on the upper edge of the view)
    I reopend the map view, and my topology tiles are viewable.

I think it's not only the problem of the generated tiles, but mybe some error in the managing process.
Cheers,
Zsolt

Mark Johnson

unread,
Mar 13, 2014, 7:37:43 AM3/13/14
to geopapara...@googlegroups.com, mj1...@googlemail.com
It was ONLY a problem with the  managing process, the tiles are ok.
I had forgotten about the online problem altogether.

We had added more internet connection checking a while ago and forgot the 'OR isFile' portion for local files.
Andreas is now adding this, so this matter should now be resolved.

Mark


Cheers,
Zsolt

Zsolt Pataki

unread,
Mar 13, 2014, 9:10:30 AM3/13/14
to geopapara...@googlegroups.com, mj1...@googlemail.com
Thanks!
I'll very happy!!!
Zsolt


Simone Bianchi

unread,
Mar 17, 2014, 3:50:45 AM3/17/14
to geopaparazzi-users, mj1...@googlemail.com
Sorry again, but I'm not feeling confident to modify the script file myself, would anyone share it to let me run a test?

Thanks!
Simone


--
You received this message because you are subscribed to a topic in the Google Groups "geopaparazzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geopaparazzi-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Simone Bianchi
www.simonebianchi.eu

Mark Johnson

unread,
Mar 19, 2014, 12:43:03 AM3/19/14
to geopapara...@googlegroups.com, mj1...@googlemail.com


On Monday, 17 March 2014 08:50:45 UTC+1, Simone Bianchi wrote:
Sorry again, but I'm not feeling confident to modify the script file myself, would anyone share it to let me run a test?
My working copy can be found here:

https://github.com/mj10777/gdal2mbtiles/blob/master/GeoPapaTile/doGeopapaTile.py

You would have to replace the original file ( doGeopapaTile.py) with this version.

Mark Johnson

Thanks!
Simone


2014-03-13 20:10 GMT+07:00 Zsolt Pataki <pzs...@gmail.com>:
Thanks!
I'll very happy!!!
Zsolt


--
You received this message because you are subscribed to a topic in the Google Groups "geopaparazzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geopaparazzi-users+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Simone Bianchi
www.simonebianchi.eu

Zsolt Pataki

unread,
Mar 21, 2014, 1:09:16 PM3/21/14
to geopapara...@googlegroups.com, mj1...@googlemail.com
Hello Mark,

Do you know about the planned release date of the next releaze of Geopaparazzi?
The problem of restricted usability of "home made" tilemaps wihout internet connection is critical for me.
Our fieldwork project will start in april, and we want use Geopaparazzi like a helper application.

Cheers!
Zsolt

Mark Johnson

unread,
Mar 22, 2014, 12:58:45 AM3/22/14
to geopapara...@googlegroups.com, mj1...@googlemail.com
Sorry, I can give no Information about when a update is planned.

Until then I would suggest using the 'mbtiles=' parameter of the .mapurl
- in this way the local-tiles would be read into a mbtiles file

https://github.com/geopaparazzi/geopaparazzi/wiki/.mapurl-parameters

And a practical sample .mapurl:
https://github.com/geopaparazzi/geopaparazzi/wiki/.mapurl-sample_01

Sample (adapt to your needs):
mbtiles=stadt-berlin.de/berlin_postleitzahlen.mbtiles
name=Berliner Postleitzahlen ; 1:5000 ;1:10000
description=Darstellung der Postleitzahlengebiete und deren Postleitzahlen.
defaultzoom=17
format=jpg
request_type=run,fill,load

When set with the above, start geopaparazzi
- it will, in the background, fill the mbtiles database with all of the tiles found
- the 'fill' parameter will create a list of all the tiles to read and store it a 'request_url' table
- when completed, the 'load' parameter will store the tiles into the mbtiles file until the 'request_url' table is empty and will be deleted
-- it will NOT tell you when it is finished

Once completed, you would simply load the mbtiles file instead of the .mapurl
- this will ALWAYS work in a offline environment
- the created mbtiles file can then be copied to any other machine that need it

Tiles, with all of its directories is very wasteful for a storage device.
- combining this into one file is much better - for android sdcard: maximal 2 GB

Mark

Cheers!
Zsolt

Mark Johnson

unread,
Mar 22, 2014, 1:53:44 AM3/22/14
to geopapara...@googlegroups.com, mj1...@googlemail.com


On Friday, 21 March 2014 18:09:16 UTC+1, Zsolt Pataki wrote:

This is the adapted .mapurl from the Tile set that you sent me:

url=test_tiles/szogliget/ZZZ/XXX/YYY.png
minzoom=13
maxzoom=16
center=20.6731053722 48.5432208181
# 34 tiles were read in with this setting  [was original value]
# bounds=20.670776367 48.542068764 20.676269531 48.545705492
# 196 tiles were read in with this setting [all of the tiles] value taken from tilemapresource.xml
bounds=20.64462758986457 48.52322122677337 20.70158315449930 48.56322040949905 
type=tms
# szogliget.mbtiles 2.9 MB
mbtiles=test_tiles/szogliget.mbtiles
name=Tiles set sent by Zsolt Pataki
description=423 files with 22.4 MB.
defaultzoom=16
format=jpg
# took 1.3 seconds t fill the request_url table
# request_type=run,fill
# took 16.487 to store the 196 tiles into the mbtile file
request_type=run,load
# request_type=run,fill,load
# 03-22 06:29:09.186 29139 29187 I GEOPAPARAZZI: mbtiles_Async.On doInBackground[Tiles set sent by Zsolt Pataki]
# 03-22 06:29:25.673 29139 29139 I GEOPAPARAZZI: mbtiles_Async.[-I-> on_request_url[Tiles set sent by Zsolt Pataki][]: tile_id[16-36536-42904.tms] retrieved[189] [96,4286 %] open[7] total[196]]

It took about 18 seconds to complete the task.
After storing a specific tile, the corresponding record in the request_url will be deleted.
- in this way, should geopaparazzi be stopped while filling the mbtiles file
-- it will continue where it left off when restarted until the request_url is empty

The final mbtiles size was 2.9 MB as apposed to 22.4 MB of the original data
- all if the *.png.aux.xml and the .html files can be removed
-- they are never used

Mark

Zsolt Pataki

unread,
Mar 22, 2014, 5:55:44 PM3/22/14
to geopapara...@googlegroups.com, mj1...@googlemail.com
Hello Mark,

Thank you! I will try to make the suggested method.

Simone Bianchi

unread,
Apr 2, 2014, 12:27:46 AM4/2/14
to geopaparazzi-users, Mark Johnson
Dear all,
i am still stuck at this point.

I changed the doGeopapatile.py with the version you kindly shared on github, but when i run QGis either Python crashes when i run the plugin or the best i can get is an error results as follow:

Starting...

QGis.QGIS_VERSION_INT: - 20001

width:1000 height: 520

gdalwarp -s_srs EPSG:3857 -t_srs EPSG:3785 -r bilinear C:\test/cbpf.tif C:\test/cbpf_3785.tif

gdalwarp:

- Creating output file that is 1000P x 520L.

Processing input file C:\test/cbpf.tif.

0...10...20...30...40...50...60...70...80...90...100 - done.

gdal2tiles.bat -z 12-15 C:\test/cbpf_3785.tif C:\test/cbpf/

gdal2tiles.bat:

-

Error : [C:\test/cbpf/tilemapresource.xml] Output tilemapresource.xml was not created : will exit




Do you know what can be the cause?
Thank
Simone




To unsubscribe from this group and all its topics, send an email to geopaparazzi-us...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Simone Bianchi
www.simonebianchi.eu

Mark Johnson

unread,
Apr 2, 2014, 12:34:54 AM4/2/14
to geopapara...@googlegroups.com, Mark Johnson


On Wednesday, 2 April 2014 06:27:46 UTC+2, Simone Bianchi wrote:
Dear all,
i am still stuck at this point.

I changed the doGeopapatile.py with the version you kindly shared on github, but when i run QGis either Python crashes when i run the plugin or the best i can get is an error results as follow:

Starting...

QGis.QGIS_VERSION_INT: - 20001

width:1000 height: 520

gdalwarp -s_srs EPSG:3857 -t_srs EPSG:3785 -r bilinear C:\test/cbpf.tif C:\test/cbpf_3785.tif

gdalwarp:

- Creating output file that is 1000P x 520L.

Processing input file C:\test/cbpf.tif.

0...10...20...30...40...50...60...70...80...90...100 - done.

gdal2tiles.bat -z 12-15 C:\test/cbpf_3785.tif C:\test/cbpf/

gdal2tiles.bat:

-

Error : [C:\test/cbpf/tilemapresource.xml] Output tilemapresource.xml was not created : will exit

Yes, that means that 'gdal2tiles.bat' did not run correctly
-  'gdal2tiles.bat' did not create  the file tilemapresource.xml

Not being a Windows User, I cannot say why this Windows specfic '.bat' files does not work.
Sorry.

Mark



Do you know what can be the cause?
Thank
Simone


2014-03-19 11:43 GMT+07:00 Mark Johnson <mj1...@googlemail.com>:


On Monday, 17 March 2014 08:50:45 UTC+1, Simone Bianchi wrote:
Sorry again, but I'm not feeling confident to modify the script file myself, would anyone share it to let me run a test?
My working copy can be found here:

https://github.com/mj10777/gdal2mbtiles/blob/master/GeoPapaTile/doGeopapaTile.py

You would have to replace the original file ( doGeopapaTile.py) with this version.

Mark Johnson

Thanks!
Simone


2014-03-13 20:10 GMT+07:00 Zsolt Pataki <pzs...@gmail.com>:
Thanks!
I'll very happy!!!
Zsolt


--
You received this message because you are subscribed to a topic in the Google Groups "geopaparazzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geopaparazzi-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Simone Bianchi
www.simonebianchi.eu

--
You received this message because you are subscribed to a topic in the Google Groups "geopaparazzi-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geopaparazzi-users/TjSLYPB7Lyk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geopaparazzi-users+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Simone Bianchi
www.simonebianchi.eu

Reply all
Reply to author
Forward
0 new messages