Re: [Geoserver-devel] WMS decorations and pdf output?

2020-05-28 Thread Andrea Aime
Hi Ian,
as far as I know, it never worked. I can only see support for watermarks
here:
https://github.com/geoserver/geoserver/blob/6bb431a36a57aa1b6cf68d78bc7dea35b0958812/src/wms/src/main/java/org/geoserver/wms/map/PDFMapResponse.java#L224

RenderedImageMapOutputFormat has the full support for it instead:
https://github.com/geoserver/geoserver/blob/fae173a2ca4c2a77434605ec5063b643b8a0e3a3/src/wms/src/main/java/org/geoserver/wms/map/RenderedImageMapOutputFormat.java#L723

Jody suggested a number of times to have decorations act like DirectLayer
implementations, but that
never happened (would make sharing code to setup decorations probably a bit
easier, but the refactor
is likely non trivial).

Cheers
Andrea

On Thu, May 28, 2020 at 6:12 PM Ian Turton  wrote:

> While playing with WMS decorations with my trainees this morning I
> confidently said and then you change the output format to application/pdf
> and they have a printer ready map! But when I tried it, you don't get any
> decorations - so
>
> http://localhost:8080/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&STYLES=population&FORMAT_OPTIONS=layout%3Astyle-editor-legend%3BfontAntiAliasing%3Atrue&RANDOM=-608024167&LEGEND_OPTIONS=forceLabels%3Aon%3BfontAntiAliasing%3Atrue&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&WIDTH=1273&HEIGHT=300&BBOX=25.48828125%2C-150.6005859375%2C51.85546875%2C-38.7158203125
> produces an image with a legend while
> http://localhost:8080/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=application/pdf&TRANSPARENT=true&LAYERS=topp%3Astates&STYLES=population&FORMAT_OPTIONS=layout%3Astyle-editor-legend%3BfontAntiAliasing%3Atrue&RANDOM=-608024167&LEGEND_OPTIONS=forceLabels%3Aon%3BfontAntiAliasing%3Atrue&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&WIDTH=1273&HEIGHT=300&BBOX=25.48828125%2C-150.6005859375%2C51.85546875%2C-38.7158203125
> doesn't
>
> So my question is didn't this used to work for PDF? - if people think it
> did then I'll file a bug otherwise I'll add an enhancement request and add
> a note to the docs to warn people. My feeling is it used to work but I
> can't recall when I last tested it.
>
> Cheers
>
> Ian
>
> --
> Ian Turton
> ___
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>


-- 

Regards, Andrea Aime

== GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
--- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


[Geoserver-devel] WMS decorations and pdf output?

2020-05-28 Thread Ian Turton
While playing with WMS decorations with my trainees this morning I
confidently said and then you change the output format to application/pdf
and they have a printer ready map! But when I tried it, you don't get any
decorations - so
http://localhost:8080/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=topp%3Astates&STYLES=population&FORMAT_OPTIONS=layout%3Astyle-editor-legend%3BfontAntiAliasing%3Atrue&RANDOM=-608024167&LEGEND_OPTIONS=forceLabels%3Aon%3BfontAntiAliasing%3Atrue&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&WIDTH=1273&HEIGHT=300&BBOX=25.48828125%2C-150.6005859375%2C51.85546875%2C-38.7158203125
produces an image with a legend while
http://localhost:8080/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=application/pdf&TRANSPARENT=true&LAYERS=topp%3Astates&STYLES=population&FORMAT_OPTIONS=layout%3Astyle-editor-legend%3BfontAntiAliasing%3Atrue&RANDOM=-608024167&LEGEND_OPTIONS=forceLabels%3Aon%3BfontAntiAliasing%3Atrue&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&CRS=EPSG%3A4326&WIDTH=1273&HEIGHT=300&BBOX=25.48828125%2C-150.6005859375%2C51.85546875%2C-38.7158203125
doesn't

So my question is didn't this used to work for PDF? - if people think it
did then I'll file a bug otherwise I'll add an enhancement request and add
a note to the docs to warn people. My feeling is it used to work but I
can't recall when I last tested it.

Cheers

Ian

-- 
Ian Turton
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


[Geoserver-devel] [JIRA] (GEOS-9634) Update documentation on ImageMosaic configuration with SQLServer details

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

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMDNmN2Y4ZTk2NDExNGNmMDk4ZDNlMjFiMWIwMjJlYWQiLCJwIjoiaiJ9
 ) / New Feature ( 
https://osgeo-org.atlassian.net/browse/GEOS-9634?atlOrigin=eyJpIjoiMDNmN2Y4ZTk2NDExNGNmMDk4ZDNlMjFiMWIwMjJlYWQiLCJwIjoiaiJ9
 ) GEOS-9634 ( 
https://osgeo-org.atlassian.net/browse/GEOS-9634?atlOrigin=eyJpIjoiMDNmN2Y4ZTk2NDExNGNmMDk4ZDNlMjFiMWIwMjJlYWQiLCJwIjoiaiJ9
 ) Update documentation on ImageMosaic configuration with SQLServer details ( 
https://osgeo-org.atlassian.net/browse/GEOS-9634?atlOrigin=eyJpIjoiMDNmN2Y4ZTk2NDExNGNmMDk4ZDNlMjFiMWIwMjJlYWQiLCJwIjoiaiJ9
 )

Issue Type: New Feature Assignee: Unassigned Created: 28/May/20 5:40 PM 
Priority: Medium Reporter: Marco Volpini ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a129c3cb35ed9014cf6b480
 )

Adding SqlServer details in image mosaic configuration docs.

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

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#100127- 
sha1:33b9894 )___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Re: [Geoserver-devel] GSIP-176 Cite Automation update?

2020-05-28 Thread Lorenzo Pini
Sure,
no problem.

I found existing artifacts there and just reused the same location.

Regards,
Lorenzo Pini

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Lorenzo Pini
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:  +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it
---
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.


On Wed, May 27, 2020 at 8:20 PM Jody Garnett  wrote:

> Some small feedback, as I went looking for test results.
>
> I noticed the jobs uploading to:
>
> https://repo.osgeo.org/repository/geotools-releases/org/opengis/cite/ets-wcs11/1.13/ets-wcs11-1.13-ctl.zip
>
>
> Can you use the geoserver-releases repo for this work? I would also be
> happy to make an additional repo if it is appropriate.
> --
> Jody Garnett
>
>
> On Fri, 22 May 2020 at 12:53, Jody Garnett  wrote:
>
>> That is great, thank you for the update.
>>
>> While the other teams have setup osgeo docker facilities, you are the
>> first to try from GeoServer. I would like to ensure you have sufficient
>> access (via a PSC member) to manage next week.
>>
>> I am somewhat apprehensive, but looking forward to, seeing the initial
>> testing results.
>> --
>> Jody Garnett
>>
>>
>> On Fri, 22 May 2020 at 09:45, Lorenzo Pini 
>> wrote:
>>
>>> Dear Jody,
>>> I'm working on setting up the CITE tests automation.
>>>
>>> Here is a brief update on the current status:
>>> - The required "ets-*" artifacts are being built on Jenkins. The deploy
>>> phase is currently missing, but it is not blocking as we only have a single
>>> server at the moment.
>>> - The teamengine-docker image is being built on Jenkins.
>>> - The cite-tests is now working on Jenkins and a first test shows that
>>> the cite tests are able to run against the latest GeoServer master.
>>> - I did a small improvement on the bash scripts to manage the exit code
>>> but I think a change in the teamengine-core java code will be needed to
>>> properly address this
>>>
>>> I'll continue next week with:
>>> - Completing the deploy of all the artifacts and docker images in maven
>>> repo and dockehub
>>> - Improve the readability of the jobs logs
>>> - Try the tests on different GeoServer releases
>>>
>>> Regards,
>>> Lorenzo Pini
>>>
>>> ==
>>> GeoServer Professional Services from the experts! Visit
>>> http://goo.gl/it488V for more information.
>>> ==
>>>
>>> Lorenzo Pini
>>> Software Engineer
>>>
>>> GeoSolutions S.A.S.
>>> Via di Montramito 3/A
>>> 55054  Massarosa (LU)
>>> Italy
>>> phone: +39 0584 962313
>>> fax:  +39 0584 1660272
>>>
>>> http://www.geo-solutions.it
>>> http://twitter.com/geosolutions_it
>>> ---
>>> Con riferimento alla normativa sul trattamento dei dati personali (Reg.
>>> UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
>>> precisa che ogni circostanza inerente alla presente email (il suo
>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
>>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>>>
>>> This email is intended only for the person or entity to which it is
>>> addressed and may contain information that is privileged, confidential or
>>> otherwise protected from disclosure. We remind that - as provided by
>>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
>>> e-mail or the information herein by anyone other than the intended
>>> recipient is prohibited. If you have received this email by mistake, please
>>> notify us immediately by telephone or e-mail.
>>>
>>>
>>> On Mon, Apr 6, 2020 at 8:53 PM Jody Garnett 
>>> wrote:
>>>
 Alessandro:

 We now have repo.osgeo.org operational, the builds should hopefully
 switch over

[Geoserver-devel] [JIRA] (GEOS-9633) Pregeneralized DataStore and Vector-tyle

2020-05-28 Thread carlo cancellieri (JIRA)
carlo cancellieri ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e410b8f4298990c97dd9a9b
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiMWYxNGUxN2Y5YTc2NGEwZThmZjQwODQxZjNiNDUyMWMiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-9633?atlOrigin=eyJpIjoiMWYxNGUxN2Y5YTc2NGEwZThmZjQwODQxZjNiNDUyMWMiLCJwIjoiaiJ9
 ) GEOS-9633 ( 
https://osgeo-org.atlassian.net/browse/GEOS-9633?atlOrigin=eyJpIjoiMWYxNGUxN2Y5YTc2NGEwZThmZjQwODQxZjNiNDUyMWMiLCJwIjoiaiJ9
 ) Pregeneralized DataStore and Vector-tyle ( 
https://osgeo-org.atlassian.net/browse/GEOS-9633?atlOrigin=eyJpIjoiMWYxNGUxN2Y5YTc2NGEwZThmZjQwODQxZjNiNDUyMWMiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.17.0 Assignee: Unassigned Attachments: 
3_edited.png Components: Features pregeneralized, Vector Tiles Created: 
28/May/20 2:30 PM Environment:

Windows 10
openjdk 11
Geoserver-2.17.0 or master

Priority: Medium Reporter: carlo cancellieri ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5e410b8f4298990c97dd9a9b
 )

Dear list,
we're trying to configure a pregeneralized datastore to speedup the vector 
tyles cache generation with no luck.

Actually asking in layerpreview for a simple application/openlayer everything 
works very well.
---
14 May 20:45:36 DEBUG [renderer.lite] - Computed scale denominator: 
2.7922819993363017E8
14 May 20:45:36 DEBUG [renderer.lite] - creating rules for scale denominator - 
279,228,199.934
14 May 20:45:36 DEBUG [data.util] - CRSConverterFactory can be applied from 
Strings to CRS only.
14 May 20:45:36 DEBUG [data.util] - InterpolationConverterFactory can be 
applied from Strings to Interpolation only.
14 May 20:45:36 DEBUG [renderer.lite] - Processing 1 stylers for 
n50:gadm36_0_3857_gen
14 May 20:45:36 DEBUG [renderer.lite] - Expanding rendering area by 2 pixels to 
consider stroke width
14 May 20:45:36 WARN [operation.projection] - Possible use of "Popular 
Visualisation Pseudo Mercator" projection outside its valid area.
Longitude 2147483287░00.0'W is out of range (▒180░).
14 May 20:45:36 DEBUG [renderer.lite] - Querying layer n50:gadm36_0_3857_gen 
with bbox: ReferencedEnvelope [-2.4862478922090434E7 : 2.4862478922090434E7, 
-3.604277604743299E7 : 2.4315191650220517E7]
14 May 20:45:36 TRACE [util.factory] - ENTRY (GeometryFactory, 
JTS_GEOMETRY_FACTORY)
14 May 20:45:36 TRACE [util.factory] - RETURN (GeometryFactory, 
JTS_GEOMETRY_FACTORY): found implementation Optional.
14 May 20:45:36 DEBUG [data.gen] - Hint geometry distance: 62547.11678513289
14 May 20:45:36 DEBUG [data.gen] - Hint geometry distance: 62547.11678513289
14 May 20:45:36 INFO [data.gen] - Using generalizsation: postgis_n50 
gadm36_0_3857 geom500 500.0
14 May 20:45:36 DEBUG [geotools.jdbc] - CREATE CONNECTION
14 May 20:45:36 DEBUG [data.jdbc] - exporting PropertyName
14 May 20:45:36 DEBUG [data.util] - CRSConverterFactory can be applied from 
Strings to CRS only.
14 May 20:45:36 DEBUG [data.util] - InterpolationConverterFactory can be 
applied from Strings to Interpolation only.
14 May 20:45:36 DEBUG [geotools.jdbc] - SELECT "gid",ST_AsBinary("geom500") as 
"geom500" FROM "public"."gadm36_0_3857" WHERE "geom" && ST_GeomFromWKB(?, 3857)
14 May 20:45:36 DEBUG [geotools.jdbc] - 1 = POLYGON ((-24862478.922090434 
-19971868.88040857, 24862478.922090434 -19971868.88040857, 24862478.922090434 
19971868.880408563, -24862478.922090434 19971868.880408563, -24862478.922090434 
-19971868.88040857))
14 May 20:45:48 DEBUG [geotools.jdbc] - CLOSE CONNECTION

Once we try to ask for a mapbox vector tile (or geoJson) to WMS using the 
layerpreview page, seems that the hint for the geometry distance is not used as 
well.

14 May 20:49:34 DEBUG [geoserver.wms] - setting up map
14 May 20:49:34 DEBUG [data.gen] - Hint for geometry simplification in query, 
fallback to base feature
14 May 20:49:34 DEBUG [data.gen] - No hint for geometry distance in query, 
fallback to base feature
14 May 20:49:34 DEBUG [data.gen] - Hint for geometry simplification in query, 
fallback to base feature
14 May 20:49:34 DEBUG [data.gen] - No hint for geometry distance in query, 
fallback to base feature
14 May 20:49:34 DEBUG [geotools.jdbc] - CREATE CONNECTION
14 May 20:49:34 DEBUG [data.jdbc] - exporting PropertyName
14 May 20:49:34 DEBUG [data.util] - CRSConverterFactory can be applied from 
Strings to CRS only.
14 May 20:49:34 DEBUG [data.util] - InterpolationConverterFactory can be 
applied from Strings to Interpolation only.
14 May 20:49:34 DEBUG [geotools.jdbc] - SELECT 
"gid","gid_0","name_0",ST_AsBinary("geom") as "geom","fid" FROM 
"public"."gadm36_0_3857" WHERE "geom" && ST_GeomFromWKB(?, 3857)
14 May 20:49:34 DEBUG [geotools.jdbc] - 1 = POLYGON ((-20100916.899652816 
-30304381.79087722, 20100916.899652816 -30304381.79087722, 20100916.899652816 
18516704.85076622, -20100916.899652816 18516704.85076622, -20100916.899652816 
-30304381.79087722))
14 May 20:52:01 DEBUG [geotools.jdbc

[Geoserver-devel] [JIRA] (GEOS-9632) Mongo-db plugin zip miss a dependency jar

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

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiOWIyM2Y3Njk5OWUwNGRjN2IzZTY0YjU1MDhiZGZkMzMiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-9632?atlOrigin=eyJpIjoiOWIyM2Y3Njk5OWUwNGRjN2IzZTY0YjU1MDhiZGZkMzMiLCJwIjoiaiJ9
 ) GEOS-9632 ( 
https://osgeo-org.atlassian.net/browse/GEOS-9632?atlOrigin=eyJpIjoiOWIyM2Y3Njk5OWUwNGRjN2IzZTY0YjU1MDhiZGZkMzMiLCJwIjoiaiJ9
 ) Mongo-db plugin zip miss a dependency jar ( 
https://osgeo-org.atlassian.net/browse/GEOS-9632?atlOrigin=eyJpIjoiOWIyM2Y3Njk5OWUwNGRjN2IzZTY0YjU1MDhiZGZkMzMiLCJwIjoiaiJ9
 )

Issue Type: Bug Assignee: Unassigned Created: 28/May/20 11:32 AM Priority: 
Medium Reporter: Marco Volpini ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a129c3cb35ed9014cf6b480
 )

The ext-mongodb xml needs update to include bson.jar in the plugin zip.

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

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#100127- 
sha1:33b9894 )___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel