Re: [gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread Brian Case
Dan use nearblack to add a alpha or mask band, and collar the image Brian On Wed, 2011-04-20 at 19:15 -0700, spalt wrote: > Hi Brian- > Thanks so much for your help. That works, though I feel a little silly now > because I am realizing the lat/lon the FAA provides with these is the > corners o

[gdal-dev] Utils module problem

2011-04-20 Thread Tian, Jie
Hello everyone, I'm very new to OSGeo. I just had a question. Why do I get error of "no module named utils" when I include a line of "import utils". I'm using OGGeo4w. Thank you for your help. Jay ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http:

[gdal-dev] Utils problem

2011-04-20 Thread Tian, Jie
Hello everyone, I'm very new to OSGeo. I just had a question. Why do I get error of "no module named utils" when I include a line of "import utils". I'm using OGGeo4w. Thank you for your help. Jay ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http:

[gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread spalt
Hi Brian- Thanks so much for your help. That works, though I feel a little silly now because I am realizing the lat/lon the FAA provides with these is the corners of the entire map image, not the map itself (these maps have a lot of white borders around them, which is what I am trying to crop). I

Re: [gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread Brian Wilson
I am a newby too so I will share what I have learned lately. You can convert from one srs to the other using the cs2cs tool from proj.4 which is probably already installed if you have gdal. To test it I typed this lengthy command all cs2cs +proj=lcc +lat_1=44.34 +lat_2=46 +lat_0=43.66

[gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread spalt
Thanks Jean-Claude, that works -- in QGIS i can see the border I want to crop is -110270 89629 110288 -88560 -- but I guess what I am asking is if there is any way to do this programmatically.. i.e. automatically turn the lat/lon coordinates into these values. -Dan -- View this message in context

Re: [gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread Jean-Claude Repetto
On 04/20/11 22:39, spalt wrote: I am not sure I understand how to project the lat/lon. That won't be necessary. Open your file with QGIS (or similar desktop application), and it will display the projected coordinates. ___ gdal-dev mailing list gdal-

[gdal-dev] Re: cropping a tif with lat/lon

2011-04-20 Thread spalt
Sorry, error is Input file size is 8000, 5885 Computed -srcwin 4494 2948 0 0 from projected window. -srcwin 4494 2948 0 0 falls outside raster size of 8000x5885 or is otherwise illegal. I am not sure I understand how to project the lat/lon. -Dan -- View this message in context: http://osgeo-o

Re: [gdal-dev] cropping a tif with lat/lon

2011-04-20 Thread Jean-Claude Repetto
On 04/20/11 22:11, spalt wrote: I guess the problem is I need to convert the -78.734457 into paramaters for gdal_translate, but when I run this it gives an error: gdal_translate -projwin -78.734457 39.843493 -75.737971 38.132073 in.tif out.tif What error ? BTW, you are right, you must use the

[gdal-dev] cropping a tif with lat/lon

2011-04-20 Thread spalt
Hi there! Please forgive this terribly newbie question. Been searching all day and I just don't get it. I have a geotiff VFR image from the FAA with the following coordinates as reported by gdalinfo: Upper Left ( -143411.876, 94058.326) ( 78d44'4.05"W, 39d49'53.24"N) Lower Left ( -143411.87

Re: [gdal-dev] Re: How detect the BlockSize to make tiles of my dataset to open it?

2011-04-20 Thread Frank Warmerdam
On 11-04-20 02:43 PM, gistdt08 wrote: Many thanks Frank, Could be useful it for avoid OutMemoryException? Francisco, Reading the image one scanline at a time can be accomplished in a modest amount of memory. Attempting to read the whole image at once would take ... lots of memory. So, yes I

[gdal-dev] Re: How detect the BlockSize to make tiles of my dataset to open it?

2011-04-20 Thread gistdt08
Many thanks Frank, Could be useful it for avoid OutMemoryException? Regards. Francisco J. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/gdal-dev-How-detect-the-BlockSize-to-make-tiles-of-my-dataset-to-open-it-tp6291160p6291815.html Sent from the GDAL - Dev mailing lis

Re: [gdal-dev] How detect the BlockSize to make tiles of my dataset to open it?

2011-04-20 Thread Frank Warmerdam
On 11-04-20 11:32 AM, Francisco José Reyes Peralta wrote: Dear friends, Using gdalinfo and my dataset i obtain the following data: *Size: 35000, 2* *Pixel Size: 0.5, -0.5* *Band 1 Block = 35000x1 Type=Byte, ColorInterp=Red* *Overviews: 17500x1, 8750x5000, 4375x2500, 2187x1250, 1093x6

Re: [gdal-dev] Re: dev-version of HDF4

2011-04-20 Thread Nikolaos Hatzopoulos
this might help to fix you configure: sed -i 's|-lmfhdf -ldf|-L$libdir/hdf -lmfhdf -ldf|g' configure On Wed, Apr 20, 2011 at 8:27 AM, Knut-Frode wrote: > The paths are taken care of by configure, and they are checked to be ok. I > also tried with standard installation folders (/usr/lib/ /usr/i

[gdal-dev] How detect the BlockSize to make tiles of my dataset to open it?

2011-04-20 Thread Francisco José Reyes Peralta
Dear friends, Using gdalinfo and my dataset i obtain the following data: Size: 35000, 2 Pixel Size: 0.5, -0.5 Band 1 Block = 35000x1 Type=Byte, ColorInterp=Red Overviews: 17500x1, 8750x5000, 4375x2500, 2187x1250, 1093x625, 546x312, 273x156 Band 2 Block = 35000x1 Type=Byte, ColorInterp=

[gdal-dev] Re: dev-version of HDF4

2011-04-20 Thread Knut-Frode
The paths are taken care of by configure, and they are checked to be ok. I also tried with standard installation folders (/usr/lib/ /usr/include/ etc) but no difference. I did not compile, since configure fails. So I believe it must be some incompatibility with the GDAL configure script and the

Re: [gdal-dev] Re: dev-version of HDF4

2011-04-20 Thread Nikolaos Hatzopoulos
when does the gcc you must have: -L/Users/knutfd/Software/hdf-4.2.5/lib in order to find the lib so you need to do before the compile: export LDFLAGS="$LDFLAGS -L/Users/knutfd/Software/hdf-4.2.5/lib" and obviously you are going to need the include files also: export CPPFLAGS="$CPPFLAGS -I/Use

[gdal-dev] Re: dev-version of HDF4

2011-04-20 Thread Knut-Frode Dagestad
I forgot to say, but I have also tried by specifying the location of HDF4, with similar error: ... checking for SDreaddata in -lmfhdfalt... no checking for SDreaddata in -lmfhdf... no checking for SDreaddata in -lhdf4... no checking for SDreaddata in -lmfhdf... no checking for SDreaddata in -lmf

[gdal-dev] Re: RasterizeLayer using attribute

2011-04-20 Thread Chaitanya kumar CH
Jonathan, I didn't quite get what your problem is. Do you get all the pixels set to 255? Also, you should probably check if you really want to burn the id value into the raster. On Wed, Apr 20, 2011 at 4:58 PM, wrote: > Hi, > > I read your thread on using gdal.RasterizeLayer() in Python to ras

[gdal-dev] Re: Fwd: geos for windows ce

2011-04-20 Thread Mateusz Loskot
(cross-posted to gdal-dev and geos-devel) On 20/04/11 08:13, Micka wrote: -- Forwarded message -- From: *Micka* mailto:mickamus...@gmail.com>> Date: Tue, Apr 19, 2011 at 12:31 PM Subject: geos for windows ce To: gdal-dev@lists.osgeo.org Hello e

Re: [gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files

2011-04-20 Thread Chaitanya kumar CH
Francisco, I can't tell why you got the "Parameter is invalid" error. Perhaps you should try some VB.net forums. 2011/4/20 Francisco José Reyes Peralta > The value of pixelFormat is *Format24bppRGB* > > **Here is the code that I use, but I cannot load into a Bitmap. Maybe I > don't undesrtand

[gdal-dev] Problem with GDALDatasetRasterIO.cs and ECW files

2011-04-20 Thread Francisco José Reyes Peralta
Using the following code I only can read aproximately 500 x 500 pixels. Dim ecwDS As Dataset = Gdal.Open("C:\h10_1024_1-2.ecw", Access.GA_ReadOnly)Dim banda As Band = ecwDS.GetRasterBand(1) Dim bmp As Bitmap = New Bitmap(ecwDS.RasterXSize, ecwDS.RasterYSize, PixelFormat.F