Re: [gdal-dev] gdalinfo on PostGIS rasters (GDAL 1.9)

2012-11-07 Thread James Hiebert
t; Of course, I'd be happy to provide more information if required. Any advice > would be greatly appreciated! > > Mathieu Basille. > > > PS: I hope I'm using this list properly. Please let me know if you feel > that the question should be addressed to postgis-devel instead. > > -- > >

Re: [gdal-dev] Selecting Python during configuration

2012-11-01 Thread James Hiebert
Michael, --with-python sets the path to the python binary that you want to use and while that may not intuitively seem like it sets the install path, it actually does. If you have multiple separate python binaries installed on the system (e.g. from using virtualenv), generally each one of them

[gdal-dev] python CreateFeature() error when converting OGR features from gpsbabel layer to PostGIS layer

2012-11-01 Thread James Hiebert
Hi All, For months I've been happily pulling GPS tracks into PostGIS using ogr in a pretty simple python script. The essence of it approximately this: rlyr = ogr.Open(gpsbabel_src).GetLayerByName('tracks') wlyr = ogr.Open(pg_con_string).GetLayerByName('tracks') fid_map = {} for feat in rlyr:

Re: [gdal-dev] ogr2ogr, gpx -> PostGIS, preserving fid links

2012-03-26 Thread James Hiebert
e there was nothing to fix. The change in > track_fid values was not unexpected. > > Whatever we do, we need to keep track of the foreign keys. That is not a > trivial case. It is more of a DBMS area. In fact, the solution you specified, > which is to have a temporary table, was m

[gdal-dev] ogr2ogr, gpx -> PostGIS, preserving fid links

2012-03-25 Thread James Hiebert
Hi all, I'm trying to use ogr2ogr to load gpx tracks into PostGIS and am having trouble preserving the foreign keys between the "track_points" layer/table and the "tracks" layer/table. My use case is as such: I typically collect gps traces in the field and use gpsbabel to download the traces f

Re: [gdal-dev] discussion on improvements to the NetCDF driver and CF-1 convention

2011-08-25 Thread James Hiebert
Etienne > > > > ___ > > gdal-dev mailing list > > gdal-dev@lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/gdal-dev > > > ___ > g

Re: [gdal-dev] ogr2ogr SQL Date Calculation

2011-07-11 Thread James Hiebert
me.html for a wide variety of other functions and options. ~James Hiebert On Mon, Jul 11, 2011 at 04:11:54PM +0100, Langford, Robert wrote: > All, > > I am trying to use ogr2ogr as a scheduled command line task to run weekly to > convert a .SHP file to a .TAB file whilst filtering

Re: [gdal-dev] Problem using gdalwarp to reproject Lambert Conformal Conic (LCC) to longlat

2011-01-07 Thread James Hiebert
Thanks for the quick response. It was definitely the missing +b. It seems that proj will fill in the +b with the same value if +a is given. Adding +b to the s_srs flag did the trick. ~James On Fri, Jan 07, 2011 at 04:51:05PM -0500, Frank Warmerdam wrote: > On 11-01-07 04:18 PM, James Hieb

[gdal-dev] Problem using gdalwarp to reproject Lambert Conformal Conic (LCC) to longlat

2011-01-07 Thread James Hiebert
All, Below is a question/probelm from one of my co-workers (who doesn't (yet) want to subscribe to the list). ~James Hiebert From: Hailey Eckstrand Date: Fri, 7 Jan 2011 13:05:10 -0800 Hello all, I am trying to reproject a geotif using gdalwarp: gdalwarp -t_srs "+proj=longlat"

Re: [gdal-dev] How does GDAL's NetCDF driver determine the spatial reference system

2010-08-09 Thread James Hiebert
Sure. The ticket can be found here: https://trac.osgeo.org/gdal/ticket/3715 ~James On Mon, Aug 09, 2010 at 03:13:59PM -0400, Lucena, Ivan wrote: > James, > > Could do file a ticked and upload a sample file on > http://trac.osgeo.org/gdal/ ? > > Regards, > > Ivan

[gdal-dev] How does GDAL's NetCDF driver determine the spatial reference system

2010-08-09 Thread James Hiebert
Hi All, I'm trying to use GDAL (version 1.7.2 on Gentoo built with hdf5 and netcdf support) to read NetCDF files, but I'm a little unclear on how the NetCDF driver attempts to determine the georeferencing. The driver page here: http://www.gdal.org/frmt_netcdf.html states that it will attempt to r