Hi,

you can issue a GetMap request using the format parameter a follows : 
format=image%2Fjpeg (as in the url generated when you select JPEG using a 
browser)

Just call this url and you'll get the image (jpeg) you want.

You can change the bbox parameter depending on the zone you want to be returned 
as JPEG image.

Hope this helps.

Good luck !


Envoyé à partir d’Outlook<http://aka.ms/weboutlook>

________________________________
De : Андрей Метелкин <metylkin.and...@gmail.com>
Envoyé : 25 août 2021 13:58
À : geoserver-users@lists.sourceforge.net 
<geoserver-users@lists.sourceforge.net>
Objet : [Geoserver-users] How to download a pdf layer via rest API

Hello!
I will try to explain what I want.
Using a browser, I can go to the section:
[image.png]
And manually download the object in any format to your local PC.
For example:
[image.png]
The file will be saved on my PC.
I want to understand how to do this through the API.

Thank you in advance!

--
С уважением,
Метелкин Андрей
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to