[gdal-dev] gdal build error on Windows with Jasper

2009-08-05 Thread Gong, Shawn (Contractor)
hi list, I downloaded the 2009-08-03 daily stable gdal and built on Windows using MS VS 2005. First I tried without Jasper and it went fine. After I uncommented these lines: # Uncomment for JasPer based JPEG2000 support JASPER_DIR = C:\build2\jasper-1.900.1

Re: [gdal-dev] How to compile dumpoverviews

2009-08-05 Thread Jorge Arévalo
Hello, 2009/8/5 Frank Warmerdam : > Jorge Arévalo wrote: >> >> Hello, >> >> How should I compile GDAL to get "dumpoverviews" executable tool? I've >> tested by "make all" in the apps directory, but I'm not sure if it's >> the best way. >> >> Anyway, after compiling it with "make all", I can't debu

Re: [gdal-dev] How to compile dumpoverviews

2009-08-05 Thread Frank Warmerdam
Jorge Arévalo wrote: Hello, How should I compile GDAL to get "dumpoverviews" executable tool? I've tested by "make all" in the apps directory, but I'm not sure if it's the best way. Anyway, after compiling it with "make all", I can't debug it. I add --enable-debug option to configure script, bu

[gdal-dev] How to compile dumpoverviews

2009-08-05 Thread Jorge Arévalo
Hello, How should I compile GDAL to get "dumpoverviews" executable tool? I've tested by "make all" in the apps directory, but I'm not sure if it's the best way. Anyway, after compiling it with "make all", I can't debug it. I add --enable-debug option to configure script, but after executing "make

Re: [gdal-dev] GDALCreateTPSTransformer :: Problem

2009-08-05 Thread Even Rouault
I can only point to the API documentation : http://gdal.org/gdal__alg_8h.html#a30 This is used by GDAL in http://trac.osgeo.org/gdal/browser/trunk/gdal/alg/gdaltransformer.cpp - Original Message - From: spbhasker bachi To: gdal-dev@lists.osgeo.org Sent: Wednesday, August 05, 2009 4:15

Re: [Gdal-dev] How to find the count of subdatasets of a HDF file?

2009-08-05 Thread Even Rouault
- Original Message - From: kohain To: gdal-dev@lists.osgeo.org Sent: Wednesday, August 05, 2009 10:27 AM Subject: [Gdal-dev] How to find the count of subdatasets of a HDF file? How to find the count of subdatasets of a HDF file? CSLCount(GDALGetMetadata(hDS, "SUBDATASETS")) / 2 Th

Re: [Gdal-dev] gdalwarp, proj4 and Space Oblique Mercator problem

2009-08-05 Thread Even Rouault
This projection is recognized by proj, but not by the GDAL module that parses PROJ.4 strings into its OGC WKT model. I'm afraid there's nothing you can do, apart from improving OGR to support this projection method and posting the patch ;-) Maybe a way of cheating could be to use a valid (and unr

Re: [gdal-dev] Question on OGR handle types

2009-08-05 Thread Even Rouault
Stefan, Why are you so much afraid about using cast ? ;-) This is probably the easiest solution for you : OGRCoordinateTransformation* poCT = OGRCreateCoordinateTransformation(poSRS1, poSRS2); OCTDestroyCoordinateTransformation( (OGRCoordinateTransformationH) poCT); No worry to have. It's exactl

Re: [Gdal-dev] gdalwarp, proj4 and Space Oblique Mercator problem

2009-08-05 Thread Frank Warmerdam
ilumas wrote: Dear all, I'm trying to re-project a USGS Landsat 5 scene with Space Oblique Mercator projection with the following command: gdalwarp -s_srs '+proj=lsat +lsat=5 +path=188' -t_srs EPSG:2393 input.tif output.tif For some reason this fails: ERROR 1: Translating source or target

[Gdal-dev] gdalwarp, proj4 and Space Oblique Mercator problem

2009-08-05 Thread ilumas
Dear all, I'm trying to re-project a USGS Landsat 5 scene with Space Oblique Mercator projection with the following command: gdalwarp -s_srs '+proj=lsat +lsat=5 +path=188' -t_srs EPSG:2393 input.tif output.tif For some reason this fails: ERROR 1: Translating source or target SRS failed: +pr

[gdal-dev] CPPFLAGS?

2009-08-05 Thread jim hopper
I was trying to build gdal and noticed that setting CFLAGS is not enough as you also need CPPFLAGS for the c++ code, fair enough. But some places (the one I found is in gcore and frmts/ilwis) this is not handled correctly. In gcore this appears correct CPPFLAGS:=$(GDAL_INCLUDE) $(CPPFLA

[gdal-dev] Question on OGR handle types

2009-08-05 Thread Stefan Moebius
Hi, In May 2008, a couple of changes where made to improve type checking. See http://lists.osgeo.org/pipermail/gdal-dev/2008-May/017059.html http://trac.osgeo.org/gdal/changeset/14435 http://trac.osgeo.org/gdal/changeset/14441 Our code is using the function OGRCoordinateTransformation* OGRCrea

[gdal-dev] GDALCreateTPSTransformer :: Problem

2009-08-05 Thread spbhasker bachi
Using Gdal Latest 1.6.1 Whenever i pass this Function my Application is Passing.. Any source on the Usage will be Helpful.. ///my Gcpcount = 32 and gcps has an array loaded with Source and Target GCP's poTransform = GDALCreateTPSTransformer( GCPCount, gcps , 0 ); _

[gdal-dev] OGR OCI Driver improvement about CoordinateDimension

2009-08-05 Thread Nicolas Simon
Dear developpers, This problem is not actually well handled when we use feature with 2D and 3D coordinate. (I provide test file with Ticket #3025) 1) When we WRITE data into Oracle, TranslateTOSDOGeometry() and TranslateElemGroup() use nDimension member variable of OCIWritableLayer to ha

[gdal-dev] SDE connection string problem with 1.6.1?

2009-08-05 Thread bartvde
Hi list, it seems the layer part of an SDE connection string is not picked up anymore. We're using GDAL 1.6.1. Did anybody else experience this? E.g.: ogrinfo SDE:geodatabase.ad.rws.nl,5151,5151,RWS_LEZEN,,WEGEN.WEGEN_NWB_LIGHT lists all tables and not only the one specified. TIA. Best re

[Gdal-dev] How to find the count of subdatasets of a HDF file?

2009-08-05 Thread kohain
How to find the count of subdatasets of a HDF file? and how to ascertain band counts of each subdataset? I'm using GDAL to read hdf4 files,but i don't know the particular usage. -- View this message in context: http://n2.nabble.com/How-to-find-the-count-of-subdatasets-of-a-HDF-file--tp3389927p

[gdal-dev] RE: reprojection to WGS 1984 Web Mercator

2009-08-05 Thread Sjur Kolberg
John, This looks like the kind of north/south error you get when the transform gets the ellipsoids wrong, with most serious displacement if a one of the ellipsoids is a sphere. I am guessing that your transform ignores the ellipsoid change, try see what you get if you specify GRS 1980 also in