[Gdal-dev] missing FALSE_EASTING and Nodata value in my new driver

Gao, Peng pgao at esri.com
Wed Feb 16 13:06:34 EST 2005


I wrote a new GDAL driver for a read-only dynamically generated raster data 
source. I am
having two problems:

(1) The projection string returned from my dataset contains a 
    false_easting value, and it is not
    written to the output (JP2KAK). The following are two prj strings, 
    the first is what's returned
    and the second is what's written (after reading it back):

PROJCS["NAD_1983_StatePlane_Ohio_South_FIPS_3402",GEOGCS
["GCS_North_American_1983",DATUM["North_American_Datum_1983",SPHEROID
["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT
["Degree",0.0174532925199433]],PROJECTION
["Lambert_Conformal_Conic_2SP"],PARAMETER["False_Easting",1968500.0],PARAMETER
["False_Northing",0.0],PARAMETER["Central_Meridian",-82.5],PARAMETER
["Standard_Parallel_1",38.73333333333333],PARAMETER
["Standard_Parallel_2",40.03333333333333],PARAMETER
["Latitude_Of_Origin",38.0],UNIT["Foot_US",0.3048006096012192]]

PROJCS["NAD_1983_StatePlane_Ohio_South_FIPS_3402",GEOGCS["NAD83",DATUM
["North_American_Datum_1983",SPHEROID["GRS 
1980",6378137,298.2572221010002,AUTHORITY["EPSG","7019"]],AUTHORITY
["EPSG","6269"]],PRIMEM["Greenwich",0],UNIT
["degree",0.0174532925199433],AUTHORITY["EPSG","4269"]],PROJECTION
["Lambert_Conformal_Conic_2SP"],PARAMETER
["standard_parallel_1",38.73333333333333],PARAMETER
["standard_parallel_2",40.03333333333333],PARAMETER
["latitude_of_origin",38],PARAMETER["central_meridian",-82.5],PARAMETER
["false_easting",0],PARAMETER["false_northing",0],UNIT["US survey 
foot",0.3048006096012192,AUTHORITY["EPSG","9003"]]]

(2) My data contains NoData, and the NoData value is 0. The 
    RasterBand::GetNoDataValue() never gets called. 

What did I do wrong?

Gao, Peng





More information about the Gdal-dev mailing list