Re: [Geoserver-users] WMS NullPointer Exception

2017-09-26 Thread Anna-Lena.Hock
Hi Andrea,

thanks for the reply!

I removed the footprints ( ;)! ) and it’s still the same problem. I also added 
a new layer with a ImageMosaic Datasource – pointing to 0-Folder in the 
pyramid. It’s still the same error – it only occurs if I am requesting a tile 
size.

We will install the master tomorrow and test if the problem is solved. The 
error message is quite different – plus we don’t have a color map in the sld 
and we can’t view the layer in any other CRS.

Here are some pictures from my latest tests…
This is the index-shp (behind is the wms service):

[cid:image002.jpg@01D336DA.1EB2EF90] 
[cid:image003.jpg@01D336DA.1EB2EF90]

Best regards,
Anna


Von: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] Im Auftrag von Andrea 
Aime
Gesendet: Dienstag, 26. September 2017 08:24
An: Hock, Anna-Lena 
Cc: GeoServer Mailing List List 
Betreff: Re: [Geoserver-users] WMS NullPointer Exception

Hi Anna,
see my notes inline.

On Mon, Sep 25, 2017 at 3:08 PM, 
> wrote:
Dear List,

currently I am facing a problem with our WMS Service. The data source is a big 
Image Pyramid with 5 levels covering Germany in EPSG:25832. For tiles outside 
the boundaries of the dataset Geoserver throws nullpointer exceptions:

2017-09-25 11:47:22,205 ERROR [geoserver.ows] -
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2016)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2266)
at 
it.geosolutions.imageio.plugins.png.ScanlineProviderFactory.getProvider(ScanlineProviderFactory.java:53)
at 
it.geosolutions.imageio.plugins.png.PNGWriter.isScanlineSupported(PNGWriter.java:111)

I added a footprints.shp to each level of the Pyramid to set the boundary for 
the WMS. Is this causing those issues? I added the footrpints via trial and 
error, because I couldn’t find footprints for pyramids in the documentation.

I cannot tell if they are, but it's simple enough to remove the footprints, 
reload the configuration, and check if that's causing the issue, no? :)

In terms of configuring footprints, a pyramid is really just a switcher between 
N image mosaics, so you configure the footprints in each mosaic
separately. Footprints are designed to match each image in the mosaic and 
provide a way to cut it to its valid area, there is no notion of footprint
for the whole mosaic. See documentation here:
http://docs.geoserver.org/stable/en/user/tutorials/imagemosaic_footprint/imagemosaic_footprint.html

The footprint is meant mostly for satellite/aerial imagery having each their 
own "valid area", not sure if it's a match for you case
(I'm imagining you'd rather provide the boundaries of Germany for the whole 
layer, but maybe I'm just guessing wrong).


We are running a geoserver 2.11.1 (we already downgraded, because in the latest 
stable release (2.11.2) we couldn’t view the WMS in any other CRS)

For 2.11.2 I believe you hit this one, I tried a fix during the weekend but 
could not
get any confirmation from the reporter:
https://osgeo-org.atlassian.net/browse/GEOS-8298

Cheers
Andrea


--

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact 

Re: [Geoserver-users] Trouble with Image Mosaic (.tif)

2017-09-26 Thread Andrea Aime
Hi,
we use overalapping TIFFs all the time (satellite images do overlap a lot)
without any such issue, but it requires setting
transparency/nodata/footprint
so that the parts of the file that do not have valid pixels are ignored

Cheers
Andrea

On Tue, Sep 26, 2017 at 1:39 PM, user154654 via Geoserver-users <
geoserver-users@lists.sourceforge.net> wrote:

> Problem was that tiff files were overlapping so I had to move overlapping
> tiffs to different layers and create a layer group.
>
> Since I was checking logs on production onvironment I guess I misjudged
> time
> of my GetMap requests or there was actualy a bad layer /bellow/ the tiff
> layer and that is why I "connected" those warnings with blank areas.
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-
> f3786390.html
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> 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
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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

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


Re: [Geoserver-users] Trouble with Image Mosaic (.tif)

2017-09-26 Thread user154654 via Geoserver-users
Problem was that tiff files were overlapping so I had to move overlapping
tiffs to different layers and create a layer group.

Since I was checking logs on production onvironment I guess I misjudged time
of my GetMap requests or there was actualy a bad layer /bellow/ the tiff
layer and that is why I "connected" those warnings with blank areas.



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

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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

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


[Geoserver-users] Seeding of imagemosaic layer problem

2017-09-26 Thread Darell van der Voort
Hello everybody,

I'm running Geoserver 2.11.2 on Java 1.8.0_144 32 bits on Amazon Linux
together with Tomcat 9. The plugins I have installed are imagemosaic,
imagepyramid, GeowebCache (internal) and Geofence.

Raster datasources are configured via the imagemosaic plugin and uses the
JNDI connection pooling. Granules are stored in a PostgreSQL database. All
raster granules have a time dimension.

When I start seeding a layer which only contains a single tiff in the
imagemosaic, seeding works fine and all tiles are created at the selected
zoomlevels. However when I apply the same method to an imagemosiac that
contains multiple tiffs, only tiles until zoomlevel 6 are generated. After
that the seeding stops with the following error:

2017-09-26 09:22:26,133 INFO [seed.GWCTask] - Thread group finished SEED
> task after 1.919 seconds
> 2017-09-26 09:22:26,133 ERROR [seed.MTSeeder] - Problem communicating with
> GeoServer
> org.geowebcache.GeoWebCacheException: Problem communicating with GeoServer
> at
> org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:611)
> at
> org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:800)
> at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:141)
> at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
> at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
> at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.NullPointerException
> at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2344)
> at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2299)
> at
> org.geoserver.gwc.layer.GeoServerMetaTile.createTile(GeoServerMetaTile.java:194)
> at
> org.geoserver.gwc.layer.GeoServerMetaTile.writeTileToStream(GeoServerMetaTile.java:100)
> at org.geowebcache.layer.TileLayer.saveTiles(TileLayer.java:679)
> at
> org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:608)
> ... 9 more



Is the imagemosaic plugin with multiple tiffs not compatible with
GeowebCache seeding?

I have also tried the imagepyramid plugin using the data format as
generated with gdal_retile. Seeding then also works for multiple tiffs.
However with the imagepyramid plugin I do not seem to be able to use a DB
for storing the granules or add a time dimension (which is essential). Is
this true or am I missing something?

Thank you for your help.

Kind regards,
Darell
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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

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


Re: [Geoserver-users] WMS NullPointer Exception

2017-09-26 Thread Andrea Aime
Hi Anna,
see my notes inline.

On Mon, Sep 25, 2017 at 3:08 PM,  wrote:

> Dear List,
>
>
>
> currently I am facing a problem with our WMS Service. The data source is a
> big Image Pyramid with 5 levels covering Germany in EPSG:25832. For tiles
> outside the boundaries of the dataset Geoserver throws nullpointer
> exceptions:
>
>
>
> 2017-09-25 11:47:22,205 ERROR [geoserver.ows] -
>
> java.lang.NullPointerException
>
> at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)
>
> at javax.media.jai.PlanarImage.getData(PlanarImage.java:2016)
>
> at javax.media.jai.RenderedOp.getData(RenderedOp.java:2266)
>
> at it.geosolutions.imageio.plugins.png.ScanlineProviderFactory.
> getProvider(ScanlineProviderFactory.java:53)
>
> at it.geosolutions.imageio.plugins.png.PNGWriter.
> isScanlineSupported(PNGWriter.java:111)
>

>
> I added a footprints.shp to each level of the Pyramid to set the boundary
> for the WMS. Is this causing those issues? I added the footrpints via trial
> and error, because I couldn’t find footprints for pyramids in the
> documentation.
>

I cannot tell if they are, but it's simple enough to remove the footprints,
reload the configuration, and check if that's causing the issue, no? :)

In terms of configuring footprints, a pyramid is really just a switcher
between N image mosaics, so you configure the footprints in each mosaic
separately. Footprints are designed to match each image in the mosaic and
provide a way to cut it to its valid area, there is no notion of footprint
for the whole mosaic. See documentation here:
http://docs.geoserver.org/stable/en/user/tutorials/imagemosaic_footprint/imagemosaic_footprint.html

The footprint is meant mostly for satellite/aerial imagery having each
their own "valid area", not sure if it's a match for you case
(I'm imagining you'd rather provide the boundaries of Germany for the whole
layer, but maybe I'm just guessing wrong).


>
>
> We are running a geoserver 2.11.1 (we already downgraded, because in the
> latest stable release (2.11.2) we couldn’t view the WMS in any other CRS)
>

For 2.11.2 I believe you hit this one, I tried a fix during the weekend but
could not
get any confirmation from the reporter:
https://osgeo-org.atlassian.net/browse/GEOS-8298

Cheers
Andrea


-- 

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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