Re: [gdal-dev] Re: Datum Shifts with OSR.CoordinateTransform

2011-05-10 Thread Frank Warmerdam
On 11-05-10 07:47 PM, srweal wrote: Armin, Thanks for the reply. That seems like a logical approach, but can you or any of the GDAL developers tell me whether these +TOWGS84 parameters are applied/supported or not. Steve, 3/7 parameter datum shifts may be specified on the source and destinati

Re: [gdal-dev] Setting "INIT_DEST" to nan on windows

2011-05-10 Thread Kyle Shannon
Thanks Even, I appreciate it. kss /** * * Kyle Shannon * ksshan...@gmail.com * */ On Tue, May 10, 2011 at 15:41, Even Rouault wrote: > Le mardi 10 mai 2011 17:39:52, Kyle Shannon a écrit : > > Even, here is the basic flow of my task. I am opening several > subdatasets > > in a for loop

[gdal-dev] Re: Datum Shifts with OSR.CoordinateTransform

2011-05-10 Thread srweal
Armin, Thanks for the reply. That seems like a logical approach, but can you or any of the GDAL developers tell me whether these +TOWGS84 parameters are applied/supported or not. Also, I have seen some references to using a +NADGRID option for specifying a transformation grid (rather than just

[gdal-dev] Re: Reprojecting w/ gdalwarp .. cant figure it out

2011-05-10 Thread fork
Frank Warmerdam pobox.com> writes: > Try: > gdalwarp -s_srs utm10n.prj -t_srs ESRI::spwasth.prj \ >-co "TFW=YES" ortho_imagery/ortho_1-1_1n_s_wa033_2009_1.tif foo.tif > > The ESRI:: prefix before the filename tells GDAL/OGR to convert from > ESRI format into "normal" WKT. So, as I said in m

Re: [gdal-dev] Setting "INIT_DEST" to nan on windows

2011-05-10 Thread Even Rouault
Le mardi 10 mai 2011 17:39:52, Kyle Shannon a écrit : > Even, here is the basic flow of my task. I am opening several subdatasets > in a for loop, warping them and populating an internal data structure. > > #include "gdal_priv.h" > #include "gdalwarper.h" > #include "cpl_conv.h" > #include "cpl_p

[gdal-dev] Re: Reprojecting w/ gdalwarp .. cant figure it out

2011-05-10 Thread fork
Frank Warmerdam pobox.com> writes: > Fork, > > The problem is that you have used an ESRI style file directly under the > mistaken impression that it is compatible with GDAL/OGR. ESRI uses a > variation of the the WKT coordinate system format. > > Try: > gdalwarp -s_srs utm10n.prj -t_srs ESRI::

Re: [gdal-dev] Re: Reprojecting w/ gdalwarp .. cant figure it out

2011-05-10 Thread Frank Warmerdam
On 11-05-10 03:32 PM, fork wrote: Frank Warmerdam pobox.com> writes: Dear ForkAndWait, I suspect you have a left over foo.tif and/or foo.tfw from previous attempts. gdalwarp will not create a new output file if the output file already exists. Otherwise your procedure seems quite reasonable

[gdal-dev] Re: Reprojecting w/ gdalwarp .. cant figure it out

2011-05-10 Thread fork
Frank Warmerdam pobox.com> writes: > Dear ForkAndWait, > > I suspect you have a left over foo.tif and/or foo.tfw from previous > attempts. gdalwarp will not create a new output file if the output > file already exists. Otherwise your procedure seems quite reasonable. Well, I reran, and I am (

Re: [gdal-dev] Segmentation fault with debian install of gdal on MODIS hdf4 files

2011-05-10 Thread Jonathan Greenberg
Thanks, but I was hoping someone had seen this with the latest Debian release. Follow-up question, if I were to uninstall gdal + all the affiliated libraries/dependencies, what do I need to make sure I remove? I'm noticing, at least, that the segfault is not occurring on another debian box we hav

Re: [gdal-dev] Reprojecting w/ gdalwarp .. cant figure it out

2011-05-10 Thread Frank Warmerdam
On 11-05-10 02:59 PM, fork wrote: Hi good people. FMIA -- "forgive me in advance" for the following newbie question I am unable to figure how to reproject a raster file from UTM10 to Stateplane WAshington South from the command line. Here is what I do: I downloaded the most recent NAIP im

[gdal-dev] Reprojecting w/ gdalwarp .. cant figure it out

2011-05-10 Thread fork
Hi good people. FMIA -- "forgive me in advance" for the following newbie question I am unable to figure how to reproject a raster file from UTM10 to Stateplane WAshington South from the command line. Here is what I do: I downloaded the most recent NAIP imagery in a sid file, opened the Liza

Re: [gdal-dev] Warping an image from C

2011-05-10 Thread Bborie Park
Sorry Even. Disregard my last message. Thanks for your help. -bborie On 05/05/2011 11:16 AM, Even Rouault wrote: Le mercredi 04 mai 2011 16:52:02, Bborie Park a écrit : Hi, I'm currently in the process of seeing what can be done to expose GDAL's C warp functions to PostGIS Raster and am won

Re: [gdal-dev] Warping an image from C

2011-05-10 Thread Bborie Park
Are there any plans to expand the C warp API? If not, would anyone mind if I took a stab at it? I was going to answer : no, indeed there isn't any C warp API for the "full warping mode" (i.e. for what would be needed by the gdalwarp utility), because I know that gdalwarp.cpp (the source code o

[gdal-dev] Read raster values in a float buffer (GDALPolygonize)

2011-05-10 Thread Jorge Arévalo
Hello, Do you think it's possible to do this? http://trac.osgeo.org/gdal/ticket/4005 I was thinking in implementing it, but I'm not sure of side effects... -- Jorge Arévalo Internet & Mobilty Division, DEIMOS jorge.arev...@deimos-space.com http://es.linkedin.com/in/jorgearevalo80 http://mobilit

Re: [gdal-dev] Setting "INIT_DEST" to nan on windows

2011-05-10 Thread Kyle Shannon
Even, here is the basic flow of my task. I am opening several subdatasets in a for loop, warping them and populating an internal data structure. #include "gdal_priv.h" #include "gdalwarper.h" #include "cpl_conv.h" #include "cpl_port.h" #include #include int main() { GDALAllRegister(); /* * Var

Re: [gdal-dev] Rv: How to determine +towgs84

2011-05-10 Thread andy . cheetham
Hi You can use this website to query the EPSG database. http://georepository.com/home.html If you use the Map Search option then you simply click on the map in the approximate area of your coordinates. The site will then list all the transformation that are applicable for that area. You cou

Re: [gdal-dev] Setting "INIT_DEST" to nan on windows

2011-05-10 Thread Even Rouault
Selon Kyle Shannon : > I did have to set the padfNoDataImag array as well, so I am one step > closer. My new issue is ownership of my psWarpOptions. I assume that since > I create it, and the warp api tutorial implies that is it mine, I destroy it > with GDALDestroyWarpOptions(). My problem is

Re: [gdal-dev] Datum Shifts with OSR.CoordinateTransform

2011-05-10 Thread Armin Burger
Steve In newer versions of the WKT definition there is sometimes a TOWGS84[...] tag included which contains the 7 shifting parameters, but I don't know if this is already a standard notation and if GDAL automatically takes this into account when found. What should normally work is to use the P