This object is in archive! 
Maps of Catalunya Spain
Answered
The best topo maps of the Catalunya region of Spain are those produced by Institut Cartogràfic i Geològic de Catalunya (ICGC). Try zooming in here for example http://www.icc.cat/appdownloads/
The ICGC has apps for both Android and IOS which use this mapping but the apps are very basic and limited in what they can do. A better bet is the Android app Backcountry Navigator, which can download the mapping. However, I should much prefer to use Locus and therefore wonder if it's possible for the powers that be to include the ICGC maps as a downloadable option?
If they provide the tiles for free, you would have to find out the access URL rules and extend your providers.xml for Locus, similar to below.
<provider id="10023" type="0" visible="true" background="-1">
<name>Google</name>
<mode>Terrain</mode>
<url><![CDATA[http://mt{s}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}]]></url>
<serverPart>0;1</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>23</zoomMax>
<tileSize>256</tileSize>
<countries>World</countries>
<attribution><![CDATA[(c)2015 Google - Map data]]></attribution>
<extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0]]></extraHeader>
<extraHeader><![CDATA[Referer#http://www.google.com/maps/]]></extraHeader>
<usage>road,city</usage>
</provider>
If they provide the tiles for free, you would have to find out the access URL rules and extend your providers.xml for Locus, similar to below.
<provider id="10023" type="0" visible="true" background="-1">
<name>Google</name>
<mode>Terrain</mode>
<url><![CDATA[http://mt{s}.google.com/vt/lyrs=t&x={x}&y={y}&z={z}]]></url>
<serverPart>0;1</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>23</zoomMax>
<tileSize>256</tileSize>
<countries>World</countries>
<attribution><![CDATA[(c)2015 Google - Map data]]></attribution>
<extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0]]></extraHeader>
<extraHeader><![CDATA[Referer#http://www.google.com/maps/]]></extraHeader>
<usage>road,city</usage>
</provider>
@ Michael
it´s not with x/y/z
it is with bbox
http://mapcache.icc.cat/map/bases/service?LAYERS=topo&FORMAT=image/jpeg&EXCEPTIONS=application/vnd.ogc.se_xml&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:25831&BBOX=378224,4606396,379504,4607676&WIDTH=256&HEIGHT=256
@ Michael
it´s not with x/y/z
it is with bbox
http://mapcache.icc.cat/map/bases/service?LAYERS=topo&FORMAT=image/jpeg&EXCEPTIONS=application/vnd.ogc.se_xml&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG:25831&BBOX=378224,4606396,379504,4607676&WIDTH=256&HEIGHT=256
Great finding - and it flies in Locus ?
Great finding - and it flies in Locus ?
Hello Christopher,
thank you for interesting info. Map looks quite interesting. We consider if would be possible to add these maps into Locus in official way.
However would you please consider/compare the CNIG Spain map that are available in Menu > Locus Store > Europe > Spain. CNIG map does not contains such detailed scales but it should be also good Topo map
BTW: it seems that it's possible to download custom area in geoTiff format. If you want to play with it you can convert geoTiff to Locus sqlitedb format manually using Mapc2mapc format. Please see how to: http://www.the-thorns.org.uk/mapping/help/locus.html
Thank you
Best regards
Petr
Hello Christopher,
thank you for interesting info. Map looks quite interesting. We consider if would be possible to add these maps into Locus in official way.
However would you please consider/compare the CNIG Spain map that are available in Menu > Locus Store > Europe > Spain. CNIG map does not contains such detailed scales but it should be also good Topo map
BTW: it seems that it's possible to download custom area in geoTiff format. If you want to play with it you can convert geoTiff to Locus sqlitedb format manually using Mapc2mapc format. Please see how to: http://www.the-thorns.org.uk/mapping/help/locus.html
Thank you
Best regards
Petr
Thank you all for your comments. The technical ones look a bit too complex for me but give me encouragement.
Petr, I should love to see these maps added "officially". I have tried the CNIG map but as you say the detailed scale is not available. Also I have found that there are occasionally significant differences in what the maps show for some trails between the maps, especially as you look at the more detailed maps.
I shall have a look at the geoTiff option.
Regards,
Chris.
Thank you all for your comments. The technical ones look a bit too complex for me but give me encouragement.
Petr, I should love to see these maps added "officially". I have tried the CNIG map but as you say the detailed scale is not available. Also I have found that there are occasionally significant differences in what the maps show for some trails between the maps, especially as you look at the more detailed maps.
I shall have a look at the geoTiff option.
Regards,
Chris.
Hello Christppher
i know WMS maps are not downloadable with locus, but online viewing its possible
add following link to WMS tab
http://geoserveis.icc.cat/icc_mapesmultibase/noutm/wms/service
navigate with a offline vectormap to this area, next activate WMS map with following settings
i found two strange behaviors, perhaps Petr or menion know a solution
- if i center this WMS map, it center N0 E0 southwest africa, so dont use it
- if in background a rastermap e.g. "SQL world" is loaded, wms map didn´t work, on higher ZL map is shifted from real position
Hello Christppher
i know WMS maps are not downloadable with locus, but online viewing its possible
add following link to WMS tab
http://geoserveis.icc.cat/icc_mapesmultibase/noutm/wms/service
navigate with a offline vectormap to this area, next activate WMS map with following settings
i found two strange behaviors, perhaps Petr or menion know a solution
- if i center this WMS map, it center N0 E0 southwest africa, so dont use it
- if in background a rastermap e.g. "SQL world" is loaded, wms map didn´t work, on higher ZL map is shifted from real position
balloni55, thank you for your explanation of the WMS version of this map. It will be helpful in some circumstances but my principal need is for an offline map as the areas in which I wish to travel generally have no phone service.
Regards, Chris
balloni55, thank you for your explanation of the WMS version of this map. It will be helpful in some circumstances but my principal need is for an offline map as the areas in which I wish to travel generally have no phone service.
Regards, Chris
Hello Christopher
after searching i found another mapsource for this map ;-)
attached you find two xml files:
- ICC Catalonia, work inside Locus with installed "Map Tweak" max. download 10000 tiles a day
- ICC-Catalonia_Mobac, for use on PC to create large "RMaps SQLite" offline maps with Mobac at once
one small disadvantage to the WMS map, ZL19 is not available
Have fun
Wolfgang
Hello Christopher
after searching i found another mapsource for this map ;-)
attached you find two xml files:
- ICC Catalonia, work inside Locus with installed "Map Tweak" max. download 10000 tiles a day
- ICC-Catalonia_Mobac, for use on PC to create large "RMaps SQLite" offline maps with Mobac at once
one small disadvantage to the WMS map, ZL19 is not available
Have fun
Wolfgang
Wolfgang,
Many thanks indeed for these. I have managed to get both working and now have the maps in Locus.
Regards,
Chris.
Wolfgang,
Many thanks indeed for these. I have managed to get both working and now have the maps in Locus.
Regards,
Chris.
Hi,
Thanks everybody, I am currently creating an offline map with MOBAC and apparently is working fine.*
I want to confirm that ICGC maps are better than CNIG's, at both high and low zoom levels. ICGC are specially much better at toponomy, where CNIG has a lot of mistakes, even Catalan misspellings (see comparison at zoom level 15 below).
IMHO ICGC maps could also be provided in Locus and recommended by default for Catalonia. Note than ICGC resources have a very permissive license, CC BY 4.0: http://www.icgc.cat/Ajuda/Avis-legal
ICGC resources:
http://www.icgc.cat/Innovacio/Recursos-per-a-desenvolupadors/Tessel-les-vector-i-estils-per-fer-mapes-lleugers-i-apps
http://www.icgc.cat/Innovacio/Recursos-per-a-desenvolupadors/WMS-i-WMTS
ICGC vs CNIG at zoom level 15 (some of these names of places can be checked at https://ca.wikipedia.org/wiki/Llista_de_monuments_de_Santa_Coloma_de_Queralt)
*Only problem I see is that downloading zoom levels > 14 is going to create a huge file. I guess images could be optimized to save 30%-50%. Offtopic: What would be a recommended format for Locus that still keeps images as separate files? (so they could be optimized with tools such as mozjpeg or pngquant). I found http://forum.locusmap.eu/index.php?topic=53.0 but I am a bit confused with so many different formats.
Hi,
Thanks everybody, I am currently creating an offline map with MOBAC and apparently is working fine.*
I want to confirm that ICGC maps are better than CNIG's, at both high and low zoom levels. ICGC are specially much better at toponomy, where CNIG has a lot of mistakes, even Catalan misspellings (see comparison at zoom level 15 below).
IMHO ICGC maps could also be provided in Locus and recommended by default for Catalonia. Note than ICGC resources have a very permissive license, CC BY 4.0: http://www.icgc.cat/Ajuda/Avis-legal
ICGC resources:
http://www.icgc.cat/Innovacio/Recursos-per-a-desenvolupadors/Tessel-les-vector-i-estils-per-fer-mapes-lleugers-i-apps
http://www.icgc.cat/Innovacio/Recursos-per-a-desenvolupadors/WMS-i-WMTS
ICGC vs CNIG at zoom level 15 (some of these names of places can be checked at https://ca.wikipedia.org/wiki/Llista_de_monuments_de_Santa_Coloma_de_Queralt)
*Only problem I see is that downloading zoom levels > 14 is going to create a huge file. I guess images could be optimized to save 30%-50%. Offtopic: What would be a recommended format for Locus that still keeps images as separate files? (so they could be optimized with tools such as mozjpeg or pngquant). I found http://forum.locusmap.eu/index.php?topic=53.0 but I am a bit confused with so many different formats.
Hi pere,
if you are using MOBAC, it can do the compression job for you directly: in the main window, left control pane, Layer settings: custom tile processing. JPEG70 has a very nice compression, and still good results for higher zoom levels.
For ZL 8 you better stay with 90%+
Cheers
Michael
Hi pere,
if you are using MOBAC, it can do the compression job for you directly: in the main window, left control pane, Layer settings: custom tile processing. JPEG70 has a very nice compression, and still good results for higher zoom levels.
For ZL 8 you better stay with 90%+
Cheers
Michael
Hi Michael,
Thanks, I already saw that, but I thought this compression would not be competitive with modern libraries such as mozjpeg.
This map source is using PNG, so I tried to recompress the images with mobac to PNG-4 and PNG-8. PNG4 did not work at all (image was terrible), and in PNG-8 sizes went from 76KB to 41.3KB, which is not bad. The images looked very similar, with just a few colors changed a little bit.
But using pngquant I was able to reduce the size to 18.5KB, degrading the quality just a little bit further:
Original (76KB)
.
mobac PNG-8 (41.3KB)
.
pngquant --quality=50-60 (18.5KB)
That was just a single sample, similar ratios happened with the other images. I think it makes sense to run an independent process later with external libraries
Hi Michael,
Thanks, I already saw that, but I thought this compression would not be competitive with modern libraries such as mozjpeg.
This map source is using PNG, so I tried to recompress the images with mobac to PNG-4 and PNG-8. PNG4 did not work at all (image was terrible), and in PNG-8 sizes went from 76KB to 41.3KB, which is not bad. The images looked very similar, with just a few colors changed a little bit.
But using pngquant I was able to reduce the size to 18.5KB, degrading the quality just a little bit further:
Original (76KB)
.
mobac PNG-8 (41.3KB)
.
pngquant --quality=50-60 (18.5KB)
That was just a single sample, similar ratios happened with the other images. I think it makes sense to run an independent process later with external libraries
I've been playing with default JPEG compression and I see that is giving very good results:
Mobac JPEG 70% (13.6 KB)
.
mozjpeg (12.3 KB)
convert original.png original.ppm
jpeg-recompress -m smallfry --ppm original.ppm jpegrecompress.jpg
Second image (mozjpeg) looks nicer and is smaller, but I think I'm going to do it the easier way for now. Thanks!
I've been playing with default JPEG compression and I see that is giving very good results:
Mobac JPEG 70% (13.6 KB)
.
mozjpeg (12.3 KB)
convert original.png original.ppm
jpeg-recompress -m smallfry --ppm original.ppm jpegrecompress.jpg
Second image (mozjpeg) looks nicer and is smaller, but I think I'm going to do it the easier way for now. Thanks!
Replies have been locked on this page!