Re: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
Hi Bill, thank you. That information helps a lot. Sorry, as i said, i am pretty new with this stuff. But it makes sense now. thanks matt On 1/20/2011 3:24 PM, Cassanova, Bill wrote: > Hi Matt, > > Can you be a little more explicit about what you are asking? Generally > speaking GRIB2 files d

RE: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Cassanova, Bill
Hi Matt, Can you be a little more explicit about what you are asking? Generally speaking GRIB2 files do not contain explicit lat-lon information. GRIB2's contain a projection and within that projection the bounding box including the number of points along each axis is contained. As an experime

Re: [gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
One more comment, when i use the wgrib2 with the -spread flag i get lat/lon/elevation. When i use the -text flag instead i only get the elevation (which is the same data i get through python/gdal). One thing that did occur to me is that it is possible that the wgrib2 utility computes the lat/lon

[gdal-dev] question about reading grib2 file

2011-01-20 Thread Matt Funk
Hi, i am somewhat new to gdal and the grib format. I need to read in a grib2 file which contains latitude longitude and elevation. So i do: ds = gdal.Open(filename) and print "ds.GetRasterCount(): %s" % ds.GetRasterCount() gives: 1 I can proceed to read in this band, but all the data that i get i

Re: [gdal-dev] set dbf header date to current date on modification

2011-01-20 Thread Dave Fuhry
Sure, I created ticket 3919. http://trac.osgeo.org/gdal/ticket/3919 Thanks, Dave On Wed, Jan 19, 2011 at 2:16 PM, Chaitanya kumar CH wrote: > Dave, > > Can you file an enhancement ticket and attach the patch to it? > (http://trac.osgeo.org/gdal/newticket) > > On Wed, Jan 19, 2011 at 11:12 PM,

Re: [gdal-dev] How to create TIFF with overview from a TMS server ?

2011-01-20 Thread Jean-Claude Repetto
Le 20/01/2011 15:38, Adam Nowacki a écrit : Easiest would be to just gdal_translate -co COPY_SRC_OVERVIEWS=YES from properly setup gdalwms source, see http://gdal.org/frmt_wms.html . Local files can be accessed by using "file:///..." in in ServerURL. Yes, that should work. I didn't think about

Re: [gdal-dev] How to create TIFF with overview from a TMSserver ?

2011-01-20 Thread Ralf Suhr
Hi Jean-Claude, now I'am sure we are talking about different things. A pyramid is the same raster in smaller resolution. You want a new raster tile from same tms server. http://www.gdal.org/frmt_wms.html can be used as source. If the raster covers not the details of information you want, you ca

Re: [gdal-dev] How to create TIFF with overview from a TMSserver ?

2011-01-20 Thread Ralf Suhr
Hi Jean-Claude, I assume the directory named level17 is containing the downloaded tiles processed with gdaladdo -r average tile_xy.tif 2 4 8 16. Gr Ralf On Thursday 20 January 2011 15:36:27 Jean-Claude Repetto wrote: > Le 20/01/2011 15:01, Ralf Suhr a écrit : > > Hi Jean-Claude, > > > > you ca

Re: [gdal-dev] How to create TIFF with overview from a TMS server ?

2011-01-20 Thread Adam Nowacki
Easiest would be to just gdal_translate -co COPY_SRC_OVERVIEWS=YES from properly setup gdalwms source, see http://gdal.org/frmt_wms.html . Local files can be accessed by using "file:///..." in in ServerURL. On 2011-01-19 22:14, Jean-Claude Repetto wrote: Hello, I am looking for a method to cr

Re: [gdal-dev] How to create TIFF with overview from a TMSserver ?

2011-01-20 Thread Jean-Claude Repetto
Le 20/01/2011 15:01, Ralf Suhr a écrit : Hi Jean-Claude, you can use "gdalbuildvrt level16.vrt level17/*.tif". Pyramids from level 17 are accessed transparently without building a new file. Hi Ralf, Thanks for your answer, but I can't see the input file of level 16 in your command. Did you

Re: [gdal-dev] How to create TIFF with overview from a TMSserver ?

2011-01-20 Thread Ralf Suhr
Hi Jean-Claude, you can use "gdalbuildvrt level16.vrt level17/*.tif". Pyramids from level 17 are accessed transparently without building a new file. Gr Ralf On Thursday 20 January 2011 14:48:23 Jean-Claude Repetto wrote: > Le 20/01/2011 14:33, c.str...@dlr.de a écrit : > > so you can use gdal_m

Re: AW: AW: [gdal-dev] How to create TIFF with overview from a TMS server ?

2011-01-20 Thread Jean-Claude Repetto
Le 20/01/2011 14:48, Jean-Claude Repetto a écrit : I know that I can assemble the 4 tiles with gdalwarp or gdal_merge. But how do I assemble the resulting 1024x1024 image (level 17) with the 256x256 image (level 16) to form a pyramid ? Sorry ; please read 512x512 instead of 1024x1024.

Re: AW: AW: [gdal-dev] How to create TIFF with overview from a TMS server ?

2011-01-20 Thread Jean-Claude Repetto
Le 20/01/2011 14:33, c.str...@dlr.de a écrit : so you can use gdal_merge or gdalwarp. i thought your problem was the pyramid building I know that I can assemble the 4 tiles with gdalwarp or gdal_merge. But how do I assemble the resulting 1024x1024 image (level 17) with the 256x256 image (lev

Re: AW: [gdal-dev] How to create TIFF with overview from a TMS server ?

2011-01-20 Thread Jean-Claude Repetto
Le 20/01/2011 13:57, c.str...@dlr.de a écrit : maybe it is easier to try something like this after gdal_translate gdaladdo -r average my_iamge.tif 2 4 8 16 Hi Christian, Thanks for your answer. Unfortunately, it is not what I want, not at all. For example, if the base map is composed of th