Marco Volpini ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a129c3cb35ed9014cf6b480
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiNGQ4ZWFhZDdmYzhlNGQ1MGE3ZDk4ZGRjMTE0MTM0ZjgiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-9542?atlOrigin=eyJpIjoiNGQ4ZWFhZDdmYzhlNGQ1MGE3ZDk4ZGRjMTE0MTM0ZjgiLCJwIjoiaiJ9
 ) GEOS-9542 ( 
https://osgeo-org.atlassian.net/browse/GEOS-9542?atlOrigin=eyJpIjoiNGQ4ZWFhZDdmYzhlNGQ1MGE3ZDk4ZGRjMTE0MTM0ZjgiLCJwIjoiaiJ9
 ) Legend image resize doesn't work properly for big legend images ( 
https://osgeo-org.atlassian.net/browse/GEOS-9542?atlOrigin=eyJpIjoiNGQ4ZWFhZDdmYzhlNGQ1MGE3ZDk4ZGRjMTE0MTM0ZjgiLCJwIjoiaiJ9
 )

Issue Type: Bug Assignee: Unassigned Attachments: foo.xml, large_legend_res.png 
Created: 17/Mar/20 5:51 PM Priority: Medium Reporter: Marco Volpini ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a129c3cb35ed9014cf6b480
 )

( 
https://osgeo-org.atlassian.net/secure/attachment/33438/33438_large_legend_res.png
 )
put the attached png files under style directory.
foo.xml ( https://osgeo-org.atlassian.net/secure/attachment/33437/33437_foo.xml 
)
put in the layouts folder the file foo.xml.

In the styles editor add as online resource large_legend_res.png, click on 
autodetect image size and submit.

Perform the following getMap 
http://localhost:8080/geoserver/nurc/wms?service=WMS&version=1.1.0&request=GetMap&format_options=layout:foo&layers=nurc%3AArc_Sample&bbox=-180.0%2C-90.0%2C180.0%2C90.0&width=768&height=384&srs=EPSG%3A4326&format=image%2Fjpeg

the legend is correctly displayed.

Edit foo.xml file by replacing auto value inside size attribute with a smaller 
custom size eg 500, 50.

the legend is cut off

( 
https://osgeo-org.atlassian.net/browse/GEOS-9542#add-comment?atlOrigin=eyJpIjoiNGQ4ZWFhZDdmYzhlNGQ1MGE3ZDk4ZGRjMTE0MTM0ZjgiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-9542#add-comment?atlOrigin=eyJpIjoiNGQ4ZWFhZDdmYzhlNGQ1MGE3ZDk4ZGRjMTE0MTM0ZjgiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100122- 
sha1:87fe5bb )
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to