Hi Gordon.

That was my first idea too, but looking at the coverage.xml in the layer folder 
under the workspaces folder, there is a <grid></grid> entry with information 
regarding the extent in pixels of the store/layer. 

Further more there is the .qix and the .fix file for the tile index file for 
each level, should they be updated somehow too or maybe deleted?
And are there more information stored somewhere that I need to update somehow? 

Since the .properties files are plain text, I can recreate them - they 
shouldn't be a problem.

Regards Casper


-----Original Message-----
From: Gordon Keith [mailto:gordon.ke...@csiro.au] 
Sent: 6. juli 2012 00:42
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] How to update existing Imagepyramid

On Thu, 5 Jul 2012 10:21:54 PM Casper Børgesen wrote:
> I have an existing ImagePyramid in GeoServer 2.1.4 (but I can use 2.2 
> if that helps).
> 
> If it is possible, how can I update the pyramid (add new tiles) 
> without deleting and re-creating the ImagePyramid store each time?

I do it by running gdaltindex to add the new tiles to the existing shape file 
in the level directory of the image pyramid.

I'm not sure what is required to load the new shape file into memory. I often 
restart geoserver - I know that works, but there may be less drastic methods if 
restarting is not an option for you (I'd be interested in hearing what does 
work if anyone knows).

For example the following extract from my update bash script ensures all tiff 
files are indexed in the shape files for the pyramid (this does generate plenty 
of warnings that some files are already in the index):

   for f in */. ; do                                                            
                                                                                
                                                                                
       
        (                                                                       
                                                                                
                                                                                
    
        cd $f                                                                   
                                                                                
                                                                                
    
        find . -name "*.tif" -exec gdaltindex -tileindex location $name.shp 
'{}' '+'                                                                        
                                                                                
            
        )
done


Regards
Gordon

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to