Re: [gdal-dev] Re: Add GCP's to a file

2010-02-24 Thread Gaige B. Paulsen
You should be able to do that using the -a_srs option -Gaige On Feb 22, 2010, at 1:48 PM, Kim Besson wrote: > Thanks Mr Paulsen and Jukka > > Ok I tried the command and it seemed to work :) Thanks > > By the way, if my image has no Coordinates system and my GCPs corresponds to > a certain pr

Re: [gdal-dev] Re: Add GCP's to a file

2010-02-24 Thread Kim Besson
Thanks Mr Paulsen and Jukka Ok I tried the command and it seemed to work :) Thanks By the way, if my image has no Coordinates system and my GCPs corresponds to a certain projection/coordinate system, How I define now the coordinate system in which that data is? Thank you > > 2010/2/22 Gaige

Re: [gdal-dev] Re: Add GCP's to a file

2010-02-22 Thread Kim Besson
Thanks Mr Paulsen and Jukka Ok I tried the command and it seemed to work :) Thanks By the way, if my image has no Coordinates system and my GCPs corresponds to a certain projection/coordinate system, How I define now the coordinate system in which that data is? Thank you 2010/2/22 Gaige B. Pa

Re: [gdal-dev] Re: Add GCP's to a file

2010-02-22 Thread Gaige B. Paulsen
Pixel and line in the description below are actually two different numbers, one representing the pixel (x coordinate) and the line (y coordinate) of the point in the image. Hope this helps, -Gaige On Feb 22, 2010, at 12:31 PM, Kim Besson wrote: > >Hi, > >Gdal_translation has on option > > [-g

[gdal-dev] Re: Add GCP's to a file

2010-02-22 Thread Kim Besson
>Hi, >Gdal_translation has on option > [-gcp pixel line easting northing [elevation]]* >I know it works with tiffs but I have not tried it with HDF4. Some working >examples and considerations about this is hidden inside a document >http://www.scangis.org/scangis2007/papers/r3_rahkonen.pdf Thanks

Re: [gdal-dev] Re: Add GCP's to a file

2010-02-21 Thread Frank Warmerdam
Jukka Rahkonen wrote: Frank wrote: Also the extents reported by gdalinfo are the widest possible extents and if those are to be used only UL coordinated can be used as it. For other three corners there is a need to minus one pixel size in one or both axis directions. The lower right co

[gdal-dev] Re: Add GCP's to a file

2010-02-21 Thread Jukka Rahkonen
Frank wrote: >> Also the extents reported by gdalinfo are the widest possible extents and if >> those are to be used only UL coordinated can be used as it. For other three >> corners there is a need to minus one pixel size in one or both axis directions. > The lower right corner reported by

Re: [gdal-dev] Re: Add GCP's to a file

2010-02-20 Thread Frank Warmerdam
Jukka Rahkonen wrote: Dan Greve hotmail.com> writes: Question on the -gcp option in gdal_translate. If i want to use it to specify the geographic referencing of the four corners do i need to specify the center of the pixel, or the UL of the pixel. (e.g. -gcp 0 0 34 115 OR -gcp 0.5 0.5 34

[gdal-dev] Re: Add GCP's to a file

2010-02-20 Thread Jukka Rahkonen
Dan Greve hotmail.com> writes: > > > Question on the -gcp option in gdal_translate.  If i want to use it to > specify the geographic referencing of the four corners do i need to > specify the center of the pixel, or the UL of the pixel.  > (e.g. -gcp 0 0 34 115 OR -gcp 0.5 0.5 34 115 . Hi,

RE: [gdal-dev] Re: Add GCP's to a file

2010-02-19 Thread Dan Greve
Question on the -gcp option in gdal_translate. If i want to use it to specify the geographic referencing of the four corners do i need to specify the center of the pixel, or the UL of the pixel. (e.g. -gcp 0 0 34 115 OR -gcp 0.5 0.5 34 115 ) Dan Greve

Re: [gdal-dev] Re: Add GCP's to a file

2010-02-19 Thread Jan Hartmann
On 19-2-2010 11:46, Manuel Massing wrote: Hi, Gdal_translation has on option [-gcp pixel line easting northing [elevation]]* this should also work using the VRT output format, which has the advantage that the raster data doesn't need to be written to an intermediate file (VRT "wr

Re: [gdal-dev] Re: Add GCP's to a file

2010-02-19 Thread Manuel Massing
Hi, > Gdal_translation has on option > [-gcp pixel line easting northing [elevation]]* this should also work using the VRT output format, which has the advantage that the raster data doesn't need to be written to an intermediate file (VRT "wraps" the original data). E.g.: gdal_translate [-gcp

[gdal-dev] Re: Add GCP's to a file

2010-02-19 Thread Jukka Rahkonen
Kim Besson gmail.com> writes: > > > Greetings > > I have a file, in HDF4 format, and I need to add GCP's points in order to later warp that file. How can I add that information to a HDF? it can be a Geotiff if it's easier. Hi, Gdal_translation has on option [-gcp pixel line easting northing