|
2010-11-05
, 21:14
|
|
Posts: 224 |
Thanked: 80 times |
Joined on Nov 2009
|
#42
|
|
2010-11-06
, 01:41
|
|
Posts: 224 |
Thanked: 80 times |
Joined on Nov 2009
|
#43
|
|
2010-11-06
, 13:32
|
Posts: 40 |
Thanked: 18 times |
Joined on May 2008
|
#44
|
Ok I got the maps into Mappero. I replaced some maps in the cache (google cycling) and now some Nautical maps appear.
I just need to experient a bit more now as I have 4 BSBCharts in total (only loaded one) that I want to stitch together to make one set of gtiles.
tiles-merge.py <folder 1> <folder 2> <folder 3> <folder 4> <result folder>
tiles-merge.py --gtiles <result folder>
The Following User Says Thank You to vadp For This Useful Post: | ||
|
2010-11-06
, 19:46
|
|
Posts: 224 |
Thanked: 80 times |
Joined on Nov 2009
|
#45
|
|
2010-11-07
, 08:19
|
Posts: 40 |
Thanked: 18 times |
Joined on May 2008
|
#46
|
VadP. Your scripts and instructions and help are very greatly appreciated. Thanks very much !!
Do you reacall any other threads about custom layering? I see that Google traffic, Yandex Traffic ad Yandex Hybrid can be layered over a google map. If I could layer the Nauticals in the same way that would be quite cool.
Also: If you have time to explain the webserver approach to adding a repository that would be appreciated too
|
2010-11-11
, 21:00
|
|
Posts: 224 |
Thanked: 80 times |
Joined on Nov 2009
|
#47
|
ModRana uses the same folder and file structure as Mappero and also supports custom layer definitions, the only difference is, that there is no GUI for managing the layer definitions in modRana (yet).
Map tiles are stored in MyDOcs/.maps, each layer has its own folder there (its the same in Mappero).
If you want to make a custom layer, just go to /opt/modrana/map_config.conf, copy one of the layer definitions, and modify it like this:
Code:
label is the name for the layer displayed in modRanaCode:[osma] label=My custom layer url=http://my.custom.tiles.url type=png max_zoom=17 min_zoom=0 folder_prefix=my_custom_layer_folder coordinates=osm
url if your custom tiles are not accessible from somewhere online, just paste some nonexistent url there, so that automatic downloads for tiles outside of you coverage will fail
folder_prefix a folder in MyDocs/.maps/ where you have the tiles for your custom layer
Or, you can just dump the tiles to a tile folder for an existing layer, modRana will happily use the new tiles, even if they don't actually belong to the layer.
Also make sure that options->map->storage is set to files (eq. modRana the tiles files and not the sqlite database to load/store tiles).
BTW, a files -> db batch-loader is planed, as the database is much more space efficient than so many folders and small files, on the FAT32 filesystem.
|
2010-11-16
, 03:16
|
Posts: 5 |
Thanked: 0 times |
Joined on Nov 2010
|
#48
|
|
2010-11-16
, 08:10
|
Posts: 40 |
Thanked: 18 times |
Joined on May 2008
|
#49
|
I'm currently using "$Id: gdal2tiles.py 18194 2009-12-06 20:07:45Z rouault $"
-wo CUTLINE=POLYGON(()) -of VRT out\18446_1.aux_vrt out\18446_1.vrt
ERROR 1: Failed to parse CUTLINE geometry wkt.
The Following User Says Thank You to vadp For This Useful Post: | ||
|
2010-11-16
, 12:06
|
Posts: 5 |
Thanked: 0 times |
Joined on Nov 2010
|
#50
|
That's correct the POLYGON thing must have a list of pixel coordinates to crop the raster. Can you post a full dump of the command?
It looks like you messed up with GDAL, as now the script complains it cannot find gdal utilities. Which version do you use?
bsb2gdal.bat is scecifically tailored to work with GDAL from http://vbkto.dyndns.org/sdk/release-...server-5-6.zip.
So, if you installed any other version -- remove it.
Then install the version above. Check bsb2gdal.bat for Python and GDAL locations. Then launch it and type
<GDAL location>\bin;<GDAL location>\bin\proj\apps;<GDAL location>\bin\gdal\apps;
etc, etc
Last edited by vadp; 2010-11-05 at 18:47.