-
Notifications
You must be signed in to change notification settings - Fork 0
rl2tiff changes
Mark Johnson edited this page Nov 12, 2015
·
13 revisions
Changes made in rl2tiff.c
[--> 'List of Sql-Commands'] (Home#commands)
[<-- 'Index Page for RasterLite2 - Commands'] (RasterLite2-Index#commands)
[<-- 'Cutline / RasterDefaults Index'] (Cutline-Index#code_changes)
-
init_tiff_origin
- in cases where
TIFFGetFieldDefaulted
- will return (without a need to check the return code) a default value
-
TIFFGetField
was replaced withTIFFGetFieldDefaulted
-
- will return (without a need to check the return code) a default value
- otherwise
-
TIFFGetField
with the checking of the return code is used
-
- in cases where
-
TIFFTAG_GDAL_NODATA
- User/ Custom defined TIFFTAG support has been added
- this enables the use of
-
TIFFGetField
andTIFFSetField
-
- this enables the use of
- a read and write function has been created
- to
translate
a GDAL_NODATA to a RL2-NODATA-
fetch_gdal_nodata
- reads a
rl2PixelPtr
and fills a string with the found value- used when creating a GeoTiff with TIFFTAG_GDAL_NODATA
- reads a
-
rl2_set_gdal_nodata
- creates a
rl2PixelPtr
from a string received from TIFFTAG_GDAL_NODATA- which can be used to set the raster_coverage nodata value
- each band receives the same value
- which can be used to set the raster_coverage nodata value
- creates a
-
fetch_gdal_nodata
- a major difference between the 2 is
- that a GDAL-NODATA is use for all bands
- where as RL2-NODATA can have a different value for each
- the functions above insure
- that these rules are applied
- the functions above insure
- to
- User/ Custom defined TIFFTAG support has been added
Note:
- to insure, that during RL2_LoadRaster
- a User-defined nodata in never overwritten by a found TIFFTAG_GDAL_NODATA
-
rl2sqlaux.c *default_nodata
- will set the Pixels as Transparent (isTransparent == 1)
- isTransparent is otherwise (for a nodata pixel) not used
- will set the Pixels as Transparent (isTransparent == 1)
-
rl2import.c do_import_file
-
set_coverage_nodata will only be called
- when the existing raster_coverage nodata has (isTransparent == 1)
-
set_coverage_nodata will only be called
-
rl2sqlaux.c *default_nodata
- a User-defined nodata in never overwritten by a found TIFFTAG_GDAL_NODATA
-
DOCUMENTNAME
- will be read and used as
title
- will be read and used as
-
IMAGEDESCRIPTION
- will be read and used as
abstract
- will be read and used as
-
COPYRIGHT
- will be read and used as
copyright
- but will not be saved until a decision has been made
- to add such a field to raster_coverages
- but will not be saved until a decision has been made
- will be read and used as
-
rl2import.c do_import_file
-
set_coverage_infos will only be called
- if the existing
title
andabstract
- have not already be set by the User
- value empty or '*** missing ... ***'
- have not already be set by the User
- if the existing
-
set_coverage_infos will only be called
Goal:
- is to simplify the import process
[<-- 'Cutline / RasterDefaults Index'] (Cutline-Index#code_changes)
2015-11-12: Mark Johnson, Berlin Germany