[gdal-dev] Reproject raster dataset on the fly

2019-02-07 Thread Surajit Chowbey
Hello, I need help in re-projecting a raster dataset on the fly. It must use very less time, like QGIS. I'm using gdal's latest version. I'm doing it in Java environment. Please guide me how I can achieve that. Regards, www.amnex.com

Re: [gdal-dev] Reproject raster map in buffer on-the-fly

2014-06-26 Thread Even Rouault
Le lundi 23 juin 2014 11:49:58, Oliver Eichler a écrit : > Hi > > I would like to read a region of a raster map and re-project the resulting > image on-the-fly before it is displayed. I had a look at the GDAL Warp API > tutorial. And I stumbled across GDALWarpRegionToBuffer() while reading the > h

[gdal-dev] Reproject raster map in buffer on-the-fly

2014-06-23 Thread Oliver Eichler
Hi I would like to read a region of a raster map and re-project the resulting image on-the-fly before it is displayed. I had a look at the GDAL Warp API tutorial. And I stumbled across GDALWarpRegionToBuffer() while reading the header files. I had a look into the setup functions and found quit

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-14 Thread David Hoese
Hi Rutger (long email below), I figured out my projection problems. To increase google search accuracy I'm going to try to include as many relevant terms as I searched for to describe what happened. I was attempting to project VIIRS binary image data that I had extracted from the SDR hdf fi

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-14 Thread Etienne Tourigny
herwise I'll >> just have to keep playing around and asking people around my work. >> Thanks a lot for the help so far. >> >> -Dave >> > > Since it worked for my case, i think its likely that the problems you are > having are related to the projection and a

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-14 Thread Rutger
Sorry, forgot to attach the image. http://osgeo-org.1560.n6.nabble.com/file/n4981320/gdalwarp_and_pyresample.png -- View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-dev-reproject-python-numpy-binary-swath-lat-lon-tp4978609p4981320.html Sent from the GDAL - Dev mailing

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-14 Thread Rutger
le with the correct projection and boundingbox, and just read the metadata with: gdalinfo -proj4 samplefile.tif Optionally add some of the -norat -noct etc flags to hide the large tables. The proj4 string can be directly used by other gdal tools. Regards, R

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-13 Thread David Hoese
On 6/13/12 10:00 AM, gdal-dev-requ...@lists.osgeo.org wrote David Hoese wrote > > I'm attempting to project satellite data to an AWIPS grid. Assuming I > have the grid defined correctly with proj4 parameters, I've been using > "+proj=latlong +datum=wgs84" as my s_srs parameters. Does that

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-13 Thread Rutger
rge area (geographically), it might be useful to test it for a small subset first to rule out difficulties in finding a proper transformation, although im not sure if it could help in this case. Regards, Rutger -- View this message in context: http://osgeo-org.

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Joaquim Luis
Thanks for the help. -Dave On 6/12/12 7:04 AM, gdal-dev-requ...@lists.osgeo.org wrote: Message: 2 Date: Tue, 12 Jun 2012 02:08:21 -0700 (PDT) From: Rutger To:gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] reproject python numpy binary swath/lat/lon Message-ID:<1339492101512-4980686.p...@n

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread David Hoese
Thanks for the help. -Dave On 6/12/12 7:04 AM, gdal-dev-requ...@lists.osgeo.org wrote: Message: 2 Date: Tue, 12 Jun 2012 02:08:21 -0700 (PDT) From: Rutger To:gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] reproject python numpy binary swath/lat/lon Message-ID:<1339492101512-4980686.p...@n

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Rutger
560.n6.nabble.com/gdal-dev-reproject-python-numpy-binary-swath-lat-lon-tp4978609p4980774.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] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Etienne Tourigny
e good quality > results. > > I ended up using the Pyresample module which is part from the Pytroll > project. See: > http://pytroll.org/index.html http://pytroll.org/index.html > This worked great for my case. > > > Regards, > Rutger > > > -- > View this m

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-12 Thread Rutger
View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-dev-reproject-python-numpy-binary-swath-lat-lon-tp4978609p4980686.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org ht

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-04 Thread David Hoese
On 6/1/12 1:44 PM, Jose Gomez-Dans wrote: Hi David, On 1 June 2012 18:47, David Hoese > wrote: I have 3 binary files, the image/swath 2D data and the corresponding 2D latitude and longitude pixel data from a previous processing step. The binary files were

[gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-01 Thread David Hoese
I have 3 binary files, the image/swath 2D data and the corresponding 2D latitude and longitude pixel data from a previous processing step. The binary files were all created using numpy's tofile(). I would like to take the binary data (as filenames or loaded into numpy arrays) and remap it to

Re: [gdal-dev] Reproject Landsat USGS image

2011-03-29 Thread Frank Warmerdam
On 11-03-28 05:10 AM, Luisa Peña wrote: Hello I got a reply to my message stating that " GDAL ignores a flag in the GEOTIF specification that says whether the coordinates are for the center or the lower-left of each pixel. " Is this true? It's exacly what I am obtaining and what Markus Neteler

Re: [gdal-dev] Reproject Landsat USGS image

2011-03-28 Thread Luisa Peña
Hello I got a reply to my message stating that " GDAL ignores a flag in the GEOTIF specification that says whether the coordinates are for the center or the lower-left of each pixel. " Is this true? It's exacly what I am obtaining and what Markus Neteler explained me (about the useage of NN metho

Re: [gdal-dev] Reproject Landsat USGS image

2011-03-25 Thread Luisa Peña
Back again on this I have talked with Markus Neteler and he told me that if I use gdalwarp with NN method, I will get a pixel shift and he suggested me to use bilinear method. The problem with bilinear is that my pixel values are changed (based on bilinear method) So is there any method to keep t

Re: [gdal-dev] Reproject Landsat USGS image

2011-03-23 Thread Luisa Peña
For now GDAL15 (the one that comes with winGRASS GIS) and GDAL16 binary. Why? (I have sent this to the wrong mailing list) > Why? > > > > 2011/3/22 Kyle Shannon > >> What version of gdal are you using? >> >> # >> Kyle Shannon >> Physical Science Technician >> RMRS Fi

Re: [gdal-dev] Reproject Landsat USGS image

2011-03-22 Thread Kyle Shannon
What version of gdal are you using? # Kyle Shannon Physical Science Technician RMRS Fire Sciences Lab Fire, Fuels & Smoke - RWU 4405 5775 Highway 10 W. Missoula, MT 59808 (406)829-6954 kshan...@fs.fed.us # On Tue, Mar 22, 2011 at 15:36, L

[gdal-dev] Reproject Landsat USGS image

2011-03-22 Thread Luisa Peña
Greetings I have sent an message a couple of days ago ( http://lists.osgeo.org/pipermail/gdal-dev/2011-March/028124.html) about this I used gdalwarp with this formulation gdalpwarp -t_srs -tr 30 30 input.tif output.tif Well it works fine but It seems to be with a deviation of half pixel on Latitu

[gdal-dev] Reproject USGS Landsat image

2011-03-17 Thread Luisa Peña
Hi, I'm planning to reproject a Landsat image using gdalwarp but I have a question: - Besiodes the 7 bands, I also have an AUX file (for each band), an RRD for each file and a GCP. Is it possibvle to use gdalwarp to read this GCP file or is it useless since all the required information is already

Re: [gdal-dev] Reproject Globcover

2011-03-16 Thread Brian Claywell
On Wed, Mar 16, 2011 at 5:12 PM, Monica Buescu wrote: > I pretend to reproject a known JRC product called GLOBCOVER to UTM WGS84 > (zone for France) using gdalwarp keeping spatial resolution (300m) and > null_values. Can anyone give me a suggestion on how to reproject it using > gdal? Try: gdalw

[gdal-dev] Reproject Globcover

2011-03-16 Thread Monica Buescu
Greetings I pretend to reproject a known JRC product called GLOBCOVER to UTM WGS84 (zone for France) using gdalwarp keeping spatial resolution (300m) and null_values. Can anyone give me a suggestion on how to reproject it using gdal? Bellow is the gdalinfo information Driver: GTiff/GeoTIFF Files:

Re: [gdal-dev] reproject

2011-01-29 Thread Frank Warmerdam
On 11-01-29 04:55 AM, Mohammed Rashad wrote: is there any function in ogr to export the projection string to proj4. there is a function called importFromProj4 but nothing like export from proj4. i have the wkt of projection read from .prj file I need to convert it to proj4 string. Rashad, Th

Re: [gdal-dev] reproject

2011-01-29 Thread Mohammed Rashad
is there any function in ogr to export the projection string to proj4. there is a function called importFromProj4 but nothing like export from proj4. i have the wkt of projection read from .prj file I need to convert it to proj4 string. On Sat, Jan 29, 2011 at 10:58 AM, Mohammed Rashad < mohammed

[gdal-dev] reproject

2011-01-28 Thread Mohammed Rashad
How to reproject a shapefile to geographic coordinates by code? using OGR -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] reproject points using raster info

2009-01-12 Thread Frank Warmerdam
Yann Chemin wrote: Hello, (C API) The aim is to get a (lat,long) pair into (projX,projY) pair from hDataset1 projection info. Lat/long projection was defined with: char*pszProj4 = "+proj=ll +ellps=wgs84 +datum=wgs84"; Yann, For a geographic (long/lat) coordinate system you should be us

[gdal-dev] reproject points using raster info

2009-01-09 Thread Yann Chemin
Hello, (C API) The aim is to get a (lat,long) pair into (projX,projY) pair from hDataset1 projection info. Lat/long projection was defined with: char*pszProj4 = "+proj=ll +ellps=wgs84 +datum=wgs84"; OGRSpatialReferenceH hSRS; OSRImportFromProj4(hSRS, pszProj4); printf( "%s\n", pszProj4 );

Re: [gdal-dev] reproject an array of points

2008-08-17 Thread Mateusz Loskot
Maciej Sieczka wrote: > > How do I reproject an array of points in one run, in Python? Each point > consist of 'easting, northing, value'. 'value' is supposed to remain > unchanged after transformation. (Please bear with me - I'm still > learning Python). Maciej, It should be simple to use Projec

[gdal-dev] reproject an array of points

2008-08-17 Thread Maciej Sieczka
Hi How do I reproject an array of points in one run, in Python? Each point consist of 'easting, northing, value'. 'value' is supposed to remain unchanged after transformation. (Please bear with me - I'm still learning Python). Maciek -- Maciej Sieczka www.sieczka.org ___