Re: [mapserver-users] mapcache question

2016-08-30 Thread Jukka Sirviö
I was not able to solve the problems on fresh CentOS 7 environment with all the 
latest libraries/dependencies included. on old test environment, I did 
upgrade/build to gdal 2.1.1 and also latest mapcache master. this environment 
is working as one would expect according given instructions in 
http://mapserver.org/mapcache/install.html.  

so basically now I'm back on the already achieved square 1, with that 
difference, that the versions of mapcache and gdal are upgraded. ==> now I'm 
able to proceed with Thomas suggestion with GDAL data source and GDAL WMTS 
driver. 

From this point of view, this post is completed, thus, more questions will come!

Thanks for patience..


-Alkuperäinen viesti-
Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Lähetetty: 30. elokuuta 2016 13:19
Vastaanottaja: Jukka Sirviö
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] mapcache question

The demo file in master parses correctly. Again, if you're having an issue it 
is either because you have made invalid (in the xml sense) modifications to it, 
or that your apache user doesn't have access rights to it (or to the 
directories above it).

--
thomas

On 30 August 2016 at 12:11, Jukka Sirviö  wrote:
>
> file and directory rights should be ok, mapcache.xml is the demo file 
> included in master.
> of-course, have tried this with quite a lot of ways without success, starting 
> to feel numb.
>
>
> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users 
> [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Guillaume 
> Sueur
> Lähetetty: 29. elokuuta 2016 16:51
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: Re: [mapserver-users] mapcache question
>
> Hi,
>
> Actually it just says there is an error in your mapcache.xml file (or maybe 
> apache can't even access/read it). Check the files rights, check the file 
> itself, and you should find what the problem is.
>
> Best regards
>
> Guillaume
>
> Le 28/08/2016 à 19:45, Jukka Sirviö a écrit :
>>
>> Hi,
>> Thank you all for good answers and suggestions, Thomas proposal, is more or 
>> less, ideal solution for me.
>>
>> Mapcache master is compiled according instructions at 
>> http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and 
>> MapServer master & GDAL etc), but httpd fail's to start if following line 
>> "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in 
>> httpd.conf. error message is:
>>
>> AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf:
>> failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML?
>>
>> Need some hint's how to proceed? Thank's in advance!
>>
>>
>> -Jukka
>>
>>
>>
>>
>> -Alkuperäinen viesti-
>> Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>> Lähetetty: 25. elokuuta 2016 15:56
>> Vastaanottaja: Travis Kirstine
>> Kopio: Lime, Steve D (MNIT); Jukka Sirviö; 
>> mapserver-users@lists.osgeo.org
>> Aihe: Re: [mapserver-users] mapcache question
>>
>> The reprojection is done inside MapCache, i.e. as a client of the 
>> original tiles. You don't need an additional WMS :)
>>
>> --
>> thomas
>>
>> On 25 August 2016 at 14:50, Travis Kirstine 
>>  wrote:
>>> I believe that there still would be an issue as the reprojection from X to 
>>> Y, the reprojection would need to be done on the source WMTS side.  I guess 
>>> you could proxy the source WMTS using mapserver with the gdal mini driver  
>>> and reproject to create a WMS to feed mapcache?
>>>
>>> -Original Message-
>>> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>>> Sent: August-25-16 3:55 AM
>>> To: Lime, Steve D (MNIT) 
>>> Cc: Travis Kirstine ; Jukka Sirviö 
>>> ; mapserver-users@lists.osgeo.org
>>> Subject: Re: [mapserver-users] mapcache question
>>>
>>> Jukka,
>>> in master, there is also support for any GDAL dataset as a mapcache source 
>>> (i.e. in addition to wms). If you use that in addition to a GDAL 
>>> TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles 
>>> on the fly.
>>>
>>> --
>>> thomas
>>>
>>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
>>> wrote:
>>>> I would think reprojection of individual tiles into another set of tiles 
>>>> that would stitch back together without artifacts would be difficult. I 
>>>> thought MapCache did support native MapServer mode=map as a source which 
>

Re: [mapserver-users] mapcache question

2016-08-30 Thread thomas bonfort
The demo file in master parses correctly. Again, if you're having an
issue it is either because you have made invalid (in the xml sense)
modifications to it, or that your apache user doesn't have access
rights to it (or to the directories above it).

--
thomas

On 30 August 2016 at 12:11, Jukka Sirviö  wrote:
>
> file and directory rights should be ok, mapcache.xml is the demo file 
> included in master.
> of-course, have tried this with quite a lot of ways without success, starting 
> to feel numb.
>
>
> -Alkuperäinen viesti-
> Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
> Puolesta Guillaume Sueur
> Lähetetty: 29. elokuuta 2016 16:51
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: Re: [mapserver-users] mapcache question
>
> Hi,
>
> Actually it just says there is an error in your mapcache.xml file (or maybe 
> apache can't even access/read it). Check the files rights, check the file 
> itself, and you should find what the problem is.
>
> Best regards
>
> Guillaume
>
> Le 28/08/2016 à 19:45, Jukka Sirviö a écrit :
>>
>> Hi,
>> Thank you all for good answers and suggestions, Thomas proposal, is more or 
>> less, ideal solution for me.
>>
>> Mapcache master is compiled according instructions at 
>> http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and 
>> MapServer master & GDAL etc), but httpd fail's to start if following line 
>> "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in 
>> httpd.conf. error message is:
>>
>> AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf:
>> failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML?
>>
>> Need some hint's how to proceed? Thank's in advance!
>>
>>
>> -Jukka
>>
>>
>>
>>
>> -Alkuperäinen viesti-
>> Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>> Lähetetty: 25. elokuuta 2016 15:56
>> Vastaanottaja: Travis Kirstine
>> Kopio: Lime, Steve D (MNIT); Jukka Sirviö;
>> mapserver-users@lists.osgeo.org
>> Aihe: Re: [mapserver-users] mapcache question
>>
>> The reprojection is done inside MapCache, i.e. as a client of the
>> original tiles. You don't need an additional WMS :)
>>
>> --
>> thomas
>>
>> On 25 August 2016 at 14:50, Travis Kirstine 
>>  wrote:
>>> I believe that there still would be an issue as the reprojection from X to 
>>> Y, the reprojection would need to be done on the source WMTS side.  I guess 
>>> you could proxy the source WMTS using mapserver with the gdal mini driver  
>>> and reproject to create a WMS to feed mapcache?
>>>
>>> -Original Message-
>>> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>>> Sent: August-25-16 3:55 AM
>>> To: Lime, Steve D (MNIT) 
>>> Cc: Travis Kirstine ; Jukka Sirviö
>>> ; mapserver-users@lists.osgeo.org
>>> Subject: Re: [mapserver-users] mapcache question
>>>
>>> Jukka,
>>> in master, there is also support for any GDAL dataset as a mapcache source 
>>> (i.e. in addition to wms). If you use that in addition to a GDAL 
>>> TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles 
>>> on the fly.
>>>
>>> --
>>> thomas
>>>
>>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
>>> wrote:
>>>> I would think reprojection of individual tiles into another set of tiles 
>>>> that would stitch back together without artifacts would be difficult. I 
>>>> thought MapCache did support native MapServer mode=map as a source which 
>>>> could useful if GDAL supports WMTS and you could create a corresponding 
>>>> MapServer layer.
>>>>
>>>> -Original Message-
>>>> From: mapserver-users
>>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>>> On Behalf Of Travis Kirstine
>>>> Sent: Wednesday, August 24, 2016 1:14 PM
>>>> To: Jukka Sirviö ;
>>>> mapserver-users@lists.osgeo.org
>>>> Subject: Re: [mapserver-users] mapcache question
>>>>
>>>> Jukka,
>>>>
>>>> According to the docs mapcache only support WMS as input.
>>>>
>>>> " A source is a service mod-mapcache can query to obtain image data. This 
>>>> is typically a WMS server accessible by a URL. (There are currently no 
>>>> sources other than WMS implemented, though others may be 

Re: [mapserver-users] mapcache question

2016-08-30 Thread Jukka Sirviö

file and directory rights should be ok, mapcache.xml is the demo file included 
in master. 
of-course, have tried this with quite a lot of ways without success, starting 
to feel numb.


-Alkuperäinen viesti-
Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
Puolesta Guillaume Sueur
Lähetetty: 29. elokuuta 2016 16:51
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] mapcache question

Hi,

Actually it just says there is an error in your mapcache.xml file (or maybe 
apache can't even access/read it). Check the files rights, check the file 
itself, and you should find what the problem is.

Best regards

Guillaume

Le 28/08/2016 à 19:45, Jukka Sirviö a écrit :
> 
> Hi,
> Thank you all for good answers and suggestions, Thomas proposal, is more or 
> less, ideal solution for me.
> 
> Mapcache master is compiled according instructions at 
> http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and 
> MapServer master & GDAL etc), but httpd fail's to start if following line 
> "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in 
> httpd.conf. error message is:
> 
> AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf:
> failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML?
> 
> Need some hint's how to proceed? Thank's in advance!
> 
> 
> -Jukka
> 
> 
> 
> 
> -Alkuperäinen viesti-
> Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Lähetetty: 25. elokuuta 2016 15:56
> Vastaanottaja: Travis Kirstine
> Kopio: Lime, Steve D (MNIT); Jukka Sirviö; 
> mapserver-users@lists.osgeo.org
> Aihe: Re: [mapserver-users] mapcache question
> 
> The reprojection is done inside MapCache, i.e. as a client of the 
> original tiles. You don't need an additional WMS :)
> 
> --
> thomas
> 
> On 25 August 2016 at 14:50, Travis Kirstine 
>  wrote:
>> I believe that there still would be an issue as the reprojection from X to 
>> Y, the reprojection would need to be done on the source WMTS side.  I guess 
>> you could proxy the source WMTS using mapserver with the gdal mini driver  
>> and reproject to create a WMS to feed mapcache?
>>
>> -Original Message-
>> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>> Sent: August-25-16 3:55 AM
>> To: Lime, Steve D (MNIT) 
>> Cc: Travis Kirstine ; Jukka Sirviö 
>> ; mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>> in master, there is also support for any GDAL dataset as a mapcache source 
>> (i.e. in addition to wms). If you use that in addition to a GDAL 
>> TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles 
>> on the fly.
>>
>> --
>> thomas
>>
>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
>> wrote:
>>> I would think reprojection of individual tiles into another set of tiles 
>>> that would stitch back together without artifacts would be difficult. I 
>>> thought MapCache did support native MapServer mode=map as a source which 
>>> could useful if GDAL supports WMTS and you could create a corresponding 
>>> MapServer layer.
>>>
>>> -Original Message-
>>> From: mapserver-users
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Travis Kirstine
>>> Sent: Wednesday, August 24, 2016 1:14 PM
>>> To: Jukka Sirviö ; 
>>> mapserver-users@lists.osgeo.org
>>> Subject: Re: [mapserver-users] mapcache question
>>>
>>> Jukka,
>>>
>>> According to the docs mapcache only support WMS as input.
>>>
>>> " A source is a service mod-mapcache can query to obtain image data. This 
>>> is typically a WMS server accessible by a URL. (There are currently no 
>>> sources other than WMS implemented, though others may be added later if the 
>>> need arises)"
>>>
>>> If this is still true then your proposed chain will not work.
>>>
>>> MapProxy will support a tiled source and I know TMS works  (not sure 
>>> about WMTS) and handle the reprojection
>>>
>>> Regards
>>>
>>> -Original Message-
>>> From: mapserver-users
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Jukka Sirviö
>>> Sent: August-24-16 10:09 AM
>>> To: mapserver-users@lists.osgeo.org
>>> Subject: [mapserver-users] mapcache question
>>>
>>>
>>> Hello,
>>> I would like to put a mapcache to be i

Re: [mapserver-users] mapcache question

2016-08-29 Thread Guillaume Sueur
Hi,

Actually it just says there is an error in your mapcache.xml file (or
maybe apache can't even access/read it). Check the files rights, check
the file itself, and you should find what the problem is.

Best regards

Guillaume

Le 28/08/2016 à 19:45, Jukka Sirviö a écrit :
> 
> Hi, 
> Thank you all for good answers and suggestions, Thomas proposal, is more or 
> less, ideal solution for me.
> 
> Mapcache master is compiled according instructions at 
> http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and 
> MapServer master & GDAL etc), but httpd fail's to start if following line 
> "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in 
> httpd.conf. error message is:
> 
> AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf:
> failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML?
> 
> Need some hint's how to proceed? Thank's in advance!
> 
> 
> -Jukka
> 
> 
> 
> 
> -Alkuperäinen viesti-
> Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
> Lähetetty: 25. elokuuta 2016 15:56
> Vastaanottaja: Travis Kirstine
> Kopio: Lime, Steve D (MNIT); Jukka Sirviö; mapserver-users@lists.osgeo.org
> Aihe: Re: [mapserver-users] mapcache question
> 
> The reprojection is done inside MapCache, i.e. as a client of the original 
> tiles. You don't need an additional WMS :)
> 
> --
> thomas
> 
> On 25 August 2016 at 14:50, Travis Kirstine 
>  wrote:
>> I believe that there still would be an issue as the reprojection from X to 
>> Y, the reprojection would need to be done on the source WMTS side.  I guess 
>> you could proxy the source WMTS using mapserver with the gdal mini driver  
>> and reproject to create a WMS to feed mapcache?
>>
>> -Original Message-
>> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>> Sent: August-25-16 3:55 AM
>> To: Lime, Steve D (MNIT) 
>> Cc: Travis Kirstine ; Jukka Sirviö 
>> ; mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>> in master, there is also support for any GDAL dataset as a mapcache source 
>> (i.e. in addition to wms). If you use that in addition to a GDAL 
>> TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles 
>> on the fly.
>>
>> --
>> thomas
>>
>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
>> wrote:
>>> I would think reprojection of individual tiles into another set of tiles 
>>> that would stitch back together without artifacts would be difficult. I 
>>> thought MapCache did support native MapServer mode=map as a source which 
>>> could useful if GDAL supports WMTS and you could create a corresponding 
>>> MapServer layer.
>>>
>>> -Original Message-
>>> From: mapserver-users 
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Travis Kirstine
>>> Sent: Wednesday, August 24, 2016 1:14 PM
>>> To: Jukka Sirviö ; 
>>> mapserver-users@lists.osgeo.org
>>> Subject: Re: [mapserver-users] mapcache question
>>>
>>> Jukka,
>>>
>>> According to the docs mapcache only support WMS as input.
>>>
>>> " A source is a service mod-mapcache can query to obtain image data. This 
>>> is typically a WMS server accessible by a URL. (There are currently no 
>>> sources other than WMS implemented, though others may be added later if the 
>>> need arises)"
>>>
>>> If this is still true then your proposed chain will not work.
>>>
>>> MapProxy will support a tiled source and I know TMS works  (not sure 
>>> about WMTS) and handle the reprojection
>>>
>>> Regards
>>>
>>> -Original Message-
>>> From: mapserver-users 
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Jukka Sirviö
>>> Sent: August-24-16 10:09 AM
>>> To: mapserver-users@lists.osgeo.org
>>> Subject: [mapserver-users] mapcache question
>>>
>>>
>>> Hello,
>>> I would like to put a mapcache to be in the middle, in the following chain:
>>>
>>> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
>>> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
>>> v2, Qgis), also in crs y
>>>
>>> Mapcache was compiled, and is working a-ok with demo data. But I have 
>>> trouble to configure mapcache to work as a part in the above chain. 

Re: [mapserver-users] mapcache question

2016-08-29 Thread thomas bonfort
There's no on the fly reprojection of an exisiting cache, so to be
able to serve the same tileset/layer under multiple SRSs you'll need
to have one cache per srs/grid.

--
thomas

On 25 August 2016 at 15:33, Travis Kirstine
 wrote:
> Unrelated question: Can mapcache handle multiple srs in a WMS service (out)?
>
> -Original Message-
> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Sent: August-25-16 8:56 AM
> To: Travis Kirstine 
> Cc: Lime, Steve D (MNIT) ; Jukka Sirviö 
> ; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> The reprojection is done inside MapCache, i.e. as a client of the original 
> tiles. You don't need an additional WMS :)
>
> --
> thomas
>
> On 25 August 2016 at 14:50, Travis Kirstine 
>  wrote:
>> I believe that there still would be an issue as the reprojection from X to 
>> Y, the reprojection would need to be done on the source WMTS side.  I guess 
>> you could proxy the source WMTS using mapserver with the gdal mini driver  
>> and reproject to create a WMS to feed mapcache?
>>
>> -Original Message-
>> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>> Sent: August-25-16 3:55 AM
>> To: Lime, Steve D (MNIT) 
>> Cc: Travis Kirstine ; Jukka Sirviö
>> ; mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>> in master, there is also support for any GDAL dataset as a mapcache source 
>> (i.e. in addition to wms). If you use that in addition to a GDAL 
>> TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles 
>> on the fly.
>>
>> --
>> thomas
>>
>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
>> wrote:
>>> I would think reprojection of individual tiles into another set of tiles 
>>> that would stitch back together without artifacts would be difficult. I 
>>> thought MapCache did support native MapServer mode=map as a source which 
>>> could useful if GDAL supports WMTS and you could create a corresponding 
>>> MapServer layer.
>>>
>>> -Original Message-
>>> From: mapserver-users
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Travis Kirstine
>>> Sent: Wednesday, August 24, 2016 1:14 PM
>>> To: Jukka Sirviö ;
>>> mapserver-users@lists.osgeo.org
>>> Subject: Re: [mapserver-users] mapcache question
>>>
>>> Jukka,
>>>
>>> According to the docs mapcache only support WMS as input.
>>>
>>> " A source is a service mod-mapcache can query to obtain image data. This 
>>> is typically a WMS server accessible by a URL. (There are currently no 
>>> sources other than WMS implemented, though others may be added later if the 
>>> need arises)"
>>>
>>> If this is still true then your proposed chain will not work.
>>>
>>> MapProxy will support a tiled source and I know TMS works  (not sure
>>> about WMTS) and handle the reprojection
>>>
>>> Regards
>>>
>>> -Original Message-
>>> From: mapserver-users
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Jukka Sirviö
>>> Sent: August-24-16 10:09 AM
>>> To: mapserver-users@lists.osgeo.org
>>> Subject: [mapserver-users] mapcache question
>>>
>>>
>>> Hello,
>>> I would like to put a mapcache to be in the middle, in the following chain:
>>>
>>> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
>>> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
>>> v2, Qgis), also in crs y
>>>
>>> Mapcache was compiled, and is working a-ok with demo data. But I have 
>>> trouble to configure mapcache to work as a part in the above chain. As 
>>> planned, Mapcache should work as a WMTS client down towards target 1 and 
>>> WMTS server up against target 3, ie. kind of a proxy with crs reprojection 
>>> and basic auth. Anyway, does this make any sense at all, or is the draft 
>>> totally irrational?
>>>
>>> If the draft is reasonable, could you give some hints on how to proceed 
>>> related to configuration with mapcache.xml?
>>>
>>>
>>>
>>> -Jukka
>>>
>>> 
>>>
>>> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
>>> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos

Re: [mapserver-users] mapcache question

2016-08-29 Thread thomas bonfort
As the error message says, your xml is invalid (any text editor with
syntax highlighting will help you). This is not related to mapcache
itself.
--
thomas

On 28 August 2016 at 19:45, Jukka Sirviö  wrote:
>
> Hi,
> Thank you all for good answers and suggestions, Thomas proposal, is more or 
> less, ideal solution for me.
>
> Mapcache master is compiled according instructions at 
> http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and 
> MapServer master & GDAL etc), but httpd fail's to start if following line 
> "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in 
> httpd.conf. error message is:
>
> AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf:
> failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML?
>
> Need some hint's how to proceed? Thank's in advance!
>
>
> -Jukka
>
>
>
>
> -Alkuperäinen viesti-
> Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Lähetetty: 25. elokuuta 2016 15:56
> Vastaanottaja: Travis Kirstine
> Kopio: Lime, Steve D (MNIT); Jukka Sirviö; mapserver-users@lists.osgeo.org
> Aihe: Re: [mapserver-users] mapcache question
>
> The reprojection is done inside MapCache, i.e. as a client of the original 
> tiles. You don't need an additional WMS :)
>
> --
> thomas
>
> On 25 August 2016 at 14:50, Travis Kirstine 
>  wrote:
>> I believe that there still would be an issue as the reprojection from X to 
>> Y, the reprojection would need to be done on the source WMTS side.  I guess 
>> you could proxy the source WMTS using mapserver with the gdal mini driver  
>> and reproject to create a WMS to feed mapcache?
>>
>> -Original Message-
>> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
>> Sent: August-25-16 3:55 AM
>> To: Lime, Steve D (MNIT) 
>> Cc: Travis Kirstine ; Jukka Sirviö
>> ; mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>> in master, there is also support for any GDAL dataset as a mapcache source 
>> (i.e. in addition to wms). If you use that in addition to a GDAL 
>> TMS/WMS/WMTS minidriver you'll be able to reproject/store third party tiles 
>> on the fly.
>>
>> --
>> thomas
>>
>> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
>> wrote:
>>> I would think reprojection of individual tiles into another set of tiles 
>>> that would stitch back together without artifacts would be difficult. I 
>>> thought MapCache did support native MapServer mode=map as a source which 
>>> could useful if GDAL supports WMTS and you could create a corresponding 
>>> MapServer layer.
>>>
>>> -Original Message-
>>> From: mapserver-users
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Travis Kirstine
>>> Sent: Wednesday, August 24, 2016 1:14 PM
>>> To: Jukka Sirviö ;
>>> mapserver-users@lists.osgeo.org
>>> Subject: Re: [mapserver-users] mapcache question
>>>
>>> Jukka,
>>>
>>> According to the docs mapcache only support WMS as input.
>>>
>>> " A source is a service mod-mapcache can query to obtain image data. This 
>>> is typically a WMS server accessible by a URL. (There are currently no 
>>> sources other than WMS implemented, though others may be added later if the 
>>> need arises)"
>>>
>>> If this is still true then your proposed chain will not work.
>>>
>>> MapProxy will support a tiled source and I know TMS works  (not sure
>>> about WMTS) and handle the reprojection
>>>
>>> Regards
>>>
>>> -Original Message-
>>> From: mapserver-users
>>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>>> On Behalf Of Jukka Sirviö
>>> Sent: August-24-16 10:09 AM
>>> To: mapserver-users@lists.osgeo.org
>>> Subject: [mapserver-users] mapcache question
>>>
>>>
>>> Hello,
>>> I would like to put a mapcache to be in the middle, in the following chain:
>>>
>>> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
>>> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
>>> v2, Qgis), also in crs y
>>>
>>> Mapcache was compiled, and is working a-ok with demo data. But I have 
>>> trouble to configure mapcache to work as a part in the above chain. As 
>>> planned, Mapcache should work as a WMTS client down towards target

Re: [mapserver-users] mapcache question

2016-08-28 Thread Jeff McKenna

On 2016-08-28 2:45 PM, Jukka Sirviö wrote:


Hi,
Thank you all for good answers and suggestions, Thomas proposal, is more or 
less, ideal solution for me.

Mapcache master is compiled according instructions at http://mapserver.org/mapcache/install.html 
successfully on CentOS 7 (and MapServer master & GDAL etc), but httpd fail's to start if 
following line "MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in 
httpd.conf. error message is:

AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf:
failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML?

Need some hint's how to proceed? Thank's in advance!



Hello,

The MS4W installer for Windows users is a good reference for Apache's 
configuration with MapCache, you could download it and review httpd.conf 
(and its mapcache.xml) or just see the config steps at: 
http://ms4w.com/README_INSTALL.html#g-mapcache-apache-module


-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache question

2016-08-28 Thread Jukka Sirviö

Hi, 
Thank you all for good answers and suggestions, Thomas proposal, is more or 
less, ideal solution for me.

Mapcache master is compiled according instructions at 
http://mapserver.org/mapcache/install.html successfully on CentOS 7 (and 
MapServer master & GDAL etc), but httpd fail's to start if following line 
"MapCacheAlias /mapcache "/bla/blabla/mapcache.xml" is included in httpd.conf. 
error message is:

AH00526: Syntax error on line 335 of /etc/httpd/conf/httpd.conf:
failed to parse file /home/mapcacheconf/mapcache.xml. Is it valid XML?

Need some hint's how to proceed? Thank's in advance!


-Jukka




-Alkuperäinen viesti-
Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Lähetetty: 25. elokuuta 2016 15:56
Vastaanottaja: Travis Kirstine
Kopio: Lime, Steve D (MNIT); Jukka Sirviö; mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] mapcache question

The reprojection is done inside MapCache, i.e. as a client of the original 
tiles. You don't need an additional WMS :)

--
thomas

On 25 August 2016 at 14:50, Travis Kirstine  
wrote:
> I believe that there still would be an issue as the reprojection from X to Y, 
> the reprojection would need to be done on the source WMTS side.  I guess you 
> could proxy the source WMTS using mapserver with the gdal mini driver  and 
> reproject to create a WMS to feed mapcache?
>
> -Original Message-
> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Sent: August-25-16 3:55 AM
> To: Lime, Steve D (MNIT) 
> Cc: Travis Kirstine ; Jukka Sirviö 
> ; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> Jukka,
> in master, there is also support for any GDAL dataset as a mapcache source 
> (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS 
> minidriver you'll be able to reproject/store third party tiles on the fly.
>
> --
> thomas
>
> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
> wrote:
>> I would think reprojection of individual tiles into another set of tiles 
>> that would stitch back together without artifacts would be difficult. I 
>> thought MapCache did support native MapServer mode=map as a source which 
>> could useful if GDAL supports WMTS and you could create a corresponding 
>> MapServer layer.
>>
>> -Original Message-
>> From: mapserver-users 
>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Travis Kirstine
>> Sent: Wednesday, August 24, 2016 1:14 PM
>> To: Jukka Sirviö ; 
>> mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>>
>> According to the docs mapcache only support WMS as input.
>>
>> " A source is a service mod-mapcache can query to obtain image data. This is 
>> typically a WMS server accessible by a URL. (There are currently no sources 
>> other than WMS implemented, though others may be added later if the need 
>> arises)"
>>
>> If this is still true then your proposed chain will not work.
>>
>> MapProxy will support a tiled source and I know TMS works  (not sure 
>> about WMTS) and handle the reprojection
>>
>> Regards
>>
>> -Original Message-
>> From: mapserver-users 
>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Jukka Sirviö
>> Sent: August-24-16 10:09 AM
>> To: mapserver-users@lists.osgeo.org
>> Subject: [mapserver-users] mapcache question
>>
>>
>> Hello,
>> I would like to put a mapcache to be in the middle, in the following chain:
>>
>> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
>> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
>> v2, Qgis), also in crs y
>>
>> Mapcache was compiled, and is working a-ok with demo data. But I have 
>> trouble to configure mapcache to work as a part in the above chain. As 
>> planned, Mapcache should work as a WMTS client down towards target 1 and 
>> WMTS server up against target 3, ie. kind of a proxy with crs reprojection 
>> and basic auth. Anyway, does this make any sense at all, or is the draft 
>> totally irrational?
>>
>> If the draft is reasonable, could you give some hints on how to proceed 
>> related to configuration with mapcache.xml?
>>
>>
>>
>> -Jukka
>>
>> 
>>
>> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
>> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea 
>> vastaanottaja, ilmoita viestin lähettäjälle tapahtuneesta virhee

Re: [mapserver-users] mapcache question

2016-08-25 Thread Travis Kirstine
Unrelated question: Can mapcache handle multiple srs in a WMS service (out)? 

-Original Message-
From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: August-25-16 8:56 AM
To: Travis Kirstine 
Cc: Lime, Steve D (MNIT) ; Jukka Sirviö 
; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] mapcache question

The reprojection is done inside MapCache, i.e. as a client of the original 
tiles. You don't need an additional WMS :)

--
thomas

On 25 August 2016 at 14:50, Travis Kirstine  
wrote:
> I believe that there still would be an issue as the reprojection from X to Y, 
> the reprojection would need to be done on the source WMTS side.  I guess you 
> could proxy the source WMTS using mapserver with the gdal mini driver  and 
> reproject to create a WMS to feed mapcache?
>
> -Original Message-
> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Sent: August-25-16 3:55 AM
> To: Lime, Steve D (MNIT) 
> Cc: Travis Kirstine ; Jukka Sirviö 
> ; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> Jukka,
> in master, there is also support for any GDAL dataset as a mapcache source 
> (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS 
> minidriver you'll be able to reproject/store third party tiles on the fly.
>
> --
> thomas
>
> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
> wrote:
>> I would think reprojection of individual tiles into another set of tiles 
>> that would stitch back together without artifacts would be difficult. I 
>> thought MapCache did support native MapServer mode=map as a source which 
>> could useful if GDAL supports WMTS and you could create a corresponding 
>> MapServer layer.
>>
>> -Original Message-
>> From: mapserver-users 
>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Travis Kirstine
>> Sent: Wednesday, August 24, 2016 1:14 PM
>> To: Jukka Sirviö ; 
>> mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>>
>> According to the docs mapcache only support WMS as input.
>>
>> " A source is a service mod-mapcache can query to obtain image data. This is 
>> typically a WMS server accessible by a URL. (There are currently no sources 
>> other than WMS implemented, though others may be added later if the need 
>> arises)"
>>
>> If this is still true then your proposed chain will not work.
>>
>> MapProxy will support a tiled source and I know TMS works  (not sure 
>> about WMTS) and handle the reprojection
>>
>> Regards
>>
>> -Original Message-
>> From: mapserver-users 
>> [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Jukka Sirviö
>> Sent: August-24-16 10:09 AM
>> To: mapserver-users@lists.osgeo.org
>> Subject: [mapserver-users] mapcache question
>>
>>
>> Hello,
>> I would like to put a mapcache to be in the middle, in the following chain:
>>
>> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
>> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
>> v2, Qgis), also in crs y
>>
>> Mapcache was compiled, and is working a-ok with demo data. But I have 
>> trouble to configure mapcache to work as a part in the above chain. As 
>> planned, Mapcache should work as a WMTS client down towards target 1 and 
>> WMTS server up against target 3, ie. kind of a proxy with crs reprojection 
>> and basic auth. Anyway, does this make any sense at all, or is the draft 
>> totally irrational?
>>
>> If the draft is reasonable, could you give some hints on how to proceed 
>> related to configuration with mapcache.xml?
>>
>>
>>
>> -Jukka
>>
>> 
>>
>> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
>> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea 
>> vastaanottaja, ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa 
>> viesti välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai 
>> muu käyttö tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti 
>> kielletty.
>>
>> This message (including any attachments) may contain confidential 
>> information intended for the person or entity to which it is addressed. If 
>> you are not the intended recipient, notify the sender and delete this 
>> message immediately. Notice that disclosing, copying, distributing or any 
>> other use of the message and its information, or ta

Re: [mapserver-users] mapcache question

2016-08-25 Thread thomas bonfort
The reprojection is done inside MapCache, i.e. as a client of the
original tiles. You don't need an additional WMS :)

--
thomas

On 25 August 2016 at 14:50, Travis Kirstine
 wrote:
> I believe that there still would be an issue as the reprojection from X to Y, 
> the reprojection would need to be done on the source WMTS side.  I guess you 
> could proxy the source WMTS using mapserver with the gdal mini driver  and 
> reproject to create a WMS to feed mapcache?
>
> -Original Message-
> From: thomas bonfort [mailto:thomas.bonf...@gmail.com]
> Sent: August-25-16 3:55 AM
> To: Lime, Steve D (MNIT) 
> Cc: Travis Kirstine ; Jukka Sirviö 
> ; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> Jukka,
> in master, there is also support for any GDAL dataset as a mapcache source 
> (i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS 
> minidriver you'll be able to reproject/store third party tiles on the fly.
>
> --
> thomas
>
> On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  
> wrote:
>> I would think reprojection of individual tiles into another set of tiles 
>> that would stitch back together without artifacts would be difficult. I 
>> thought MapCache did support native MapServer mode=map as a source which 
>> could useful if GDAL supports WMTS and you could create a corresponding 
>> MapServer layer.
>>
>> -Original Message-
>> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Travis Kirstine
>> Sent: Wednesday, August 24, 2016 1:14 PM
>> To: Jukka Sirviö ;
>> mapserver-users@lists.osgeo.org
>> Subject: Re: [mapserver-users] mapcache question
>>
>> Jukka,
>>
>> According to the docs mapcache only support WMS as input.
>>
>> " A source is a service mod-mapcache can query to obtain image data. This is 
>> typically a WMS server accessible by a URL. (There are currently no sources 
>> other than WMS implemented, though others may be added later if the need 
>> arises)"
>>
>> If this is still true then your proposed chain will not work.
>>
>> MapProxy will support a tiled source and I know TMS works  (not sure
>> about WMTS) and handle the reprojection
>>
>> Regards
>>
>> -Original Message-
>> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org]
>> On Behalf Of Jukka Sirviö
>> Sent: August-24-16 10:09 AM
>> To: mapserver-users@lists.osgeo.org
>> Subject: [mapserver-users] mapcache question
>>
>>
>> Hello,
>> I would like to put a mapcache to be in the middle, in the following chain:
>>
>> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
>> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
>> v2, Qgis), also in crs y
>>
>> Mapcache was compiled, and is working a-ok with demo data. But I have 
>> trouble to configure mapcache to work as a part in the above chain. As 
>> planned, Mapcache should work as a WMTS client down towards target 1 and 
>> WMTS server up against target 3, ie. kind of a proxy with crs reprojection 
>> and basic auth. Anyway, does this make any sense at all, or is the draft 
>> totally irrational?
>>
>> If the draft is reasonable, could you give some hints on how to proceed 
>> related to configuration with mapcache.xml?
>>
>>
>>
>> -Jukka
>>
>> 
>>
>> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
>> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea 
>> vastaanottaja, ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa 
>> viesti välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai 
>> muu käyttö tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti 
>> kielletty.
>>
>> This message (including any attachments) may contain confidential 
>> information intended for the person or entity to which it is addressed. If 
>> you are not the intended recipient, notify the sender and delete this 
>> message immediately. Notice that disclosing, copying, distributing or any 
>> other use of the message and its information, or taking any action based on 
>> it, is strictly prohibited.
>>
>> 
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> ___
>> mapserver-users mailing list
>> mapserver-users@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache question

2016-08-25 Thread Travis Kirstine
I believe that there still would be an issue as the reprojection from X to Y, 
the reprojection would need to be done on the source WMTS side.  I guess you 
could proxy the source WMTS using mapserver with the gdal mini driver  and 
reproject to create a WMS to feed mapcache?  

-Original Message-
From: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
Sent: August-25-16 3:55 AM
To: Lime, Steve D (MNIT) 
Cc: Travis Kirstine ; Jukka Sirviö 
; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] mapcache question

Jukka,
in master, there is also support for any GDAL dataset as a mapcache source 
(i.e. in addition to wms). If you use that in addition to a GDAL TMS/WMS/WMTS 
minidriver you'll be able to reproject/store third party tiles on the fly.

--
thomas

On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  wrote:
> I would think reprojection of individual tiles into another set of tiles that 
> would stitch back together without artifacts would be difficult. I thought 
> MapCache did support native MapServer mode=map as a source which could useful 
> if GDAL supports WMTS and you could create a corresponding MapServer layer.
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
> On Behalf Of Travis Kirstine
> Sent: Wednesday, August 24, 2016 1:14 PM
> To: Jukka Sirviö ; 
> mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> Jukka,
>
> According to the docs mapcache only support WMS as input.
>
> " A source is a service mod-mapcache can query to obtain image data. This is 
> typically a WMS server accessible by a URL. (There are currently no sources 
> other than WMS implemented, though others may be added later if the need 
> arises)"
>
> If this is still true then your proposed chain will not work.
>
> MapProxy will support a tiled source and I know TMS works  (not sure 
> about WMTS) and handle the reprojection
>
> Regards
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] 
> On Behalf Of Jukka Sirviö
> Sent: August-24-16 10:09 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] mapcache question
>
>
> Hello,
> I would like to put a mapcache to be in the middle, in the following chain:
>
> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
> v2, Qgis), also in crs y
>
> Mapcache was compiled, and is working a-ok with demo data. But I have trouble 
> to configure mapcache to work as a part in the above chain. As planned, 
> Mapcache should work as a WMTS client down towards target 1 and WMTS server 
> up against target 3, ie. kind of a proxy with crs reprojection and basic 
> auth. Anyway, does this make any sense at all, or is the draft totally 
> irrational?
>
> If the draft is reasonable, could you give some hints on how to proceed 
> related to configuration with mapcache.xml?
>
>
>
> -Jukka
>
> 
>
> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea 
> vastaanottaja, ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa 
> viesti välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai 
> muu käyttö tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti 
> kielletty.
>
> This message (including any attachments) may contain confidential information 
> intended for the person or entity to which it is addressed. If you are not 
> the intended recipient, notify the sender and delete this message 
> immediately. Notice that disclosing, copying, distributing or any other use 
> of the message and its information, or taking any action based on it, is 
> strictly prohibited.
>
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache question

2016-08-25 Thread thomas bonfort
Jukka,
in master, there is also support for any GDAL dataset as a mapcache
source (i.e. in addition to wms). If you use that in addition to a
GDAL TMS/WMS/WMTS minidriver you'll be able to reproject/store third
party tiles on the fly.

--
thomas

On 24 August 2016 at 21:58, Lime, Steve D (MNIT)  wrote:
> I would think reprojection of individual tiles into another set of tiles that 
> would stitch back together without artifacts would be difficult. I thought 
> MapCache did support native MapServer mode=map as a source which could useful 
> if GDAL supports WMTS and you could create a corresponding MapServer layer.
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
> Behalf Of Travis Kirstine
> Sent: Wednesday, August 24, 2016 1:14 PM
> To: Jukka Sirviö ; mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache question
>
> Jukka,
>
> According to the docs mapcache only support WMS as input.
>
> " A source is a service mod-mapcache can query to obtain image data. This is 
> typically a WMS server accessible by a URL. (There are currently no sources 
> other than WMS implemented, though others may be added later if the need 
> arises)"
>
> If this is still true then your proposed chain will not work.
>
> MapProxy will support a tiled source and I know TMS works  (not sure about 
> WMTS) and handle the reprojection
>
> Regards
>
> -Original Message-
> From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
> Behalf Of Jukka Sirviö
> Sent: August-24-16 10:09 AM
> To: mapserver-users@lists.osgeo.org
> Subject: [mapserver-users] mapcache question
>
>
> Hello,
> I would like to put a mapcache to be in the middle, in the following chain:
>
> 1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
> reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers 
> v2, Qgis), also in crs y
>
> Mapcache was compiled, and is working a-ok with demo data. But I have trouble 
> to configure mapcache to work as a part in the above chain. As planned, 
> Mapcache should work as a WMTS client down towards target 1 and WMTS server 
> up against target 3, ie. kind of a proxy with crs reprojection and basic 
> auth. Anyway, does this make any sense at all, or is the draft totally 
> irrational?
>
> If the draft is reasonable, could you give some hints on how to proceed 
> related to configuration with mapcache.xml?
>
>
>
> -Jukka
>
> 
>
> Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista 
> tietoa, joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea 
> vastaanottaja, ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa 
> viesti välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai 
> muu käyttö tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti 
> kielletty.
>
> This message (including any attachments) may contain confidential information 
> intended for the person or entity to which it is addressed. If you are not 
> the intended recipient, notify the sender and delete this message 
> immediately. Notice that disclosing, copying, distributing or any other use 
> of the message and its information, or taking any action based on it, is 
> strictly prohibited.
>
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache question

2016-08-24 Thread Lime, Steve D (MNIT)
I would think reprojection of individual tiles into another set of tiles that 
would stitch back together without artifacts would be difficult. I thought 
MapCache did support native MapServer mode=map as a source which could useful 
if GDAL supports WMTS and you could create a corresponding MapServer layer.

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Travis Kirstine
Sent: Wednesday, August 24, 2016 1:14 PM
To: Jukka Sirviö ; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] mapcache question

Jukka,

According to the docs mapcache only support WMS as input.

" A source is a service mod-mapcache can query to obtain image data. This is 
typically a WMS server accessible by a URL. (There are currently no sources 
other than WMS implemented, though others may be added later if the need 
arises)"

If this is still true then your proposed chain will not work.

MapProxy will support a tiled source and I know TMS works  (not sure about 
WMTS) and handle the reprojection 

Regards

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Jukka Sirviö
Sent: August-24-16 10:09 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapcache question


Hello,
I would like to put a mapcache to be in the middle, in the following chain:

1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers v2, 
Qgis), also in crs y

Mapcache was compiled, and is working a-ok with demo data. But I have trouble 
to configure mapcache to work as a part in the above chain. As planned, 
Mapcache should work as a WMTS client down towards target 1 and WMTS server up 
against target 3, ie. kind of a proxy with crs reprojection and basic auth. 
Anyway, does this make any sense at all, or is the draft totally irrational?

If the draft is reasonable, could you give some hints on how to proceed related 
to configuration with mapcache.xml?



-Jukka



Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista tietoa, 
joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, 
ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa viesti 
välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu käyttö 
tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty.

This message (including any attachments) may contain confidential information 
intended for the person or entity to which it is addressed. If you are not the 
intended recipient, notify the sender and delete this message immediately. 
Notice that disclosing, copying, distributing or any other use of the message 
and its information, or taking any action based on it, is strictly prohibited.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache question

2016-08-24 Thread Travis Kirstine
Jukka,

According to the docs mapcache only support WMS as input.

" A source is a service mod-mapcache can query to obtain image data. This is 
typically a WMS server accessible by a URL. (There are currently no sources 
other than WMS implemented, though others may be added later if the need 
arises)"

If this is still true then your proposed chain will not work.

MapProxy will support a tiled source and I know TMS works  (not sure about 
WMTS) and handle the reprojection 

Regards

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Jukka Sirviö
Sent: August-24-16 10:09 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] mapcache question


Hello,
I would like to put a mapcache to be in the middle, in the following chain:

1) original wmts service in local/national crs x   -->  2) mapcache wmts, 
reprojection to world-wide crs y (3857) -->  3) user interface (OpenLayers v2, 
Qgis), also in crs y

Mapcache was compiled, and is working a-ok with demo data. But I have trouble 
to configure mapcache to work as a part in the above chain. As planned, 
Mapcache should work as a WMTS client down towards target 1 and WMTS server up 
against target 3, ie. kind of a proxy with crs reprojection and basic auth. 
Anyway, does this make any sense at all, or is the draft totally irrational?

If the draft is reasonable, could you give some hints on how to proceed related 
to configuration with mapcache.xml?



-Jukka



Tämä sähköpostiviesti (liitteineen) saattaa sisältää luottamuksellista tietoa, 
joka on tarkoitettu vain vastaanottajalleen. Jos et ole oikea vastaanottaja, 
ilmoita viestin lähettäjälle tapahtuneesta virheestä ja tuhoa viesti 
välittömästi. Viestin luvaton julkaiseminen, kopioiminen, jakelu tai muu käyttö 
tai toimenpiteisiin ryhtyminen sen perusteella on ehdottomasti kielletty.

This message (including any attachments) may contain confidential information 
intended for the person or entity to which it is addressed. If you are not the 
intended recipient, notify the sender and delete this message immediately. 
Notice that disclosing, copying, distributing or any other use of the message 
and its information, or taking any action based on it, is strictly prohibited.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache Question

2014-10-10 Thread Stephen Woodbridge

On 10/10/2014 3:23 AM, Vladimir wrote:

Hello ALL!

I dig into MapCache now and my modest comprehension is:

1) MapCache uses Mapserv for seeding tiles or more exactly -
sends WMS request to Mapserv for getting a map:

 section in a mapcache.xml file

2) Ol uses MapCache for rendering that tiles or more exactly -
sends WMS(or other) request to MapCache:

new ol.layer.Tile({
source: new ol.source.TileWMS(({
url: 'myhost/mapcache/?',
params: {'LAYERS': 'mytileset'},
serverType: 'mapserver'
}))
})
where
/mapcache/ is path to a mapcache.xml(aliased through Apache),
'mytileset' is  section in a mapcache.xml file

3)The Seeding and the rendering needs other configuration of
mapcache.xml file(it is needs clarification).

4)The seeding may be through:
mapcache_seed -c mapcache.xml -t mytileset-g mygrid
or
during a certain map area is requested by client (it is needs
clarification).


Yes, this seems correct. I will not that you CAN NOT use mapcache_seed 
AND web requests TOGETHER as they do not use compatible locking 
mechanisms. So either use mapcache_seed before you deploy or use the web 
requests to dynamically seed the cache. You can use mapcache_seed to do 
a partial pre seeding (like rectangles around major cities) then change 
over to web request which will generate tiles as needed in the remaining 
areas.


-Steve W


Thanks for any correction.
Best regards.




Wed, 1 Oct 2014 19:33:12 -0400 от Travis Kirstine
:

Tim,

MapCache Is simply a tiling server.  It will take images from a
source and store them in a cache.  These tiles are exposed as
services to clients - WMTS, WMS, TMS etc...  MapServer on the other
hand will read source data (GIS files / database) and render images
based on rules defined in the mapfile.  These images are used as the
source for MapCache.

On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman > wrote:

I have read through the Mapcache documentation but I feel like I
am missing some basic elements to how it works.

  I am using Mapcache to display a mbtile that I have created.
Now from what I understand, my mapcache .xml will list out the
parameters of the mbtile and then I add a layer within my
mapfile referencing the .xml which I should then be able to to
use as WMTS using openlayers. I just haven't grasped how
mapcache and mapserv work together so any clarification would be
helpful. Thanks for your time.

--
Timothy Nasman
Data Analyst | Programmer
Rolling Leaf Inc.
[V] : 910.274.1436
[E] : tnas...@rollingleaf.com



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
FBS Logo

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600/ x /301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com


*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Владимир


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache Question

2014-10-10 Thread Vladimir
 Hello ALL!

I dig into MapCache now and my modest comprehension is:
1) MapCache uses Mapserv for seeding tiles or more exactly -
sends WMS request to Mapserv for getting a map:
 section in a mapcache.xml file

2) Ol uses MapCache for rendering that tiles or more exactly -
sends WMS(or other) request to MapCache:
new ol.layer.Tile({ 
source: new ol.source.TileWMS(({
url: 'myhost/mapcache/?',
params: {'LAYERS': 'mytileset'},
serverType: 'mapserver'
}))
})
where
/mapcache/ is path to a mapcache.xml(aliased through Apache),
'mytileset' is  section in a mapcache.xml file

3)The Seeding and the rendering needs other configuration of mapcache.xml 
file(it is needs clarification).

4)The seeding may be through:
mapcache_seed -c mapcache.xml -t mytileset-g mygrid
or 
during a certain map area is requested by client (it is needs clarification).
Thanks for any correction.
Best regards.


Wed, 1 Oct 2014 19:33:12 -0400 от Travis Kirstine 
:
>Tim,
>
>MapCache Is simply a tiling server.  It will take images from a source and 
>store them in a cache.  These tiles are exposed as services to clients - WMTS, 
>WMS, TMS etc...  MapServer on the other hand will read source data (GIS files 
>/ database) and render images based on rules defined in the mapfile.  These 
>images are used as the source for MapCache.
>
>On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman  < tnas...@rollingleaf.com > wrote:
>>I have read through the Mapcache documentation but I feel like I am missing 
>>some basic elements to how it works.
>>
>> I am using Mapcache to display a mbtile that I have created. Now from what I 
>>understand, my mapcache .xml will list out the parameters of the mbtile and 
>>then I add a layer within my mapfile referencing the .xml which I should then 
>>be able to to use as WMTS using openlayers. I just haven't grasped how 
>>mapcache and mapserv work together so any clarification would be helpful. 
>>Thanks for your time. 
>>
>>-- 
>>Timothy Nasman
>>Data Analyst | Programmer
>>Rolling Leaf Inc.
>>[V] :  910.274.1436
>>[E] :  tnas...@rollingleaf.com
>>
>>
>>___
>>mapserver-users mailing list
>>mapserver-users@lists.osgeo.org
>>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>-- 
>Travis Kirstine , Web Development Supervisor 
>t  905‑477‑3600  x  301  | m  905‑534‑4798  | tkirst...@firstbasesolution.com
>First Base Solutions Inc.
>140 Renfrew Drive, Suite 100  | Markham  | Ontario  | L3R 6B3
>t  905‑477‑3600  | f  905‑477‑0892  | www.firstbasesolutions.com
>___
>mapserver-users mailing list
>mapserver-users@lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 
Владимир
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache Question

2014-10-01 Thread Travis Kirstine
Tim,

MapCache Is simply a tiling server.  It will take images from a source and
store them in a cache.  These tiles are exposed as services to clients -
WMTS, WMS, TMS etc...  MapServer on the other hand will read source data
(GIS files / database) and render images based on rules defined in the
mapfile.  These images are used as the source for MapCache.

On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman  wrote:

> I have read through the Mapcache documentation but I feel like I am
> missing some basic elements to how it works.
>
>  I am using Mapcache to display a mbtile that I have created. Now from
> what I understand, my mapcache .xml will list out the parameters of the
> mbtile and then I add a layer within my mapfile referencing the .xml which
> I should then be able to to use as WMTS using openlayers. I just haven't
> grasped how mapcache and mapserv work together so any clarification would
> be helpful. Thanks for your time.
>
> --
> Timothy Nasman
> Data Analyst | Programmer
> Rolling Leaf Inc.
> [V] : 910.274.1436
> [E] : tnas...@rollingleaf.com 
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
  [image: FBS Logo]

*Travis Kirstine*, Web Development Supervisor
*t *905‑477‑3600* x *301 | *m *905‑534‑4798 |
tkirst...@firstbasesolution.com

*First Base Solutions Inc.*
140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
*t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache question.

2011-12-05 Thread forums
Ahh, ok that explains it.
Thanks for the information.

Jerl

On Mon, Dec 5, 2011 at 1:05 AM, thomas bonfort wrote:

> only the wms and wmts services support dimensions (there is no spec
> defining this support for the others).
>
> you can either adapt your gmaps/js code to build a wmts url, or hack
> into the mapcache code to add dimension support to the tms / gmaps
> service.
>
> --
> thomas
>
> On Sun, Dec 4, 2011 at 22:23, forums  wrote:
> > I almost have it, I just can't seem to get the targetdate dimension to
> > populate.
> >
> > /mapcache/gmaps/country@WGS84/1/1/0.png works fine if I don't have the
> > layers that require the targetdate parameter.  I get a "parameter pattern
> > failed validation" error returned from Mapserver when I have the
> necessary
> > layers defined in the mapcache config file.
> >
> > The obvious thing for me to try was:
> > /mapcache/gmaps/country@WGS84/1/1/0.png?targetdate=201112042105
> >
> > But that failed.  Is there a way to get the targetdate to fill in? I've
> > moved it around a bit, but still can't get it to fill in.
> >
> > Thanks again!!
> >
> > Jerl
> >
> >
> > On Sun, Dec 4, 2011 at 2:59 PM, forums  wrote:
> >>
> >> Thanks Stephen and Thomas.
> >>
> >> I think I'll be good with the dimension and the disk cache.
> >>  Unfortunately, the apache we have doesn't have memcache built into it
> (too
> >> much hassle to upgrade it right now) and the version of SQLite is too
> >> old...also a hassle to upgrade.
> >>
> >> I was able to get it to load the proper map when just using the entire
> >> bounding box, the whole world.  Now to make it work with the the
> tilemode
> >> for google...which looks like that should be straight forward??
> >>
> >>
> >> Thanks guys!!
> >>
> >> Jerl
> >>
> >>
> >> On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort <
> thomas.bonf...@gmail.com>
> >> wrote:
> >>>
> >>> Jerl,
> >>> mapcache itself does not do any pruning of the caches it has created,
> >>> but you can get the same effect by using a cache backend that supports
> >>> expiration (i.e. memcache).
> >>> Mapcache can fit your need, provided:
> >>> - you configure your tileset with a "targetdate" - you use
> >>> a memcache backend to store the created tiles, and set an 
> >>> value in mapcache to 5 hours
> >>> If the memory requirement for storing 5 hours worth of tiles is too
> >>> important for a memcache server instance, you can have a look at
> >>> membase which will also store less frequently used data to disk. The
> >>> membase protocol is compatible with memcache, so you can use either
> >>> memcache or membase with the same mapcache configuration.
> >>>
> >>> Of course, by running a script every hour to delete expired tiles as
> >>> you are doing now, you can then use the classic disk based cache
> >>> backend.
> >>> regards,
> >>> thomas
> >>> On Sun, Dec 4, 2011 at 20:13, forums  wrote:
> >>> > Hi:
> >>> >
> >>> > I hope this is the proper place to ask questions about Mapcache since
> >>> > it's
> >>> > been moved into the trunk of Mapserver.
> >>> >
> >>> > I'm wondering if Mapcache can help with a particular setup, and if so
> >>> > maybe
> >>> > some advice or direction on where to start?
> >>> >
> >>> > Here's the setup.  Every 5 minutes a new set of GeoTiffs are created
> in
> >>> > a
> >>> > new directory.  I create a tileindex for the GeoTiffs and use those
> in
> >>> > the
> >>> > map layer.  Every hour, anything more than 5hours old gets deleted.
> >>> > I have a single mapfile setup.
> >>> >
> >>> > The general layer is setup like:
> >>> >
> >>> > LAYER
> >>> > NAME 'IMG1'
> >>> > METADATA
> >>> > 'wms_title'   'IMG 1'
> >>> > 'wms_srs' 'EPSG:4326'
> >>> > 'wms_extent'  'MINX MINY MAXX MAXY'
> >>> > 'default_targetdate' ''
> >>> > 'targetdate_validation_pattern' '^[0-9]{12}$'
> >>> > END
> >>> > STATUS ON
> >>> > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'
> >>> > TILEITEM 'Location'
> >>> > TYPE RASTER
> >>> > END
> >>> >
> >>> >
> >>> > I'm currently loading these images as overlays for Googlemaps. using
> >>> > the
> >>> > mode=tile&tilemode=gmaps...&targetdate=2011...etc.
> >>> > Problem is it's too slow. I end up loading hundreds of images, as I
> >>> > basically create an animation using sequential times.
> >>> >
> >>> > I'd like to be able to have a single mapcache config file, that will
> >>> > pass
> >>> > the date through to pull the proper shapefile, and have the result
> >>> > cached so
> >>> > next time it's loading off the disk.  MOST of the images end up being
> >>> > blank/transparent tiles.
> >>> >
> >>> > Is Mapcache a good choice for this?
> >>> > The front end for this is just a simple GoogleMaps viewport, but ends
> >>> > up
> >>> > loading multiple timeslots for display.  It generates the request URL
> >>> > (not
> >>> > currently in WMS fashion but could be).
> >>> >
> >>> > Thanks 

Re: [mapserver-users] Mapcache question.

2011-12-04 Thread thomas bonfort
only the wms and wmts services support dimensions (there is no spec
defining this support for the others).

you can either adapt your gmaps/js code to build a wmts url, or hack
into the mapcache code to add dimension support to the tms / gmaps
service.

--
thomas

On Sun, Dec 4, 2011 at 22:23, forums  wrote:
> I almost have it, I just can't seem to get the targetdate dimension to
> populate.
>
> /mapcache/gmaps/country@WGS84/1/1/0.png works fine if I don't have the
> layers that require the targetdate parameter.  I get a "parameter pattern
> failed validation" error returned from Mapserver when I have the necessary
> layers defined in the mapcache config file.
>
> The obvious thing for me to try was:
> /mapcache/gmaps/country@WGS84/1/1/0.png?targetdate=201112042105
>
> But that failed.  Is there a way to get the targetdate to fill in? I've
> moved it around a bit, but still can't get it to fill in.
>
> Thanks again!!
>
> Jerl
>
>
> On Sun, Dec 4, 2011 at 2:59 PM, forums  wrote:
>>
>> Thanks Stephen and Thomas.
>>
>> I think I'll be good with the dimension and the disk cache.
>>  Unfortunately, the apache we have doesn't have memcache built into it (too
>> much hassle to upgrade it right now) and the version of SQLite is too
>> old...also a hassle to upgrade.
>>
>> I was able to get it to load the proper map when just using the entire
>> bounding box, the whole world.  Now to make it work with the the tilemode
>> for google...which looks like that should be straight forward??
>>
>>
>> Thanks guys!!
>>
>> Jerl
>>
>>
>> On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort 
>> wrote:
>>>
>>> Jerl,
>>> mapcache itself does not do any pruning of the caches it has created,
>>> but you can get the same effect by using a cache backend that supports
>>> expiration (i.e. memcache).
>>> Mapcache can fit your need, provided:
>>> - you configure your tileset with a "targetdate" - you use
>>> a memcache backend to store the created tiles, and set an 
>>> value in mapcache to 5 hours
>>> If the memory requirement for storing 5 hours worth of tiles is too
>>> important for a memcache server instance, you can have a look at
>>> membase which will also store less frequently used data to disk. The
>>> membase protocol is compatible with memcache, so you can use either
>>> memcache or membase with the same mapcache configuration.
>>>
>>> Of course, by running a script every hour to delete expired tiles as
>>> you are doing now, you can then use the classic disk based cache
>>> backend.
>>> regards,
>>> thomas
>>> On Sun, Dec 4, 2011 at 20:13, forums  wrote:
>>> > Hi:
>>> >
>>> > I hope this is the proper place to ask questions about Mapcache since
>>> > it's
>>> > been moved into the trunk of Mapserver.
>>> >
>>> > I'm wondering if Mapcache can help with a particular setup, and if so
>>> > maybe
>>> > some advice or direction on where to start?
>>> >
>>> > Here's the setup.  Every 5 minutes a new set of GeoTiffs are created in
>>> > a
>>> > new directory.  I create a tileindex for the GeoTiffs and use those in
>>> > the
>>> > map layer.  Every hour, anything more than 5hours old gets deleted.
>>> > I have a single mapfile setup.
>>> >
>>> > The general layer is setup like:
>>> >
>>> >     LAYER
>>> >         NAME 'IMG1'
>>> >         METADATA
>>> >             'wms_title'           'IMG 1'
>>> >             'wms_srs'             'EPSG:4326'
>>> >             'wms_extent'          'MINX MINY MAXX MAXY'
>>> >             'default_targetdate' ''
>>> >             'targetdate_validation_pattern' '^[0-9]{12}$'
>>> >         END
>>> >         STATUS ON
>>> >         TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'
>>> >         TILEITEM 'Location'
>>> >         TYPE RASTER
>>> >     END
>>> >
>>> >
>>> > I'm currently loading these images as overlays for Googlemaps. using
>>> > the
>>> > mode=tile&tilemode=gmaps...&targetdate=2011...etc.
>>> > Problem is it's too slow. I end up loading hundreds of images, as I
>>> > basically create an animation using sequential times.
>>> >
>>> > I'd like to be able to have a single mapcache config file, that will
>>> > pass
>>> > the date through to pull the proper shapefile, and have the result
>>> > cached so
>>> > next time it's loading off the disk.  MOST of the images end up being
>>> > blank/transparent tiles.
>>> >
>>> > Is Mapcache a good choice for this?
>>> > The front end for this is just a simple GoogleMaps viewport, but ends
>>> > up
>>> > loading multiple timeslots for display.  It generates the request URL
>>> > (not
>>> > currently in WMS fashion but could be).
>>> >
>>> > Thanks for any help I can get.
>>> >
>>> > Jerl
>>> >
>>> >
>>> >
>>> > ___
>>> > mapserver-users mailing list
>>> > mapserver-users@lists.osgeo.org
>>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>> >
>>
>>
>>
>>
>> --
>> A computer without Windows is like chocolate cake without mustard.
>
>
>
>
> --
> A computer without Windows is like chocolate cake w

Re: [mapserver-users] Mapcache question.

2011-12-04 Thread Stephen Woodbridge

Jerl,

http://mapserver.org/cgi/runsub.html

Sounds like you do not have a validation_pattern for the data parameter.

-Steve W

On 12/4/2011 4:23 PM, forums wrote:

I almost have it, I just can't seem to get the targetdate dimension to
populate.

/mapcache/gmaps/country@WGS84/1/1/0.png works fine if I don't have the
layers that require the targetdate parameter.  I get a "parameter
pattern failed validation" error returned from Mapserver when I have the
necessary layers defined in the mapcache config file.

The obvious thing for me to try was:
/mapcache/gmaps/country@WGS84/1/1/0.png?targetdate=201112042105

But that failed.  Is there a way to get the targetdate to fill in? I've
moved it around a bit, but still can't get it to fill in.

Thanks again!!

Jerl


On Sun, Dec 4, 2011 at 2:59 PM, forums mailto:for...@craniumjuice.com>> wrote:

Thanks Stephen and Thomas.

I think I'll be good with the dimension and the disk cache.
  Unfortunately, the apache we have doesn't have memcache built into
it (too much hassle to upgrade it right now) and the version of
SQLite is too old...also a hassle to upgrade.

I was able to get it to load the proper map when just using the
entire bounding box, the whole world.  Now to make it work with the
the tilemode for google...which looks like that should be straight
forward??


Thanks guys!!

Jerl


On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort
mailto:thomas.bonf...@gmail.com>> wrote:

Jerl,
mapcache itself does not do any pruning of the caches it has
created,
but you can get the same effect by using a cache backend that
supports
expiration (i.e. memcache).
Mapcache can fit your need, provided:
- you configure your tileset with a "targetdate" -
you use
a memcache backend to store the created tiles, and set an 
value in mapcache to 5 hours
If the memory requirement for storing 5 hours worth of tiles is too
important for a memcache server instance, you can have a look at
membase which will also store less frequently used data to disk. The
membase protocol is compatible with memcache, so you can use either
memcache or membase with the same mapcache configuration.

Of course, by running a script every hour to delete expired tiles as
you are doing now, you can then use the classic disk based cache
backend.
regards,
thomas
On Sun, Dec 4, 2011 at 20:13, forums mailto:for...@craniumjuice.com>> wrote:
 > Hi:
 >
 > I hope this is the proper place to ask questions about
Mapcache since it's
 > been moved into the trunk of Mapserver.
 >
 > I'm wondering if Mapcache can help with a particular setup,
and if so maybe
 > some advice or direction on where to start?
 >
 > Here's the setup.  Every 5 minutes a new set of GeoTiffs are
created in a
 > new directory.  I create a tileindex for the GeoTiffs and use
those in the
 > map layer.  Every hour, anything more than 5hours old gets
deleted.
 > I have a single mapfile setup.
 >
 > The general layer is setup like:
 >
 > LAYER
 > NAME 'IMG1'
 > METADATA
 > 'wms_title' 'IMG 1'
 > 'wms_srs' 'EPSG:4326'
 > 'wms_extent' 'MINX MINY MAXX MAXY'
 > 'default_targetdate' ''
 > 'targetdate_validation_pattern' '^[0-9]{12}$'
 > END
 > STATUS ON
 > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'
 > TILEITEM 'Location'
 > TYPE RASTER
 > END
 >
 >
 > I'm currently loading these images as overlays for
Googlemaps. using the
 > mode=tile&tilemode=gmaps...&targetdate=2011...etc.
 > Problem is it's too slow. I end up loading hundreds of
images, as I
 > basically create an animation using sequential times.
 >
 > I'd like to be able to have a single mapcache config file,
that will pass
 > the date through to pull the proper shapefile, and have the
result cached so
 > next time it's loading off the disk.  MOST of the images end
up being
 > blank/transparent tiles.
 >
 > Is Mapcache a good choice for this?
 > The front end for this is just a simple GoogleMaps viewport,
but ends up
 > loading multiple timeslots for display.  It generates the
request URL (not
 > currently in WMS fashion but could be).
 >
 > Thanks for any help I can get.
 >
 > Jerl
 >
 >
 >
 > ___
 > mapserver-users mailing list
 > mapserver-us

Re: [mapserver-users] Mapcache question.

2011-12-04 Thread forums
I almost have it, I just can't seem to get the targetdate dimension to
populate.

/mapcache/gmaps/country@WGS84/1/1/0.png works fine if I don't have the
layers that require the targetdate parameter.  I get a "parameter pattern
failed validation" error returned from Mapserver when I have the necessary
layers defined in the mapcache config file.

The obvious thing for me to try was:
/mapcache/gmaps/country@WGS84/1/1/0.png?targetdate=201112042105

But that failed.  Is there a way to get the targetdate to fill in? I've
moved it around a bit, but still can't get it to fill in.

Thanks again!!

Jerl


On Sun, Dec 4, 2011 at 2:59 PM, forums  wrote:

> Thanks Stephen and Thomas.
>
> I think I'll be good with the dimension and the disk cache.
>  Unfortunately, the apache we have doesn't have memcache built into it (too
> much hassle to upgrade it right now) and the version of SQLite is too
> old...also a hassle to upgrade.
>
> I was able to get it to load the proper map when just using the entire
> bounding box, the whole world.  Now to make it work with the the tilemode
> for google...which looks like that should be straight forward??
>
>
> Thanks guys!!
>
> Jerl
>
>
> On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort 
> wrote:
>
>> Jerl,
>> mapcache itself does not do any pruning of the caches it has created,
>> but you can get the same effect by using a cache backend that supports
>> expiration (i.e. memcache).
>> Mapcache can fit your need, provided:
>> - you configure your tileset with a "targetdate" - you use
>> a memcache backend to store the created tiles, and set an 
>> value in mapcache to 5 hours
>> If the memory requirement for storing 5 hours worth of tiles is too
>> important for a memcache server instance, you can have a look at
>> membase which will also store less frequently used data to disk. The
>> membase protocol is compatible with memcache, so you can use either
>> memcache or membase with the same mapcache configuration.
>>
>> Of course, by running a script every hour to delete expired tiles as
>> you are doing now, you can then use the classic disk based cache
>> backend.
>> regards,
>> thomas
>> On Sun, Dec 4, 2011 at 20:13, forums  wrote:
>> > Hi:
>> >
>> > I hope this is the proper place to ask questions about Mapcache since
>> it's
>> > been moved into the trunk of Mapserver.
>> >
>> > I'm wondering if Mapcache can help with a particular setup, and if so
>> maybe
>> > some advice or direction on where to start?
>> >
>> > Here's the setup.  Every 5 minutes a new set of GeoTiffs are created in
>> a
>> > new directory.  I create a tileindex for the GeoTiffs and use those in
>> the
>> > map layer.  Every hour, anything more than 5hours old gets deleted.
>> > I have a single mapfile setup.
>> >
>> > The general layer is setup like:
>> >
>> > LAYER
>> > NAME 'IMG1'
>> > METADATA
>> > 'wms_title'   'IMG 1'
>> > 'wms_srs' 'EPSG:4326'
>> > 'wms_extent'  'MINX MINY MAXX MAXY'
>> > 'default_targetdate' ''
>> > 'targetdate_validation_pattern' '^[0-9]{12}$'
>> > END
>> > STATUS ON
>> > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'
>> > TILEITEM 'Location'
>> > TYPE RASTER
>> > END
>> >
>> >
>> > I'm currently loading these images as overlays for Googlemaps. using the
>> > mode=tile&tilemode=gmaps...&targetdate=2011...etc.
>> > Problem is it's too slow. I end up loading hundreds of images, as I
>> > basically create an animation using sequential times.
>> >
>> > I'd like to be able to have a single mapcache config file, that will
>> pass
>> > the date through to pull the proper shapefile, and have the result
>> cached so
>> > next time it's loading off the disk.  MOST of the images end up being
>> > blank/transparent tiles.
>> >
>> > Is Mapcache a good choice for this?
>> > The front end for this is just a simple GoogleMaps viewport, but ends up
>> > loading multiple timeslots for display.  It generates the request URL
>> (not
>> > currently in WMS fashion but could be).
>> >
>> > Thanks for any help I can get.
>> >
>> > Jerl
>> >
>> >
>> >
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>>
>
>
>
> --
> A computer without Windows is like chocolate cake without mustard.
>



-- 
A computer without Windows is like chocolate cake without mustard.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapcache question.

2011-12-04 Thread forums
Thanks Stephen and Thomas.

I think I'll be good with the dimension and the disk cache.  Unfortunately,
the apache we have doesn't have memcache built into it (too much hassle to
upgrade it right now) and the version of SQLite is too old...also a hassle
to upgrade.

I was able to get it to load the proper map when just using the entire
bounding box, the whole world.  Now to make it work with the the tilemode
for google...which looks like that should be straight forward??


Thanks guys!!

Jerl

On Sun, Dec 4, 2011 at 2:00 PM, thomas bonfort wrote:

> Jerl,
> mapcache itself does not do any pruning of the caches it has created,
> but you can get the same effect by using a cache backend that supports
> expiration (i.e. memcache).
> Mapcache can fit your need, provided:
> - you configure your tileset with a "targetdate" - you use
> a memcache backend to store the created tiles, and set an 
> value in mapcache to 5 hours
> If the memory requirement for storing 5 hours worth of tiles is too
> important for a memcache server instance, you can have a look at
> membase which will also store less frequently used data to disk. The
> membase protocol is compatible with memcache, so you can use either
> memcache or membase with the same mapcache configuration.
>
> Of course, by running a script every hour to delete expired tiles as
> you are doing now, you can then use the classic disk based cache
> backend.
> regards,
> thomas
> On Sun, Dec 4, 2011 at 20:13, forums  wrote:
> > Hi:
> >
> > I hope this is the proper place to ask questions about Mapcache since
> it's
> > been moved into the trunk of Mapserver.
> >
> > I'm wondering if Mapcache can help with a particular setup, and if so
> maybe
> > some advice or direction on where to start?
> >
> > Here's the setup.  Every 5 minutes a new set of GeoTiffs are created in a
> > new directory.  I create a tileindex for the GeoTiffs and use those in
> the
> > map layer.  Every hour, anything more than 5hours old gets deleted.
> > I have a single mapfile setup.
> >
> > The general layer is setup like:
> >
> > LAYER
> > NAME 'IMG1'
> > METADATA
> > 'wms_title'   'IMG 1'
> > 'wms_srs' 'EPSG:4326'
> > 'wms_extent'  'MINX MINY MAXX MAXY'
> > 'default_targetdate' ''
> > 'targetdate_validation_pattern' '^[0-9]{12}$'
> > END
> > STATUS ON
> > TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'
> > TILEITEM 'Location'
> > TYPE RASTER
> > END
> >
> >
> > I'm currently loading these images as overlays for Googlemaps. using the
> > mode=tile&tilemode=gmaps...&targetdate=2011...etc.
> > Problem is it's too slow. I end up loading hundreds of images, as I
> > basically create an animation using sequential times.
> >
> > I'd like to be able to have a single mapcache config file, that will pass
> > the date through to pull the proper shapefile, and have the result
> cached so
> > next time it's loading off the disk.  MOST of the images end up being
> > blank/transparent tiles.
> >
> > Is Mapcache a good choice for this?
> > The front end for this is just a simple GoogleMaps viewport, but ends up
> > loading multiple timeslots for display.  It generates the request URL
> (not
> > currently in WMS fashion but could be).
> >
> > Thanks for any help I can get.
> >
> > Jerl
> >
> >
> >
> > ___
> > mapserver-users mailing list
> > mapserver-users@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>



-- 
A computer without Windows is like chocolate cake without mustard.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapcache question.

2011-12-04 Thread thomas bonfort
Jerl,
mapcache itself does not do any pruning of the caches it has created,
but you can get the same effect by using a cache backend that supports
expiration (i.e. memcache).
Mapcache can fit your need, provided:
- you configure your tileset with a "targetdate" - you use
a memcache backend to store the created tiles, and set an 
value in mapcache to 5 hours
If the memory requirement for storing 5 hours worth of tiles is too
important for a memcache server instance, you can have a look at
membase which will also store less frequently used data to disk. The
membase protocol is compatible with memcache, so you can use either
memcache or membase with the same mapcache configuration.

Of course, by running a script every hour to delete expired tiles as
you are doing now, you can then use the classic disk based cache
backend.
regards,
thomas
On Sun, Dec 4, 2011 at 20:13, forums  wrote:
> Hi:
>
> I hope this is the proper place to ask questions about Mapcache since it's
> been moved into the trunk of Mapserver.
>
> I'm wondering if Mapcache can help with a particular setup, and if so maybe
> some advice or direction on where to start?
>
> Here's the setup.  Every 5 minutes a new set of GeoTiffs are created in a
> new directory.  I create a tileindex for the GeoTiffs and use those in the
> map layer.  Every hour, anything more than 5hours old gets deleted.
> I have a single mapfile setup.
>
> The general layer is setup like:
>
>     LAYER
>         NAME 'IMG1'
>         METADATA
>             'wms_title'           'IMG 1'
>             'wms_srs'             'EPSG:4326'
>             'wms_extent'          'MINX MINY MAXX MAXY'
>             'default_targetdate' ''
>             'targetdate_validation_pattern' '^[0-9]{12}$'
>         END
>         STATUS ON
>         TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'
>         TILEITEM 'Location'
>         TYPE RASTER
>     END
>
>
> I'm currently loading these images as overlays for Googlemaps. using the
> mode=tile&tilemode=gmaps...&targetdate=2011...etc.
> Problem is it's too slow. I end up loading hundreds of images, as I
> basically create an animation using sequential times.
>
> I'd like to be able to have a single mapcache config file, that will pass
> the date through to pull the proper shapefile, and have the result cached so
> next time it's loading off the disk.  MOST of the images end up being
> blank/transparent tiles.
>
> Is Mapcache a good choice for this?
> The front end for this is just a simple GoogleMaps viewport, but ends up
> loading multiple timeslots for display.  It generates the request URL (not
> currently in WMS fashion but could be).
>
> Thanks for any help I can get.
>
> Jerl
>
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Mapcache question.

2011-12-04 Thread Stephen Woodbridge

Hi Jerl,

Maybe! is the short answer. The analysis of the problem is:

1. What is the primary purpose of mapcache?

Will it is a flexible tools that can do a lot of things, like on-the-fly 
cache building, compositing images from tiles in the cache, etc. It's 
primary purpose is to provide tile generation and tile serving for 
environments that need tiles instead of draw on demand images.


2. So to some extent this depends on your usage model, ie: tile requests 
per unit time.


3. it sounds like from your description below, that you are serving draw 
on demand images and not using a tile cache at the moment.


To use a tile cache given your current scenario, you would still have to 
do everything the same as before, but you would also have to figure out 
what tiles at the various zoom levels needed to be removed when any of 
the GeoTiffs changed, either replace some existing GeoTiff or got 
removed because of age.


I'm not sure I see anyway that it will magically simplify your process. 
And on the contrary, it will add some complexity to the whole process. 
That said, if your demand is increasing and your server(s) are having 
trouble keeping up with the image demand, then adding mapcache could be 
a solution.


-Steve W

On 12/4/2011 2:13 PM, forums wrote:

Hi:

I hope this is the proper place to ask questions about Mapcache since
it's been moved into the trunk of Mapserver.

I'm wondering if Mapcache can help with a particular setup, and if so
maybe some advice or direction on where to start?

Here's the setup.  Every 5 minutes a new set of GeoTiffs are created in
a new directory.  I create a tileindex for the GeoTiffs and use those in
the map layer.  Every hour, anything more than 5hours old gets deleted.
I have a single mapfile setup.

The general layer is setup like:

 LAYER
 NAME 'IMG1'
 METADATA
'wms_title' 'IMG 1'
'wms_srs' 'EPSG:4326'
'wms_extent' 'MINX MINY MAXX MAXY'
'default_targetdate' ''
'targetdate_validation_pattern' '^[0-9]{12}$'
 END
 STATUS ON
 TILEINDEX '/PATH/TO/IMG/DIR/%targetdate%/TILEINDEX.shp'
 TILEITEM 'Location'
 TYPE RASTER
 END


I'm currently loading these images as overlays for Googlemaps. using the
mode=tile&tilemode=gmaps...&targetdate=2011...etc.
Problem is it's too slow. I end up loading hundreds of images, as I
basically create an animation using sequential times.

I'd like to be able to have a single mapcache config file, that will
pass the date through to pull the proper shapefile, and have the result
cached so next time it's loading off the disk.  MOST of the images end
up being blank/transparent tiles.

Is Mapcache a good choice for this?
The front end for this is just a simple GoogleMaps viewport, but ends up
loading multiple timeslots for display.  It generates the request URL
(not currently in WMS fashion but could be).

Thanks for any help I can get.

Jerl




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users