Hi Mixtel,
that works!! Thanks a lot!

@Oliver, should I add the TMS somewhere in the wiki, or send to this guy:
http://www.mtb-touring.net/qms/onlinekarten-einbinden/ who seems to keep a
collection of TMS receipes for different online maps?

2018-02-23 23:30 GMT+01:00 mitxel <nodeslatx...@gmail.com>:

>
> Hi Thomas
>
> I also tried  the workaround that works for spanish ign and others but
> with no succes for norge wmts...
>
> Honestely I don't know what could be the key., but the last example you
> have pasted gets the tile in a web  browser 😊 so that is a good start
> point to remake the spanish Ign example.  Note that the Tilematrix part is
> different....
>
> I am away now and I can not test it but I suggest you to try this.
>
>
> Layer idx="0">
> <Title>Norway TMS</Title>
> <Script><![CDATA[(
> function convert(z1,x1,y1)
> {y=(1<<z1)-1-y1;
>   return "http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&;
> layer=topo4&style=default&tilematrixset=EPSG:3857&
> Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=
> <http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&layer=topo4&style=default&tilematrixset=EPSG%900913&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=>
> EPSG:3857:"+z1+"&TileCol="+x1+"&TileRow="+y1;
> }
> )]]></Script>
> </Layer>
> <Copyright>STATKART</Copyright>
> </TMS>
>
>
> The relevant part is the Tilematrix
>
> for spanish ign and others is only a number in relation with zoom level
> ,the z1 variable (eg.  4) and for norge topo seems to be the number
> preceded by the SRS code and :
> (eg.   EPSG:3857:4)
>
>
> mitxel
>
> -------- Mensaje original --------
> De: Thomas Carlyle <tcarl...@gmail.com>
> Fecha: 20/2/18 20:08 (GMT+01:00)
> Para: Oliver Eichler <oliver.eich...@gmx.de>
> Cc: qlandkartegt-users@lists.sourceforge.net
> Asunto: Re: [Qlandkartegt-users] anyone with experience of adding
> norwegian topographic maps on Qmapshak
>
> Hi,
> thanks for the answers. I actually tried an attempt to replicate the
> example of the Spanish IGN Raster map
> and having a tms like:
>
> <TMS>
> <Layer idx="0">
> <Title>Norway TMS</Title>
> <Script><![CDATA[(
> function convert(z1,x1,y1)
> {y=(1<<z1)-1-y1;
>   return "http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&;
> layer=topo4&style=default&tilematrixset=EPSG%900913&
> Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=
> "+z1+"&TileCol="+x1+"&TileRow="+y1;
> }
> )]]></Script>
> </Layer>
> <Copyright>STATKART</Copyright>
> </TMS>
>
> inspired on the example
>
> http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&;
> layer=topo4&style=default&tilematrixset=EPSG%3A25833&
> Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%
> 2Fpng&TileMatrix=EPSG%3A25833%3A4&TileCol=7&TileRow=6
>
> at
> https://kartkatalog.geonorge.no/metadata/kartverket/
> topografisk-norgeskart-4-cache/8f381180-1a47-4453-bee7-9a3d64843efa
>
> But it did not work. I'm afraid Id need to properly learn  about WMTS
> before having a clue of what should I do much differently, as I have no
> knowledge in the topic.
>
>
>
>
> 2018-02-20 8:46 GMT+01:00 Oliver Eichler <oliver.eich...@gmx.de>:
>
>> That mail totally slipped my attention. Sorry.
>>
>> I tested the capability file and could locate the crash. It's a missing
>> bounding box in a layer.
>>
>> But anyway, bypassing that problem, QMapShack can't handle that file. The
>> WMTS speciafication is as chaotic and over-engineered as the WMS
>> specification. I gave up at a very early stage, so QMapShack only
>> implements a very limited subset. I do not like to waste time on online
>> maps as they are not at all my favorite source of maps. If you look at the
>> WMTS imlementation in QGis, which is very good, you will see that it takes
>> a huge effort to do it right. I allways suggest to everyone who wants to
>> use WMTS maps to improve the code. So far everyone stepped back at once.
>>
>> There are several tips concerning TMS and WMTS maps in the wiki:
>>
>> https://bitbucket.org/maproom/qmapshack/wiki/DocMapsTipsTricks
>>
>> Maybe that helps
>>
>> Oliver
>>
>> *Gesendet:* Sonntag, 18. Februar 2018 um 19:09 Uhr
>> *Von:* AM <apschwim...@apmland.de>
>> *An:* qlandkartegt-users@lists.sourceforge.net
>> *Betreff:* Re: [Qlandkartegt-users] anyone with experience of adding
>> norwegian topographic maps on Qmapshak
>>
>> Hi,
>>
>>
>>
>> http://download.freizeitkarte-osm.de/garmin/latest/Freizeitk
>> arte_NOR_de.Images.zip as an offline card.
>>
>> It's not a special topographic map, but you can add DEM datas.
>>
>>
>>
>> Maybe it help!
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Axel
>>
>> On 16.02.2018 20:56, Thomas Carlyle wrote:
>>
>> Hi,
>> does anyone have experience  adding norwegian topographic maps on
>> Qmapshak?
>>
>> Im new to Qmapshak, but I tried downloading the WMTS capabilities from
>> the nowegian maps site: https://www.kartverket.no/data/api-og-wms/ the
>> WMTS at http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?V
>> ersion=1.0.0&service=wmts&request=getcapabilities
>>
>> I download, rename it to .wmts, but when I try to active it, it crashes.
>>
>> Any thoughts?
>>
>> Cheers
>>
>> --
>> ------------------------------------------------------
>> Thomas Carlyle Minetto Vilarinho
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> Qlandkartegt-users mailing 
>> listQlandkartegt-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most engaging
>> tech sites, Slashdot.org! http://sdm.link/slashdot______
>> _________________________________________ Qlandkartegt-users mailing
>> list Qlandkartegt-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Qlandkartegt-users mailing list
>> Qlandkartegt-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>>
>
>
> --
> ------------------------------------------------------
> Thomas Carlyle Minetto Vilarinho
>
>
>
> -------- Mensaje original --------
> De: Thomas Carlyle <tcarl...@gmail.com>
> Fecha: 20/2/18 20:08 (GMT+01:00)
> Para: Oliver Eichler <oliver.eich...@gmx.de>
> Cc: qlandkartegt-users@lists.sourceforge.net
> Asunto: Re: [Qlandkartegt-users] anyone with experience of adding
> norwegian topographic maps on Qmapshak
>
> Hi,
> thanks for the answers. I actually tried an attempt to replicate the
> example of the Spanish IGN Raster map
> and having a tms like:
>
> <TMS>
> <Layer idx="0">
> <Title>Norway TMS</Title>
> <Script><![CDATA[(
> function convert(z1,x1,y1)
> {y=(1<<z1)-1-y1;
>   return "http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&;
> layer=topo4&style=default&tilematrixset=EPSG%900913&
> Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=
> "+z1+"&TileCol="+x1+"&TileRow="+y1;
> }
> )]]></Script>
> </Layer>
> <Copyright>STATKART</Copyright>
> </TMS>
>
> inspired on the example
>
> http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?&;
> layer=topo4&style=default&tilematrixset=EPSG%3A25833&
> Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%
> 2Fpng&TileMatrix=EPSG%3A25833%3A4&TileCol=7&TileRow=6
>
> at
> https://kartkatalog.geonorge.no/metadata/kartverket/
> topografisk-norgeskart-4-cache/8f381180-1a47-4453-bee7-9a3d64843efa
>
> But it did not work. I'm afraid Id need to properly learn  about WMTS
> before having a clue of what should I do much differently, as I have no
> knowledge in the topic.
>
>
>
>
> 2018-02-20 8:46 GMT+01:00 Oliver Eichler <oliver.eich...@gmx.de>:
>
>> That mail totally slipped my attention. Sorry.
>>
>> I tested the capability file and could locate the crash. It's a missing
>> bounding box in a layer.
>>
>> But anyway, bypassing that problem, QMapShack can't handle that file. The
>> WMTS speciafication is as chaotic and over-engineered as the WMS
>> specification. I gave up at a very early stage, so QMapShack only
>> implements a very limited subset. I do not like to waste time on online
>> maps as they are not at all my favorite source of maps. If you look at the
>> WMTS imlementation in QGis, which is very good, you will see that it takes
>> a huge effort to do it right. I allways suggest to everyone who wants to
>> use WMTS maps to improve the code. So far everyone stepped back at once.
>>
>> There are several tips concerning TMS and WMTS maps in the wiki:
>>
>> https://bitbucket.org/maproom/qmapshack/wiki/DocMapsTipsTricks
>>
>> Maybe that helps
>>
>> Oliver
>>
>> *Gesendet:* Sonntag, 18. Februar 2018 um 19:09 Uhr
>> *Von:* AM <apschwim...@apmland.de>
>> *An:* qlandkartegt-users@lists.sourceforge.net
>> *Betreff:* Re: [Qlandkartegt-users] anyone with experience of adding
>> norwegian topographic maps on Qmapshak
>>
>> Hi,
>>
>>
>>
>> http://download.freizeitkarte-osm.de/garmin/latest/Freizeitk
>> arte_NOR_de.Images.zip as an offline card.
>>
>> It's not a special topographic map, but you can add DEM datas.
>>
>>
>>
>> Maybe it help!
>>
>>
>>
>> Kind regards
>>
>>
>>
>> Axel
>>
>> On 16.02.2018 20:56, Thomas Carlyle wrote:
>>
>> Hi,
>> does anyone have experience  adding norwegian topographic maps on
>> Qmapshak?
>>
>> Im new to Qmapshak, but I tried downloading the WMTS capabilities from
>> the nowegian maps site: https://www.kartverket.no/data/api-og-wms/ the
>> WMTS at http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?V
>> ersion=1.0.0&service=wmts&request=getcapabilities
>>
>> I download, rename it to .wmts, but when I try to active it, it crashes.
>>
>> Any thoughts?
>>
>> Cheers
>>
>> --
>> ------------------------------------------------------
>> Thomas Carlyle Minetto Vilarinho
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> Qlandkartegt-users mailing 
>> listQlandkartegt-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most engaging
>> tech sites, Slashdot.org! http://sdm.link/slashdot______
>> _________________________________________ Qlandkartegt-users mailing
>> list Qlandkartegt-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Qlandkartegt-users mailing list
>> Qlandkartegt-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>>
>>
>
>
> --
> ------------------------------------------------------
> Thomas Carlyle Minetto Vilarinho
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Qlandkartegt-users mailing list
> Qlandkartegt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
>
>


-- 
------------------------------------------------------
Thomas Carlyle Minetto Vilarinho
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Qlandkartegt-users mailing list
Qlandkartegt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to