Re: [mapserver-users] Mapcache support for multiple format types

2016-11-22 Thread Cechini, Matthew F. (GSFC-423.0)[Science Systems & Applications, Inc.]
A compelling situation could be a layer that has uses cases where you want it 
have transparency or not, making it an “overlay” or “base layer” respectively.

Though, if you’re serving it as 24+1bit PNG with transparency, you’re gonna 
lose quality in JPEG, so you would probably want to return a 24bit PNG.  And at 
that point, you would have to have separate layers because the mime type is the 
same.

As an aside, a member of our team did work on a JPNG approach where tiles that 
require transparency are PNG and those that do not are JPEG.  The devil is in 
the details of quality mapping with that though.

Matt
.
Matthew Cechini
Contractor, Science Systems and Applications, Inc.
NASA GIBS Systems/Software Engineer
410.205.6272

From: mapserver-users 
>
 on behalf of thomas bonfort 
>
Date: Tuesday, November 22, 2016 at 1:28 PM
To: tellett >, 
"mapserver-users@lists.osgeo.org" 
>
Subject: Re: [mapserver-users] Mapcache support for multiple format types

Hi Tom,
My question wasn't clear, or you did not answer my question ;-)
I was looking for a compelling *use-case* where the solution requires a tile 
server to support both jpeg and png for a given tileset. My stance for mapcache 
is that the data producer (i.e. you as the mapcache administrator) knows his 
data and therefore which format (*singular*) is best suited for a given 
tileset. I'd be happy to revisit my judgment if presented with a scenario where 
more than one format per tileset is actually needed.

Cheers,
Thomas

On Tue, Nov 22, 2016 at 12:19 PM tellett 
> wrote:
Hi Thomas,

Really, its just so that we don't need to have 2 separate layers in the
service for each format type. The norwegian mapping authority has about 25
cache 'services' and so its a bit messy in the config and WMTS capabilities
file if we have to have 50 tilesets instead of 25.

Its no problem technically having 2 tilesets called 'topo2_png' and
'topo2_jpeg' for example (they would have the same title and abstract), it
just would have been preferable for us to have 1 layer support multiple
formats so that the client could call the same service/layer/tileset and
choose the format type through the kvp parameter. Not a show-stopper for us,
we just have to change our way of thinking :)

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5296917.html
Sent from the Mapserver - User mailing list archive at Nabble.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 support for multiple format types

2016-11-22 Thread thomas bonfort
Hi Tom,
My question wasn't clear, or you did not answer my question ;-)
I was looking for a compelling *use-case* where the solution requires a
tile server to support both jpeg and png for a given tileset. My stance for
mapcache is that the data producer (i.e. you as the mapcache administrator)
knows his data and therefore which format (*singular*) is best suited for a
given tileset. I'd be happy to revisit my judgment if presented with a
scenario where more than one format per tileset is actually needed.

Cheers,
Thomas

On Tue, Nov 22, 2016 at 12:19 PM tellett  wrote:

Hi Thomas,

Really, its just so that we don't need to have 2 separate layers in the
service for each format type. The norwegian mapping authority has about 25
cache 'services' and so its a bit messy in the config and WMTS capabilities
file if we have to have 50 tilesets instead of 25.

Its no problem technically having 2 tilesets called 'topo2_png' and
'topo2_jpeg' for example (they would have the same title and abstract), it
just would have been preferable for us to have 1 layer support multiple
formats so that the client could call the same service/layer/tileset and
choose the format type through the kvp parameter. Not a show-stopper for us,
we just have to change our way of thinking :)

Tom



--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5296917.html
Sent from the Mapserver - User mailing list archive at Nabble.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] Can't get capabilities xml error message

2016-11-22 Thread Rahkonen Jukka (MML)
Hi,

I believe that a quick fix is to edit your mapfile and change " opérations " 
into "operations".  Non-ASCII character should be OK if you save the mapfile as 
UTF8 which is a requirement nowadays in any case. Plain ASCII mapfiles still do 
work even if they are saved as Latin1 or something.

-Jukka Rahkonen-

Leehan wrote:

[mapserver-users] Can't get capabilities xml error message

> hello,

> Mapserver 7 & Apache are installed using ms4w 3.1.4. All is running fine with 
> windows server 2008.
I can get a map in FireFox. 
I can't get the WMS with Qgis : failed to load capabilities (traduction from 
french, sorry) Indeed, I can't get the capabilities in FF either with  : 
http://10.210.1.32:8080/cgi-bin/mapserv.exe?...\fond_mapserver.map=1.3.0=WMS=GetCapabilities;

here's the message :
 

Previously I had a message beginning by "mandatory metadata...'. I worked on my 
mapfile and then get this last message just above.

here's my mapfile : 
MAP
 WEB
METADATA
"wms_title" "WMS-Inrap, aide au montage des opérations"
"wms_onlineresource"
"http://10.210.1.32:8080/Apache/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/fond_mapserver.map&;
"wms_enable_request" "*" 
"wms_srs" "EPSG:2154 EPSG:3857 EPSG:900913"
"wms_encoding" "UTF-8"

END
END

All layers have METADATA with wms_title and wms_srs (even if this last param is 
not required because I have a PROJECTION object).
I feel a little lost.
Thanks






--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Can-t-get-capabilities-xml-error-message-tp5296958.html
Sent from the Mapserver - User mailing list archive at Nabble.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] Can't get capabilities xml error message

2016-11-22 Thread Leehan
hello,

Mapserver 7 & Apache are installed using ms4w 3.1.4. All is running fine
with windows server 2008.
I can get a map in FireFox. 
I can't get the WMS with Qgis : failed to load capabilities (traduction from
french, sorry)
Indeed, I can't get the capabilities in FF either with  : 
http://10.210.1.32:8080/cgi-bin/mapserv.exe?...\fond_mapserver.map=1.3.0=WMS=GetCapabilities;

here's the message :
 

Previously I had a message beginning by "mandatory metadata...'. I worked on
my mapfile and then get this last message just above.

here's my mapfile : 
MAP
 WEB
METADATA
"wms_title" "WMS-Inrap, aide au montage des opérations"
"wms_onlineresource"
"http://10.210.1.32:8080/Apache/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/fond_mapserver.map&;
"wms_enable_request" "*" 
"wms_srs" "EPSG:2154 EPSG:3857 EPSG:900913"
"wms_encoding" "UTF-8"

END
END

All layers have METADATA with wms_title and wms_srs (even if this last param
is not required because I have a PROJECTION object).
I feel a little lost.
Thanks






--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Can-t-get-capabilities-xml-error-message-tp5296958.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache support for multiple format types

2016-11-22 Thread tellett
Hi Thomas,

Really, its just so that we don't need to have 2 separate layers in the
service for each format type. The norwegian mapping authority has about 25
cache 'services' and so its a bit messy in the config and WMTS capabilities
file if we have to have 50 tilesets instead of 25. 

Its no problem technically having 2 tilesets called 'topo2_png' and
'topo2_jpeg' for example (they would have the same title and abstract), it
just would have been preferable for us to have 1 layer support multiple
formats so that the client could call the same service/layer/tileset and
choose the format type through the kvp parameter. Not a show-stopper for us,
we just have to change our way of thinking :)

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486p5296917.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache support for multiple format types

2016-11-22 Thread thomas bonfort
There is no support for multiple formats per tileset (yet?), as I could not
imagine a compelling use-case that would warrant it. Would you care to
explain why this would be needed?

--
thomas


On Fri, Nov 18, 2016 at 3:41 PM tellett  wrote:

> Hi all,
>
> I'm wondering if theres any other way in mapcache to support multiple
> formats (png and jpeg for example) than to create a new tileset?
>
> For example if I have a wms 'source' called topo2_wms (that supports png
> and
> jpeg), and a tileset called topo2cache, whats the best ways to create tiles
> in both png and jpeg? Is it really necessary to create 2 tilesets, 1 called
> topo2cache_png and one topo2cache_jpeg?
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mapcache-support-for-multiple-format-types-tp5296486.html
> Sent from the Mapserver - User mailing list archive at Nabble.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