• Stars
    star
    171
  • Rank 215,208 (Top 5 %)
  • Language
    HTML
  • Created over 5 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Official repository of the libgeotiff project

Windows CI Travis Status Appveyor Status Release Version

libgeotiff

This library is designed to permit the extraction and parsing of the "GeoTIFF" Key directories, as well as definition and installation of GeoTIFF keys in new files. More information about GeoTIFF specifications, projection codes and use can be found here. Information on the mailing list and archived SVN repository can be found here

Archived releases can be found on the GitHub releases page or the OSGeo archive page

To ask questions and to follow release announcements, subscribe at the mailing list.

You can also report issues (do not use issue tracker for questions)

Dependencies

LibTIFF

PROJ

SQLite3, as a dependency of PROJ

Compilation Instructions

libgeotiff supports out of tree builds.

Linux

cd libgeotiff
./autogen.sh
./configure
make dist
tar xvzf libgeotiff*.tar.gz
cd libgeotiff*
mkdir build_autoconf
cd build_autoconf
CFLAGS="-Wall -Wextra -Werror" ../configure
make -j3
make check
cd ..
mkdir build_cmake
cd build_cmake
cmake -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_C_FLAGS="-Wall -Wextra -Werror" ..
make -j3 

Windows

libgeotiff should work with the Visual Studio toolchain. See .appveyor.yml for example.

cd libgeotiff
mkdir build && cd build
cmake -G "%VS_FULL%" .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release  -DCMAKE_C_FLAGS="/WX" -DCMAKE_CXX_FLAGS="/WX"  -DCMAKE_INSTALL_PREFIX="%BUILD_FOLDER%/install" -DPROJ_INCLUDE_DIR="%BUILD_FOLDER%/install/include" -DPROJ_LIBRARY="%BUILD_FOLDER%/install/lib/proj.lib" -DCMAKE_TOOLCHAIN_FILE=c:/projects/libgeotiff/vcpkg/scripts/buildsystems/vcpkg.cmake

cmake --build . --config Release --target install

Testing

There are two demonstration test programs makegeo and listgeo that create and list-out the GeoTIFF tags and keys associated with a small TIFF file, as well as a full-featured utility called geotifcp. These will all be built in the bin/ directory as a matter of course, though may require modification if you are not using LibTIFF, as they make explicit calls to LibTIFF for opening the files and setting the tags.

To run them simply call:

./makegeo

./listgeo newgeo.tif

to generate and list an example GeoTIFF file. To see the geotifcp utility in action, first call:

listgeo newgeo.tif > metadata.txt

to create a GeoTIFF metadata file metadata.txt, and then

geotifcp -g metadata.txt newgeo.tif newer.tif

to copy the TIFF file newgeo.tif to newer.tif, using the GeoTIFF metadata as stored in metadata.txt. See docs/manual.txt for further uses of geotifcp.

To convert a projection metafile, an ESRI world file, and a raw TIFF file into a GeoTIFF file do something like the following:

tiffcp -g metadata.txt -e abc.tfw abc.tif geo_abc.tif

License

Credits

  • This library was originally written by Niles Ritter (also the primary author of the GeoTIFF specification).

  • Eric Brown of Universal Systems, who contributed a bug fix to GTIFPCSToImage().

  • Safe Software who supported by upgrade to use the EPSG 6.2.2 database for libgeotiff 1.2.0.

  • Many others who contributed before it occured to me to maintain credits.

More Repositories

1

gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
C++
4,508
star
2

PROJ

PROJ - Cartographic Projections and Coordinate Transformations Library
C++
1,641
star
3

grass

GRASS GIS - free and open-source geospatial processing engine
C
769
star
4

homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
Ruby
364
star
5

osgeo

The Open Source Geospatial Foundation is not-for-profit organization to empower everyone with open source geospatial. Directly supports projects as an outreach and advocacy organization providing financial, organizational and legal support. Works with our sponsors and partners for open software, standards, data, research and education.
CSS
344
star
6

OSGeoLive

OSGeo-Live is a self-contained bootable DVD, USB thumb drive or Virtual Machine based on LUbuntu, that allows you to try a wide variety of open source geospatial software without installing anything. It is composed entirely of FOSS, allowing it to be openly reproduced and distributed.
Shell
151
star
7

shapelib

Official repository of shapelib
C
130
star
8

grass-addons

GRASS GIS Addons Repository (Manuals: https://grass.osgeo.org/grass-stable/manuals/addons/ | Linux-logs: https://grass.osgeo.org/addons/grass8/logs/ | Windows logs: https://wingrass.fsv.cvut.cz/grass83/addons/grass-8.3.2/logs/)
Python
92
star
9

PROJ-data

Repository for proj datum grids (for use by PROJ 7 or later)
Python
69
star
10

proj-datumgrid

Historic repository for proj datum grids. New developments are at https://github.com/OSGeo/PROJ-data
Python
40
star
11

tilecache

Tilecache
Python
34
star
12

OSGeoLive-Notebooks

Repository for OSGeo-Live Jupyter Notebooks
Jupyter Notebook
33
star
13

OSGeoLive-doc

Documentation of OSGeoLive project.
Shell
32
star
14

ows.js

OGC Web Services Library for JavaScript
JavaScript
29
star
15

Cat-Interop

Better interoperability between open source metadata servers and clients.
Python
22
star
16

PROJ-JNI

Java Native Interface for PROJ
Java
22
star
17

PROJ-CRS-Explorer

Browse on PROJ coordinate reference systems
HTML
17
star
18

gdal-docs

Static content for GDAL website, refreshed from OSGeo/gdal
HTML
16
star
19

grass-website

Web site of GRASS GIS project (deployed from this repo twice a day)
CSS
15
star
20

MOSS

Heritage archives of the first-ever Open Source GIS: Map Overlay and Statistical System (MOSS), containing its original codebase and help documentation.
Fortran
15
star
21

gdal-extra-drivers

Extra (legacy) GDAL drivers
C++
10
star
22

gdal-grass

GDAL-GRASS GIS driver (https://github.com/OSGeo/gdal-grass/blob/main/docs/grass_raster.md and https://github.com/OSGeo/gdal-grass/blob/main/docs/grass_vector.md)
Python
10
star
23

spatialreference.org

spatialreference.org source code
Python
9
star
24

mdme

Model Driven Metadata Editor (MDME): web application for geospatial metadata editing
Vue
8
star
25

grass-promo

GRASS GIS promotional material repository
TeX
8
star
26

grass-legacy

Legacy code repository of GRASS GIS versions 3.2, 4.x, 5.x, 6.x (1987-2016)
C
7
star
27

gsoc

Repository for OSGeo collaboration with Google Summer of Code (GSOC) activities.
6
star
28

geoschemas

Python package of various geospatial schema bundles
4
star
29

gdal-test-datasets

3
star
30

OSGeoLive-doc-archive

HTML
3
star
31

projjson-submission

Repository for PROJJSON submission as OGC community standard
1
star
32

proj4-doc-forward

forward old proj4.org -> proj.org
HTML
1
star
33

osgeo4freebsd

OSGeo build recipes for FreeBSD packaging
1
star
34

ogc-cite-action

GitHub Action to test your implementation against OGC CITE
Shell
1
star
35

proj-coverage

PROJ.4 HTML coverage
HTML
1
star