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

From: [email protected] [mailto:[email protected]] On Behalf Of Andrea 
Aime
Sent: Wednesday, October 22, 2014 12:31 PM
To: Stephen Brooke
Cc: Daniele Romagnoli; [email protected]
Subject: Re: [Geoserver-users] Problem seeing newly added ImageMosaic granules

On Wed, Oct 22, 2014 at 8:15 PM, Stephen Brooke 
<[email protected]<mailto:[email protected]>> 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.

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to