Re: [gdal-dev] building geotransform with lower left and upper right coordinates

2012-02-13 Thread Brice Lambi
Hi Brian, Thanks for the help, you were correct that I just needed to inverse my dy value in the geotransform. Cheers, Brice On 02/13/2012 10:44 AM, Brian Case wrote: Brice, After some thought your image might not be bottom up. if thats the case calc the origin the way you did before, but

[gdal-dev] building geotransform with lower left and upper right coordinates

2012-02-13 Thread lambi
Hello, I have a raster where I know the projection and the lower left and upper right coordinates and pixel size but I don't know the upper left coordinate. It is a lambert conformal conic projection: "+proj=lcc +lon_0=95W +lat_0=25N +lat_1=25N" where the lower left is -113.1333, 16.3691 upper

Re: [gdal-dev] Python (2.6.5) GDAL module will not install with easy_install

2010-05-11 Thread Brice Lambi
d gdal from the system? And if so, how would that > be done? > > Thanks again, > Allen > > > On May 11, 2010, at 2:10 PM, Brice Lambi wrote: > >> It really looks like a linking error, make sure that >> /opt/GOESR/local/lib is in your LD_LIBRARY_PATH before /usr

Re: [gdal-dev] Python (2.6.5) GDAL module will not install with easy_install

2010-05-11 Thread Brice Lambi
> On May 11, 2010, at 1:19 PM, Brice Lambi wrote: > >> What is your python path? >> >> # python >>>>> import sys >>>>> sys.path >> >> What does that say? It might have linked against the wrong version of >> gdal or it might b

Re: [gdal-dev] Python (2.6.5) GDAL module will not install with easy_install

2010-05-11 Thread Brice Lambi
lib/python2.6/site-packages/GDAL-1.7.2-py2.6-linux-x86_64.egg/osgeo/_gdal.so: >> undefined symbol: GDALGetMaskFlags >> >>> > > Any ideas why I'm getting the ImportError with the undefined symbol? > > Thank you very much for your help, > Allen Rong

Re: [gdal-dev] Convert shapefile to SQL text for PostGIS

2010-05-11 Thread Brice Lambi
PostGIS. It can also be configured as a plugin to PgAdminIII. Brice Lambi wrote: > You can use shp2text: > > http://www.obviously.com/gis/shp2text/ > > It won't output the insert statements directly but it will create a tab > delimited file that you could then p

Re: [gdal-dev] Python (2.6.5) GDAL module will not install with easy_install

2010-05-11 Thread Brice Lambi
tup.py build > python setup.py install > > However, now when I run python and try to import gdal it complains that > there is no such module. > > > Arrgggghh > > > ~ Allen > > > On May 6, 2010, at 12:47 PM, Brice Lambi wrote: > >> Hi Allen,

Re: [gdal-dev] Convert shapefile to SQL text for PostGIS

2010-05-11 Thread Brice Lambi
You can use shp2text: http://www.obviously.com/gis/shp2text/ It won't output the insert statements directly but it will create a tab delimited file that you could then parse into your database. Aleksey Naumov wrote: > Dear GDAL users, > > Is there a way to use ogr2ogr or other means to conver

Re: [gdal-dev] Projecting points on a mercator projection

2010-04-29 Thread Brice Lambi
This actually works just as expected but I was being dense. The odd points with the negative coords are in Alaska and Hawaii which is outside of this domain. After removing these and accounting for the image size: gx = gx % 1073 gy = gy % 689 everything works as expected. la...@ucar.edu wrot

Re: [gdal-dev] Projecting points on a mercator projection

2010-04-29 Thread Brice Lambi
Also, this is the gdalinfo of the image I am trying to match: Driver: GTiff/GeoTIFF Files: /tmp/1725.tif Size is 1073, 689 Coordinate System is: PROJCS["unnamed", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7

[gdal-dev] Projecting points on a mercator projection

2010-04-29 Thread lambi
Hello, I'm trying to figure out how to take a list of points and put them on a mercator projected image using the gdal python bindings. I'm trying to match it with a NDFD grid that I've been able to create and put on google maps from a GRIB2 file. This is what I have: geo = [-14483681.357462916