Re: [Geoserver-users] Can't run GWC S3 BlobStore plugin

2019-06-24 Thread Chris Bateman
Perfect.  I will test it out.

Thanks,

*Chris Bateman* { aws + systems }
E: chr...@2pisoftware.com
2pisoftware.com


On Mon, Jun 24, 2019 at 11:55 PM Mauro Bartolomeoli <
mauro.bartolome...@geo-solutions.it> wrote:

> Hi Chris,
> I merged my fix on both master and 2.15.x, so it should work for you with
> next nightly.
>
> Let me know.
> Mauro
>
>
> Il giorno lun 24 giu 2019 alle ore 04:54 Chris Bateman <
> chr...@2pisoftware.com> ha scritto:
>
>> Hi all,
>>
>> I can't seem to run GWC S3 BlobStore plugin on my current install of
>> geoserver despite running it before.
>>
>> Set up -
>>
>> Oracle Corporation: 11.0.3 (OpenJDK 64-Bit Server VM)
>> Ubuntu 18.04 (EC2 instance)
>> apache-tomcat-9.0.21
>>
>>- GeoServer Version 2.15.1
>>- GeoWebCache Version 1.15.1
>>
>>
>> Tried -
>> geoserver-2.16-SNAPSHOT-gwc-s3-plugin.zip  and
>> geoserver-2.15-SNAPSHOT-gwc-s3-plugin.zip
>> from 24th June 2019 nightly - Same error.
>>
>> The actual error - when creating a new blob store and selecting the s3
>> plugin from the drop down menu.
>>
>> org.apache.wicket.WicketRuntimeException: Property 'accessType' not found
>> in property files. Markup: [markup =
>> jar:file:/opt/tomcat/apache-tomcat-9.0.21/webapps/geoserver/WEB-INF/lib/gs-gwc-s3-2.15-SNAPSHOT.jar!/org/geoserver/gwc/web/blob/S3BlobStorePanel.html
>> Access Type:, index = 1,
>> current = [Raw markup]] at
>> org.apache.wicket.markup.resolver.WicketMessageResolver$MessageContainer.onComponentTagBody(WicketMessageResolver.java:226)
>> at
>> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
>> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
>> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
>> org.apache.wicket.Component.internalRender(Component.java:2401) at
>> org.apache.wicket.Component.render(Component.java:2329) at
>> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
>> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
>> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
>> at
>> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
>> at
>> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
>> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
>> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
>> org.apache.wicket.Component.internalRender(Component.java:2401) at
>> org.apache.wicket.Component.render(Component.java:2329) at
>> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
>> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
>> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
>> at
>> org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:799)
>> at
>> org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
>> at
>> org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
>> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
>> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
>> org.apache.wicket.Component.internalRender(Component.java:2401) at
>> org.apache.wicket.Component.render(Component.java:2329) at
>> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
>> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
>> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
>> at
>> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
>> at
>> org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1707)
>> at
>> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
>> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
>> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
>> org.apache.wicket.Component.internalRender(Component.java:2401) at
>> org.apache.wicket.Component.render(Component.java:2329) at
>> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
>> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
>> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
>> at
>> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
>> at
>> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
>> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
>> at org.apache.wicket.MarkupContainer.o

Re: [Geoserver-users] Can't run GWC S3 BlobStore plugin

2019-06-24 Thread Mauro Bartolomeoli
Hi Chris,
I merged my fix on both master and 2.15.x, so it should work for you with
next nightly.

Let me know.
Mauro


Il giorno lun 24 giu 2019 alle ore 04:54 Chris Bateman <
chr...@2pisoftware.com> ha scritto:

> Hi all,
>
> I can't seem to run GWC S3 BlobStore plugin on my current install of
> geoserver despite running it before.
>
> Set up -
>
> Oracle Corporation: 11.0.3 (OpenJDK 64-Bit Server VM)
> Ubuntu 18.04 (EC2 instance)
> apache-tomcat-9.0.21
>
>- GeoServer Version 2.15.1
>- GeoWebCache Version 1.15.1
>
>
> Tried -
> geoserver-2.16-SNAPSHOT-gwc-s3-plugin.zip  and
> geoserver-2.15-SNAPSHOT-gwc-s3-plugin.zip
> from 24th June 2019 nightly - Same error.
>
> The actual error - when creating a new blob store and selecting the s3
> plugin from the drop down menu.
>
> org.apache.wicket.WicketRuntimeException: Property 'accessType' not found
> in property files. Markup: [markup =
> jar:file:/opt/tomcat/apache-tomcat-9.0.21/webapps/geoserver/WEB-INF/lib/gs-gwc-s3-2.15-SNAPSHOT.jar!/org/geoserver/gwc/web/blob/S3BlobStorePanel.html
> Access Type:, index = 1,
> current = [Raw markup]] at
> org.apache.wicket.markup.resolver.WicketMessageResolver$MessageContainer.onComponentTagBody(WicketMessageResolver.java:226)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:799)
> at
> org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
> at
> org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
> at
> org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1707)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.page.XmlPartialPageUpdate.writeComponent(XmlPartialPageUpdate.java:119)
> at
> org.apache.wicket.page.PartialPageUpdate.writeCom

Re: [Geoserver-users] authority IGNF for WMTS

2019-06-24 Thread Andrea Aime
On Mon, Jun 24, 2019 at 3:26 PM DIOT Clément  wrote:

> Hi all,
>
>
>
> I have seen several topics to my problem but nothing perfectly clear
> unfortunately.
>
>
>
> With GeoServer 2.15.1, I try to create a storage thanks to a
> getcapabilities URL.
>
> GeoServer crashed saying  Exception 'Can't parse crs
> IGNF:LAMB93:L'autorité "IGNF"
>
> I undestand that GeoServer support EPSG authority but not IGNF, isn’t it ?
>

It does not.


>  Could I declare this new authority like I can do for new projection in
> user_projection ?
>

No, EPSG is hard coded in a number of places, there is no configuration to
add a new authority.
Breaking free of "EPSG" support is a thing we'd love to see, but it's far
from trivial to do, one would
have to go through the entire code base of geotools and geoserver and
remove all assumptions,
then make the system configurable

Cheers
Andrea

==

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-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


[Geoserver-users] authority IGNF for WMTS

2019-06-24 Thread DIOT Clément
Hi all,

I have seen several topics to my problem but nothing perfectly clear 
unfortunately.

With GeoServer 2.15.1, I try to create a storage thanks to a getcapabilities 
URL.
GeoServer crashed saying  Exception 'Can't parse crs IGNF:LAMB93:L'autorité 
"IGNF"
I undestand that GeoServer support EPSG authority but not IGNF, isn't it ?

Could I declare this new authority like I can do for new projection in 
user_projection ?

Note that I cannot share the getcapabilities URL, due to restriction on data.

Thanks for your help.

Clément
___
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


Re: [Geoserver-users] Can't run GWC S3 BlobStore plugin

2019-06-24 Thread Andrea Aime
Hi Chris,
this is your lucky day, Mauro is running a fix on this:
https://github.com/geoserver/geoserver/pull/3606 (it happens to be needed a
project we're working on).

However, at the same time, careful, you're deploying it wrong. A community
module is unsupported, it's not released,
it's just a nightly build. This means, among other things, that it has to
be used only with corresponding nightly builds of the core GeoServer.

If you want to have more guarantees, and use the gwc-s3 module along with
releases, you should either:

   - Become the maintainer of the module and push it in supported land
   (doing the necessary development and support work)
   - See if you can sponsor someone to act as maintainer (I'd check the
   commercial support page)

Cheers
Andrea

On Mon, Jun 24, 2019 at 4:54 AM Chris Bateman 
wrote:

> Hi all,
>
> I can't seem to run GWC S3 BlobStore plugin on my current install of
> geoserver despite running it before.
>
> Set up -
>
> Oracle Corporation: 11.0.3 (OpenJDK 64-Bit Server VM)
> Ubuntu 18.04 (EC2 instance)
> apache-tomcat-9.0.21
>
>- GeoServer Version 2.15.1
>- GeoWebCache Version 1.15.1
>
>
> Tried -
> geoserver-2.16-SNAPSHOT-gwc-s3-plugin.zip  and
> geoserver-2.15-SNAPSHOT-gwc-s3-plugin.zip
> from 24th June 2019 nightly - Same error.
>
> The actual error - when creating a new blob store and selecting the s3
> plugin from the drop down menu.
>
> org.apache.wicket.WicketRuntimeException: Property 'accessType' not found
> in property files. Markup: [markup =
> jar:file:/opt/tomcat/apache-tomcat-9.0.21/webapps/geoserver/WEB-INF/lib/gs-gwc-s3-2.15-SNAPSHOT.jar!/org/geoserver/gwc/web/blob/S3BlobStorePanel.html
> Access Type:, index = 1,
> current = [Raw markup]] at
> org.apache.wicket.markup.resolver.WicketMessageResolver$MessageContainer.onComponentTagBody(WicketMessageResolver.java:226)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:799)
> at
> org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
> at
> org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1659)
> at
> org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1707)
> at
> org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
> at org.apache.wicket.Component.internalRenderComponent(Component.java:2601)
> at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1668) at
> org.apache.wicket.Component.internalRender(Component.java:2401) at
> org.apache.wicket.Component.render(Component.java:2329) at
> org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1526) at
> org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1729) at
> org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1704)
> at
> org.apache.wicket.MarkupCon

Re: [Geoserver-users] GeoServer ignores jpeg format of cascading WMTS

2019-06-24 Thread HSt
Hi Ian,

that's good to know.


Thanks for the response,

HSt



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
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


Re: [Geoserver-users] GeoServer ignores jpeg format of cascading WMTS

2019-06-24 Thread Ian Turton
There is an open PR to fix this issue -
https://github.com/geotools/geotools/pull/2011 but we're waiting on the
contributor to finish up the paper work and fix the conflicts.

Ian

On Mon, 24 Jun 2019 at 09:11, HSt  wrote:

> Hi all,
>
> when cascading a WMTS, GeoServer (2.14.2) ignores the supported format
> (jpeg) in the getcapabilites document of the remote WMTS (also GeoServer
> 2.14.2) and requests png tiles instead by default which produces an 400
> error.
>
> 
>
> None of the layers in the getcapabilities document supports png, only
> getlegendgraphic. So why is GeoServer ignoring the image format?
>
> This may be related to https://osgeo-org.atlassian.net/browse/GEOS-9042
> where the supported CRS of the remote WMTS is ignored.
>
> 2019-06-24 09:47:51,612 ERROR [geotools.tile] - Failed to load image:
>
> http://abc12vm45:8080/geoserver/gwc/service/wmts?request=GetTile&tilematrixset=GRID_TH_25832&TileRow=442&service=WMTS&*format=image%2Fpng*&style=RasterWMTS&TileCol=404&version=1.0.0&layer=RASTER%3ATestMosaic&TileMatrix=GRID_TH_25832%3A6&;
> java.io.IOException: Connection returned code 400
> at
> org.geotools.data.wmts.client.WMTSTile.setupInputStream(WMTSTile.java:259)
> at
>
> org.geotools.data.wmts.client.WMTSTile.doLoadImageTileImage(WMTSTile.java:232)
> at
>
> org.geotools.data.wmts.client.WMTSTile.loadImageTileImage(WMTSTile.java:219)
> at org.geotools.tile.Tile.getBufferedImage(Tile.java:163)
> at
>
> org.geotools.map.WMTSCoverageReader.getTileImage(WMTSCoverageReader.java:365)
> at
> org.geotools.map.WMTSCoverageReader.renderTile(WMTSCoverageReader.java:350)
> at
>
> org.geotools.map.WMTSCoverageReader.renderTiles(WMTSCoverageReader.java:332)
> at
> org.geotools.map.WMTSCoverageReader.getMap(WMTSCoverageReader.java:294)
> at
> org.geotools.map.WMTSCoverageReader.read(WMTSCoverageReader.java:261)
> at
>
> org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readSingleCoverage(GridCoverageReaderHelper.java:637)
> at
>
> org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readCoverage(GridCoverageReaderHelper.java:213)
> at
>
> org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:868)
> at
>
> org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:831)
> at
>
> org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:1036)
> at
>
> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:349)
> at
>
> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:265)
> at
>
> org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:132)
> at org.geoserver.wms.GetMap.executeInternal(GetMap.java:720)
> at org.geoserver.wms.GetMap.run(GetMap.java:300)
> at org.geoserver.wms.GetMap.run(GetMap.java:123)
> at
>
> org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:251)
> at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
>
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
> at
>
> org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:38)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> at
>
> org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:59)
> at
>
> org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:33)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> at
>
> org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:78)
> at
>
> org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:52)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> at
>
> org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:50)
> at
>
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
> at
>
> org.springframework.a

[Geoserver-users] GeoServer ignores jpeg format of cascading WMTS

2019-06-24 Thread HSt
Hi all,

when cascading a WMTS, GeoServer (2.14.2) ignores the supported format
(jpeg) in the getcapabilites document of the remote WMTS (also GeoServer
2.14.2) and requests png tiles instead by default which produces an 400
error.

 

None of the layers in the getcapabilities document supports png, only
getlegendgraphic. So why is GeoServer ignoring the image format?

This may be related to https://osgeo-org.atlassian.net/browse/GEOS-9042
where the supported CRS of the remote WMTS is ignored. 

2019-06-24 09:47:51,612 ERROR [geotools.tile] - Failed to load image:
http://abc12vm45:8080/geoserver/gwc/service/wmts?request=GetTile&tilematrixset=GRID_TH_25832&TileRow=442&service=WMTS&*format=image%2Fpng*&style=RasterWMTS&TileCol=404&version=1.0.0&layer=RASTER%3ATestMosaic&TileMatrix=GRID_TH_25832%3A6&;
java.io.IOException: Connection returned code 400
at
org.geotools.data.wmts.client.WMTSTile.setupInputStream(WMTSTile.java:259)
at
org.geotools.data.wmts.client.WMTSTile.doLoadImageTileImage(WMTSTile.java:232)
at
org.geotools.data.wmts.client.WMTSTile.loadImageTileImage(WMTSTile.java:219)
at org.geotools.tile.Tile.getBufferedImage(Tile.java:163)
at
org.geotools.map.WMTSCoverageReader.getTileImage(WMTSCoverageReader.java:365)
at
org.geotools.map.WMTSCoverageReader.renderTile(WMTSCoverageReader.java:350)
at
org.geotools.map.WMTSCoverageReader.renderTiles(WMTSCoverageReader.java:332)
at 
org.geotools.map.WMTSCoverageReader.getMap(WMTSCoverageReader.java:294)
at org.geotools.map.WMTSCoverageReader.read(WMTSCoverageReader.java:261)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readSingleCoverage(GridCoverageReaderHelper.java:637)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readCoverage(GridCoverageReaderHelper.java:213)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:868)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:831)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:1036)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:349)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:265)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:132)
at org.geoserver.wms.GetMap.executeInternal(GetMap.java:720)
at org.geoserver.wms.GetMap.run(GetMap.java:300)
at org.geoserver.wms.GetMap.run(GetMap.java:123)
at
org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:251)
at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:38)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:59)
at
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:33)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:78)
at
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:52)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:50)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy102.getMap(Unknown Source)
at sun.reflect.GeneratedMethodAccessor449.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:877)
at 
org.geoserver