Select to view content in your preferred language

WMTS - choose image format in ArcGIS Online

577
4
03-07-2024 07:04 PM
JoshMaisey
New Contributor

I am consuming a WMTS feed in ArcGIS Online and there are two image formats specified for each layer - image/jpeg and image/png.

In ArcGIS Pro, I can choose the Image Format. Can I select the image format in ArcGIS Online? It appears to just be selecting the first format in the list (image/jpeg). Ideally, I'd like to change the layer to use image/png.

0 Kudos
4 Replies
MiguelParedes
Esri Contributor

Greetings @JoshMaisey 

Please, if possible, would you please share the URL of the service in question so that we can take a look?

Miguel
0 Kudos
JoshMaisey
New Contributor

Hi @MiguelParedes, unfortunately it's behind auth, but I have pasted part of the GetCapabilities response for the layer I'm adding if that helps (note, removed the tile ResourceURL as it contained a full URL with an API key):

 

 

        <Layer>
            <ows:Title>Latest</ows:Title>
            <ows:Identifier>Latest</ows:Identifier>
            <ows:BoundingBox crs="urn:ogc:def:crs:EPSG::3857">
                <ows:LowerCorner>-13214859.195624908 -3843903.496919085</ows:LowerCorner>
                <ows:UpperCorner>14442088.907254817 5227570.223973844</ows:UpperCorner>
            </ows:BoundingBox>
            <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
                <ows:LowerCorner>-118.7110999291726 -32.611905598272266</ows:LowerCorner>
                <ows:UpperCorner>129.735492 42.442992014456685</ows:UpperCorner>
            </ows:WGS84BoundingBox>
            <Style>
                <ows:Identifier>default</ows:Identifier>
            </Style>
            <Format>image/jpeg</Format>
            <Format>image/png</Format>
            <ResourceURL format="image/jpeg" resourceType="tile" template="..." />
            <ResourceURL format="image/png" resourceType="tile" template="..." />
            <TileMatrixSetLink>
                <TileMatrixSet>GoogleMapsCompatible_9-22</TileMatrixSet>
            </TileMatrixSetLink>
        </Layer>

 

 

 
In ArcGIS Pro, I can follow these instructions:

Many web layers can be served in a selected image format. By default,ArcGIS Prorequests images in PNG32. This format returns a high-quality image and supports transparency. However, its data size can be much larger than other formats. You can use smaller-sized formats, such as JPG; however, layer transparency is not supported for JPG.

To choose an available image format, use the Image format drop-down menu. This menu displays the format options supported by the service.

But I cannot find similar instructions for ArcGIS Online.

0 Kudos
MiguelParedes
Esri Contributor

Greetings @JoshMaisey 

I have not been able to find a WMTS service that uses PNG and JPEG for the same layer, but still, ArcGIS Pro does show the option for whatever format the layer supports.  After testing if the option is available in Map Viewer or Map Viewer Classic, I can say that the option is not available.  The service I tested with is:

https://gitc.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi, where some layers have format="image/png" and others format="image/jpeg".

I recommend adding this functionality to the Ideas portal for consideration to implement.

Miguel
0 Kudos
SarahNoakes1
Frequent Contributor

Hi @JoshMaisey - did you log an Idea for this?  If so, please can you pop a link in so I can upvote it?

Thanks,
Sarah

0 Kudos