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

2011-04-22 Thread Chaitanya kumar CH
Dan,

Can you tell what your error message was?

On Thu, Apr 21, 2011 at 1:41 AM, spalt d...@nac.net wrote:

 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.05W, 39d49'53.24N)
 Lower Left  ( -143411.876,  -93607.521) ( 78d41'40.46W, 38d 7'55.46N)
 Upper Right (  111698.876,   94058.326) ( 75d44'16.70W, 39d50'10.29N)
 Lower Right (  111698.876,  -93607.521) ( 75d46'8.55W, 38d 8'12.11N)
 Center  (  -15856.500, 225.403) ( 77d14'2.52W, 38d59'36.84N)

 I would like to crop the file as follows:
 West_Bounding_Coordinate: -78.734457
 East_Bounding_Coordinate: -75.737971
 North_Bounding_Coordinate: 39.843493
 South_Bounding_Coordinate: 38.132073

 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 am I missing?  Thanks!!

 -Dan

 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/cropping-a-tif-with-lat-lon-tp6292065p6292065.html
 Sent from the GDAL - Dev mailing list archive at Nabble.com.
 ___
 gdal-dev mailing list
 gdal-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/gdal-dev




-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[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.05W, 39d49'53.24N)
Lower Left  ( -143411.876,  -93607.521) ( 78d41'40.46W, 38d 7'55.46N)
Upper Right (  111698.876,   94058.326) ( 75d44'16.70W, 39d50'10.29N)
Lower Right (  111698.876,  -93607.521) ( 75d46'8.55W, 38d 8'12.11N)
Center  (  -15856.500, 225.403) ( 77d14'2.52W, 38d59'36.84N)

I would like to crop the file as follows:
West_Bounding_Coordinate: -78.734457
East_Bounding_Coordinate: -75.737971
North_Bounding_Coordinate: 39.843493
South_Bounding_Coordinate: 38.132073

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 am I missing?  Thanks!!

-Dan

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/cropping-a-tif-with-lat-lon-tp6292065p6292065.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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 projected coordinates.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev