[gdal-dev] Elevation Data Question
Corrado, George P.
George.Corrado at gd-ais.com
Wed Nov 3 10:58:25 EDT 2010
Hello All,
Quick question, has anyone used the Java GDALtest example? I think I might have found the elevation data I was looking for, but I'm not sure. Below is a code snippet from the GDALtest.java class.
else if (buf_type == gdalconstConstants.GDT_Int16)
{
short[][] shorts = new short[bandCount][];
for (int i = 0; i < bandCount; i++)
{
shorts[i] = new short[pixels];
bands[i].asShortBuffer().get(shorts[i]);
System.out.println("Elevation: " + shorts[i]);
}
imgBuffer = new DataBufferShort(shorts, pixels);
System.out.println("Number of Banks: " + imgBuffer.getSize());
for(int g=0; g < imgBuffer.getSize(); g++)
{
System.out.println("Element: " + imgBuffer.getElem(g));
}
It looks like imgBuffer.getElem(g) is printing the elevations at each pixel. Can anyone tell me if that's correct?
Thanks,
George
-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of David Burken
Sent: Wednesday, November 03, 2010 2:25 PM
To: gdal-dev
Subject: [gdal-dev] building gdal with VS10 64 bit
Hi Everyone,
Just curious has anyone successfully built gdal with VS10? I'm not
familiar with the link syntax like "/INCLUDE:_OGR_G_GetPointCount" but
all of those are unresolved when linking gdal library. Any ideas
appreciated. See below for build error.
Take care,
Dave
lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj
frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
vb6\vb6_support.obj
ogrsf_frmts.lib(resolvexlinks.obj) : warning LNK4221: This object file
does not define any previously undefined public symbols, so it will not
be used by any link operation that consumes this library
link /nologo /dll /INCLUDE:_OGRFeatureStylePuller
/INCLUDE:_OSRValidate /INCLUDE:_OPTGetProjectionMethods
/INCLUDE:_OGR_G_GetPointCount /INCLUDE:_OGRRegisterAll
/INCLUDE:_GDALSimpleImageWarp at 36 /INCLUDE:_GDALReprojectImage at 48
/INCLUDE:_GDALCo
mputeMedianCutPCT at 32 /INCLUDE:_GDALDitherRGB2PCT at 28
/INCLUDE:_OCTNewCoordinateTransformation at 8 /INCLUDE:_vbSafeArrayToPtr at 16
port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj
ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
vb6\vb6_support.obj D:\vs
10_x64\osgeo\local\lib\libjpeg.lib
D:\vs10_x64\osgeo\local\lib\geotiff_i.lib
D:\vs10_x64\osgeo\local\lib\libtiff_i.lib odbc32.lib
odbccp32.lib user32.lib D:\vs10_x64\osgeo\local\lib\png14d.lib
gcore\Version.res /out:gdal18dev.dll
/implib:gdal_i.lib
Creating library gdal_i.lib and object gdal_i.exp
LINK : error LNK2001: unresolved external symbol _OGRFeatureStylePuller
LINK : error LNK2001: unresolved external symbol _OSRValidate
LINK : error LNK2001: unresolved external symbol _OPTGetProjectionMethods
LINK : error LNK2001: unresolved external symbol _OGR_G_GetPointCount
LINK : error LNK2001: unresolved external symbol _OGRRegisterAll
LINK : error LNK2001: unresolved external symbol _GDALSimpleImageWarp at 36
LINK : error LNK2001: unresolved external symbol _GDALReprojectImage at 48
LINK : error LNK2001: unresolved external symbol _GDALComputeMedianCutPCT at 32
LINK : error LNK2001: unresolved external symbol _GDALDitherRGB2PCT at 28
LINK : error LNK2001: unresolved external symbol
_OCTNewCoordinateTransformation at 8
LINK : error LNK2001: unresolved external symbol _vbSafeArrayToPtr at 16
gdal18dev.dll : fatal error LNK1120: 11 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\BIN\amd64\link.EXE"' : return code '0x460'
Stop.
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list