<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Hi Robert,</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">thanks for the reply.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Maybe I'm wrong, but tilecache and memcached both are server side modules, while I need something for the client side of my application (think about something like google maps mobile).</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">On the other side GDAL in-memory raster seems to me capable of managing pre-decoded raster buffers that in my case would occupy too much memory. </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">That's why I need something that is able to read a png (or jpeg) encoded buffer from memory as it was a file reading.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Marcello<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Robert Coup <robert.coup@onetrackmind.co.nz><BR>To: marcello ferrero <marcello_ferrero@yahoo.com><BR>Cc: gdal-dev@lists.osgeo.org<BR>Sent: Friday, January 25, 2008 11:14:06 PM<BR>Subject: Re: [gdal-dev] Map Caching with GDAL<BR><BR>On 26/01/2008, marcello ferrero <<A href="mailto:marcello_ferrero@yahoo.com" ymailto="mailto:marcello_ferrero@yahoo.com">marcello_ferrero@yahoo.com</A>> wrote:<BR>> in order to implement a map caching mechanism for my application I need to read tiles from a server (for example OpenStreetMap) and keep them in memory to speed up subsequent access to the same tiles once they have been already downloaded from the map server.<BR>> To implement this, I'm going to manage a single indexed (x,y,z) data file where I keep the dump of each .png (or .jpg) file.<BR><BR>TileCache running with
memcached could do exactly what you want, or<BR>just memcached on its own.<BR> <A href="http://www.tilecache.org/" target=_blank>http://www.tilecache.org/</A><BR> <A href="http://www.danga.com/memcached/" target=_blank>http://www.danga.com/memcached/</A><BR><BR>> Therefore I need to access the .png (or .jpg) tile not from a file (in that case I would simply use GDALOpen to open it), but from a memory buffer.<BR>><BR>> What are the GDAL functions to do what I need?<BR><BR>Have a look at the in-memory raster documentation:<BR><A href="http://gdal.org/frmt_mem.html" target=_blank>http://gdal.org/frmt_mem.html</A><BR><BR>Rob :)<BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR></DIV></div><br>
<hr size=1>Never miss a thing. <a href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs"> Make Yahoo your homepage.</a>
</body></html>