Menu

#303 TIF format for tiles ?

Already_implemented
open
nobody
None
1
2020-12-28
2020-12-27
B3r3n
No

Hello r_x,

Before all, Merry Xmas & Happy New Year for you & yours ! It should be much better than 2020 !!

I would like to know how it would be feasible to have the support for TIF tiles ?
Some WMS only accepts this format and that is a blocking point.

Nota : I am not good enough at beanshell, but a solution might be to convert the obtained tile data directly into the bsh, to return jpg/png/gif instead of tif. Some sort of return (tif2png(url));

Thanks for your feedback

Brgrds

Discussion

  • r_x

    r_x - 2020-12-27

    Have you tried what happens if you try to use a WMS map server that provides only TIFF images?

     
  • Alain

    Alain - 2020-12-27

    Hi,
    to get the tif format (e.g. for Memory map) I'm using a third party software :
    First with MOBAC I generate tiles in OzieExplarer(Png & Map) format
    Then with Global Mapper I convert the OziEplorer format in Geotiff format thanks to the batch conversion function. I'm using Global Mapper V20.0.
    Regards

     
  • r_x

    r_x - 2020-12-27

    @B3r3n Just to make it clear to you want to use a WMS server that provides TIFF images or do you want to create an atlas that contains TIFF images?
    Your question contains hints for both possibilities.

     
  • B3r3n

    B3r3n - 2020-12-28

    Hello guys,

    Thanks for your answers. To provide inputs to all:

    @Alain : I do the same as you :-) OZI@MOBAC + Photoshop to reduce to 256 colors better than MMap does, then Global Mapper to create GeoTIFF, usable by many softwares :-)
    Sometimes Maperitive in the path to add specific layers (OSM hiking maps over IGN for example).

    @r_x : Despite the WMS server tells (it accepts png/jpg/gif), its answers can comply with these formats yes, but just to show the tile name.tif as a picture :-(
    Example : http://geomap.reteunitaria.piemonte.it/ws/taims/rp-01/taimsgriwms/wms_griglie?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&LAYERS=Qu_BDTRE&WIDTH=256&HEIGHT=256&CRS=EPSG:3857&STYLES=default&BBOX=916327.0949551392,5795761.231888429,916479.9690116883,5795914.105944978

    For the other question : my default Atlas format is OZI, that is perfect to me. Issue would then be I received TIF pictures to convert to MOBAC format : either MOBAC can do or possible some library could be added to the beanshell (ImageJ ?).

    WMS capabilities, it can help: https://geomap.reteunitaria.piemonte.it/ws/taims/rp-01/taimsgriwms/wms_griglie?service=WMS&version=1.3.0&request=GetCapabilities

    Brgrds

     

    Last edit: B3r3n 2020-12-28
    • r_x

      r_x - 2020-12-28

      @B3r3n
      Your ideas regarding performing conversions in bsh scripts won't work. bsh scripts are only called for retrieving the URL and headers for performing the HTTP request. It was also a security decision not to provide a full-featured scripting environment to prevent attacks via bsh scripts.

      For performing tile data conversions you need to perform an implement of mobac.program.interfaces.MapSource and provide the converted tile image file data as return value of getTileData.

      But for your example URL you get the same image even if you change the format to image/tiff (just in tiff file format instead of png) . Therefore I would assume that the requested region is simply not covered or there is a different problem with the request.

       

      Last edit: r_x 2020-12-28

Log in to post a comment.

MongoDB Logo MongoDB