[Geoserver-users] Problem seeing newly added ImageMosaic granules

Anybody?

···

From: Stephen Brooke
Sent: Monday, October 20, 2014 9:44 AM
To: geoserver-users@lists.sourceforge.net
Subject: RE: Problem seeing newly added ImageMosaic granules

Does anyone know the answer to this? Still haven’t seen a response for this question yet and I find it hard to believe this hasn’t been an issue for someone else.

Thanks,

–Steve

From: Stephen Brooke
Sent: Thursday, October 16, 2014 4:40 PM
To: geoserver-users@lists.sourceforge.net
Subject: Problem seeing newly added ImageMosaic granules

Hi list,

I am using GeoServer 2.5.2 with PostGIS 2.1.3 I have an ImageMosaic of raster imagery with time series support where granule index is stored in PostGIS table. I am able to add new granules by adding a row to the DB table and via the GeoServer REST API. However, when I preview the layer I am unable to see the new granules until I restart GeoServer. What is the correct way to force an ImageMosaic coverage to allow the new granules to be available?

I am using the URL parameter: “?recalculate=nativebbox,latlonbbox” when adding granules but it doesn’t seem to update the layer extent.

–Steve

Hi Stephen,
do you have a sample set to replicate the issue? (as an instance a first granule to be configured and a second one to be added showing that it doesn’t update the mosaic index)

You can also share to me by private email in case you are not allowed to redistribute your data to “anyone”.

Please, let us know.

Regards,
Daniele

···

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

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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.

On Wed, Oct 22, 2014 at 7:01 AM, Stephen Brooke <sbrooke@anonymised.com> wrote:

Anybody?

From: Stephen Brooke
Sent: Monday, October 20, 2014 9:44 AM
To: geoserver-users@lists.sourceforge.net
Subject: RE: Problem seeing newly added ImageMosaic granules

Does anyone know the answer to this? Still haven’t seen a response for this question yet and I find it hard to believe this hasn’t been an issue for someone else.

Thanks,

–Steve

From: Stephen Brooke
Sent: Thursday, October 16, 2014 4:40 PM
To: geoserver-users@lists.sourceforge.net
Subject: Problem seeing newly added ImageMosaic granules

Hi list,

I am using GeoServer 2.5.2 with PostGIS 2.1.3 I have an ImageMosaic of raster imagery with time series support where granule index is stored in PostGIS table. I am able to add new granules by adding a row to the DB table and via the GeoServer REST API. However, when I preview the layer I am unable to see the new granules until I restart GeoServer. What is the correct way to force an ImageMosaic coverage to allow the new granules to be available?

I am using the URL parameter: “?recalculate=nativebbox,latlonbbox” when adding granules but it doesn’t seem to update the layer extent.

–Steve


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Unfortunately, I am not at liberty to share the data I’m working with, besides, it is too large to distribute easily. My problem is not that the ImageMosaic granule index doesn’t get updated. My problem is that the ImageMosaic doesn’t seem to automatically detect that the new granule has been added to the index unless I restart GeoServer.

You should be able to reproduce this issue with any GeoTiffs that have built-in overviews. I’m not really doing anything special. In other words, the ImageMosaic doesn’t seem to recalculate what it thinks is the extent of the granules. For my imagery note that the granules may not be very near each other geographically.

–Steve

···

Hi Stephen,
do you have a sample set to replicate the issue? (as an instance a first granule to be configured and a second one to be added showing that it doesn’t update the mosaic index)

You can also share to me by private email in case you are not allowed to redistribute your data to “anyone”.

Please, let us know.

Regards,
Daniele

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

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

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.

On Wed, Oct 22, 2014 at 7:01 AM, Stephen Brooke <sbrooke@…3836…> wrote:

Anybody?

From: Stephen Brooke
Sent: Monday, October 20, 2014 9:44 AM
To: geoserver-users@lists.sourceforge.net
Subject: RE: Problem seeing newly added ImageMosaic granules

Does anyone know the answer to this? Still haven’t seen a response for this question yet and I find it hard to believe this hasn’t been an issue for someone else.

Thanks,

–Steve

From: Stephen Brooke
Sent: Thursday, October 16, 2014 4:40 PM
To: geoserver-users@lists.sourceforge.net
Subject: Problem seeing newly added ImageMosaic granules

Hi list,

I am using GeoServer 2.5.2 with PostGIS 2.1.3 I have an ImageMosaic of raster imagery with time series support where granule index is stored in PostGIS table. I am able to add new granules by adding a row to the DB table and via the GeoServer REST API. However, when I preview the layer I am unable to see the new granules until I restart GeoServer. What is the correct way to force an ImageMosaic coverage to allow the new granules to be available?

I am using the URL parameter: “?recalculate=nativebbox,latlonbbox” when adding granules but it doesn’t seem to update the layer extent.

–Steve


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho


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

On Wed, Oct 22, 2014 at 6:30 PM, Stephen Brooke <sbrooke@anonymised.com>
wrote:

Unfortunately, I am not at liberty to share the data I’m working with,
besides, it is too large to distribute easily. My problem is not that the
ImageMosaic granule index doesn’t get updated. My problem is that the
ImageMosaic doesn’t seem to automatically detect that the new granule has
been added to the index unless I restart GeoServer.

You should be able to reproduce this issue with any GeoTiffs that have
built-in overviews. I’m not really doing anything special. In other
words, the ImageMosaic doesn’t seem to recalculate what it thinks is the
extent of the granules. For my imagery note that the granules may not be
very near each other geographically.

So, to recap, your expectation would be that GeoServer updates the bbox of
the layer, the one advertised in GetCapabilities, and this does not happen?

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

-------------------------------------------------------

If updating the bbox of the layer allows WMS requests to see the newly harvested granules then my answer is yes, it doesn’t update the bbox advertised in GetCapabilities.

Should it work if I just specify the whole globe as the bbox, for example if the WMS GetCapabilities for my ImageMosaic layer has:

EPSG:4326

CRS:84

<EX_GeographicBoundingBox>

-180.0

180.0

-90.0

90.0

</EX_GeographicBoundingBox>

–Steve

···

On Wed, Oct 22, 2014 at 6:30 PM, Stephen Brooke <sbrooke@…3836…> wrote:

Unfortunately, I am not at liberty to share the data I’m working with, besides, it is too large to distribute easily. My problem is not that the ImageMosaic granule index doesn’t get updated. My problem is that the ImageMosaic doesn’t seem to automatically detect that the new granule has been added to the index unless I restart GeoServer.

You should be able to reproduce this issue with any GeoTiffs that have built-in overviews. I’m not really doing anything special. In other words, the ImageMosaic doesn’t seem to recalculate what it thinks is the extent of the granules. For my imagery note that the granules may not be very near each other geographically.

So, to recap, your expectation would be that GeoServer updates the bbox of the layer, the one advertised in GetCapabilities, and this does not happen?

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

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.


On Wed, Oct 22, 2014 at 8:15 PM, Stephen Brooke <sbrooke@anonymised.com>
wrote:

If updating the bbox of the layer allows WMS requests to see the newly
harvested granules then my answer is yes, it doesn’t update the bbox
advertised in GetCapabilities.

No, it's unrelated to WMS actually displaying the granule, if the client
makes are request covering the new granule, it should show.
But it can be a factor if you are using a client that won't allow you to
zoom out enough to see the new granule, or won't allow you to pan to the
area where the granule is (and most clients drive this by reading the caps
document).

Should it work if I just specify the whole globe as the bbox, for example
if the WMS GetCapabilities for my ImageMosaic layer has:

                                    <CRS>EPSG:4326</CRS>

                                    <CRS>CRS:84</CRS>

                                    <EX_GeographicBoundingBox>

<westBoundLongitude>-180.0</westBoundLongitude>

<eastBoundLongitude>180.0</eastBoundLongitude>

<southBoundLatitude>-90.0</southBoundLatitude>

<northBoundLatitude>90.0</northBoundLatitude>

                                    </EX_GeographicBoundingBox>

                                    <BoundingBox CRS="CRS:84"
minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>

                                    <BoundingBox CRS="EPSG:4326"
minx="-90.0" miny="-180.0" maxx="90.0" maxy="180.0"/>

You might want to try it, it would help understanding if the issue is in
the granule not being harvested, or because the bbox is not updated and the
client just won't show it out as a result

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
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.

-------------------------------------------------------

Just thought I’d share the solution that I discovered for my problem which in summary is that I don’t see newly added granules that I add to my ImageMosaic unless I restart GeoServer first. My solution simply involves using the very good “geoserver-manager” library v1.6.0 as follows.

GeoServerRESTPublisher publisher = new GeoServerRESTPublisher(RESTURL, RESTUSER, RESTPW);

//Reload the store

Assert.assertTrue(publisher.reloadStore(DEFAULT_WS, coverageStoreName, StoreType.COVERAGESTORES));

Thanks for all your help,

–Steve

···

On Wed, Oct 22, 2014 at 8:15 PM, Stephen Brooke <sbrooke@…3836…> wrote:

If updating the bbox of the layer allows WMS requests to see the newly harvested granules then my answer is yes, it doesn’t update the bbox advertised in GetCapabilities.

No, it’s unrelated to WMS actually displaying the granule, if the client makes are request covering the new granule, it should show.

But it can be a factor if you are using a client that won’t allow you to zoom out enough to see the new granule, or won’t allow you to pan to the area where the granule is (and most clients drive this by reading the caps document).

Should it work if I just specify the whole globe as the bbox, for example if the WMS GetCapabilities for my ImageMosaic layer has:

EPSG:4326

CRS:84

<EX_GeographicBoundingBox>

-180.0

180.0

-90.0

90.0

</EX_GeographicBoundingBox>

You might want to try it, it would help understanding if the issue is in the granule not being harvested, or because the bbox is not updated and the client just won’t show it out as a result

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

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.