jonasstein / scanaerial

Fuzzy Select plugin for JOSM
44 stars 12 forks source link

"could not be loaded, blanking tile" error #22

Closed xmd5a2 closed 7 years ago

xmd5a2 commented 7 years ago

I'm experiencing troubles with this set of tiles https://dl.dropboxusercontent.com/u/4624786/osm/gdal_tiles.zip which was generated by

gdal2tiles.py --profile=mercator -d --resampling=near -z 1-12 treecover_with_gain_and_loss.tif gdal_tiles
xmd5a@xmd5a-desktop ~ $ python /home/xmd5a/.josm/plugins/ext_tools/scanaerial/scanaerial.py 42.364138361876485 47.97348243944979 12
URL: file:/home/xmd5a/temp/66/gdal_tiles/12/2593/2581.png
Download took 0.002905 sec
could not be loaded, blanking tile
could not be loaded, blanking tile
URL: file:/home/xmd5a/temp/66/gdal_tiles/12/2593/2580.png
Download took 0.00021 sec
could not be loaded, blanking tile
URL: file:/home/xmd5a/temp/66/gdal_tiles/12/2594/2581.png
Download took 0.000147 sec
could not be loaded, blanking tile
URL: file:/home/xmd5a/temp/66/gdal_tiles/12/2594/2580.png
Download took 0.000114 sec
First walk (masking): 1.549797
Colour table has 2 entries
B/W MaxFilter: 0.006489
could not be loaded, blanking tile
could not be loaded, blanking tile
could not be loaded, blanking tile
could not be loaded, blanking tile
Found 1604 normales here.
Second walk (leaving only poly): 1.937599
line post-found; simplified to 9
Normales walk: 1.946439, 
<osm version="0.6"><node id="-1" lon="47.9663085938" lat="42.4152193809" version="1" /><node id="-2" lon="47.9048538208" lat="42.4152193809" version="1" /><node id="-3" lon="47.9043388367" lat="42.4148391792" version="1" /><node id="-4" lon="47.9043388367" lat="42.3138775661" version="1" /><node id="-5" lon="47.9048538208" lat="42.3134967507" version="1" /><node id="-6" lon="48.0414962769" lat="42.3134967507" version="1" /><node id="-7" lon="48.042011261" lat="42.3138775661" version="1" /><node id="-8" lon="48.042011261" lat="42.4148391792" version="1" /><node id="-9" lon="48.0414962769" lat="42.4152193809" version="1" /><way id="-1" version="1"><nd ref="-9" /><nd ref="-8" /><nd ref="-7" /><nd ref="-6" /><nd ref="-5" /><nd ref="-4" /><nd ref="-3" /><nd ref="-2" /><nd ref="-1" /><nd ref="-9" /> <tag k="source:zoomlevel" v="12" />" <tag k="source:tracer" v="scanaerial" />" <tag k="natural" v="wood" />" <tag k="source:position" v="Hansen GFC2015 treecover2000" />"</way></osm>All done in: 3.508194

My scanaerial.cfg is:

[WMS]
fixedzoomlevel = 12

server_api = tms
server_name = Hansen GFC2015 treecover2000
server_url = file:/home/xmd5a/temp/66/gdal_tiles/{zoom}/{x}/{-y}.png

[SCAN]
douglas_peucker_epsilon = 0.60
deactivate_simplifying = 0
colour_str = 30
maxfilter_setting = 3
size_limit = 200

[TAGS]
natural = wood

I tried to generate tiles using QGis QMetaTiles plugin but same error. JOSM can render these tiles without any problem. I'm using latest version of scanaerial from this repo.

Vort commented 7 years ago

@xmd5a2, but you are getting result actually (despite of this message): Found 1604 normales here. Is it incorrect?

xmd5a2 commented 7 years ago

@Vort yes, returned OSM data is just squares regardless of actual data at given coordinates and colour_str (tried from 1 to 40). Tiles are actually 1 bit https://dl.dropboxusercontent.com/u/4624786/osm/2554.png

Vort commented 7 years ago

@xmd5a2, can you try black & white instead of black & transparent?

xmd5a2 commented 7 years ago

@Vort It works! Thank you.