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

2011-04-21 Thread spalt
That's a great resource, thx! I think what I'm missing in order to do the collar thing is a polygon from the FAA that goes around the actual map portion of the image. I've scoured the FAA site and its just not there. (They have a set of DVD's that contain this same map data that you need to pay

[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

[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

[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

[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