[gdal-dev] HDF5 information regarding Coordinate System and GCP

2010-02-17 Thread Pedro Roma
Greetings I'm a GRASS user and I'm dealing with some difficulties with HDF5 import/translate. I'm using gdal_translate to import HDF5 files to GRASS but I need to use GCP's information and coordinate system. My question is, using GDAL tools how can I import/use GCP and coordinate systems that are

Re: [gdal-dev] HDF5 information regarding Coordinate System and GCP

2010-02-17 Thread Chaitanya kumar CH
Pedro, You need to specify the individual subdataset of the hdf5 file to retrieve the metadata. This page, http://www.gdal.org/frmt_hdf5.html , shows a way to do it in gdalinfo. GRASS should be in similar lines. On Wed, Feb 17, 2010 at 4:25 PM, Pedro Roma wrote: > Greetings > > I'm a GRASS user

Re: [gdal-dev] HDF5 information regarding Coordinate System and GCP

2010-02-17 Thread Pedro Roma
Hi I have specified individual subdataset and I have run gdalinfo but it only writes in the terminal window it doesn't store in a specific file to be read. As it says in that link: This driver is intended only for importing remote sensing and geospatial datasets in form of raster image. There is n

Re: [gdal-dev] HDF5 information regarding Coordinate System and GCP

2010-02-17 Thread Markus Neteler
On Wed, Feb 17, 2010 at 1:00 PM, Pedro Roma wrote: > Hi > I have specified individual subdataset and I have run gdalinfo but it only > writes in the terminal window it doesn't store in a specific file to be > read. Here a script how things could be done (contains some MODIS specialities): http://

Re: [gdal-dev] HDF5 information regarding Coordinate System and GCP

2010-02-17 Thread Even Rouault
Petro, yes it is not surprising there's nothing specific in the doc of the HDF5 driver about what to do with GCPs as quite a few other drivers can also return GCPs. You're probably interested by a generic tool such as gdalwarp to rectify the image from the GCPs : see http://gdal.org/gdalwarp.ht

[gdal-dev] need help with geo-referencing

2010-02-17 Thread Wendell Turner
I'm trying to geo-reference a .tif image, but the corner coordinates don't change. I used gimp to get the pixel and lat/lng of 4 points on the image. I converted the lat/lng to the desired coordinates, then used this command: gdal_translate \ -a_srs epsg:3395 \ -gcp 1954 1085 -8682920.28

[gdal-dev] installing GDAL for pythonwin: can import and use gdal, but not gdal_translate

2010-02-17 Thread anotherObject
Hello, i am new to using GDAL, from what I've looked into it seems great. I am using pythonwin to interact with GDAL. For installation, I followed the instructions here: http://www.gis.usu.edu/~chrisg/python/2009/install.html (installing GDAL manually). All my windows system variables are identi

Re: [gdal-dev] installing GDAL for pythonwin: can import and use gdal, but not gdal_translate

2010-02-17 Thread Chaitanya kumar CH
ytrapaet, gdal_translate is an executable program. You can use it directly from the command line. Refer to http://www.gdal.org/gdal_utilities.html for python scripts and other programs. Python scripts are indicated by .py extension. On Thu, Feb 18, 2010 at 10:29 AM, anotherObject wrote: > > Hell

[gdal-dev] Re: installing GDAL for pythonwin: can import and use gdal, but not gdal_translate

2010-02-17 Thread anotherObject
hi Chaitanya, Thanks for the response. Perhaps i am just not understanding or remembering terms, but is the pythonwin interactive window not the command line? that is where i am trying to access gdal_translate (i guess run the exe would be more corrent), yet it completely does not recognize the

Re: [gdal-dev] Re: installing GDAL for pythonwin: can import and use gdal, but not gdal_translate

2010-02-17 Thread Chaitanya kumar CH
ytrapaet, pythonwin is for python's commands. gdal_translate.exe is a seperate executable file. You need to run it from the system's command line (Start -> Run -> cmd). If your environment variables are set as described in the document you should be able to run it from your command prompt. On Thu

Re: [gdal-dev] need help with geo-referencing

2010-02-17 Thread Jean-Claude REPETTO
Wendell Turner a écrit : I'm trying to geo-reference a .tif image, but the corner coordinates don't change. What do I need to do to get the output file to have the correct coordinate system? Hello Wendell, You have to use gdalwarp : gdalwarp -r lanczos bw_ref.tif bw.tif Alternatively, you

[gdal-dev] Re: installing GDAL for pythonwin: can import and use gdal, but not gdal_translate

2010-02-17 Thread anotherObject
Chaitanya - thank you! i am not used to much GIS programming outside of the pythonwin context. Im glad its not a setup problem. I'm not sure i need to make some more changes to my environment that are not mentioned in that pdf article describing the setup GDAL; every time i try any sort of comman

[gdal-dev] multithreading with GDAL

2010-02-17 Thread Eran Geva
hello, our system reads a large amount of images and used LIBTIFF directly. to quicken things up we implemented prefetching of whole images which resided on a different OS-thread. we moved to GDAL for better format support and now the prefetching mechanism isn't helpful anymore. actually now it is