PostGIS Licensing
==================

This file attempts to include all licenses that apply within the PostGIS
source tree, in particular any that are supposed to be exposed to the end
user for credit requirements for instance.

PostGIS General
----------------

In general PostGIS may be distributed and/or modified under the conditions
of the GNU General Public License, either version 2 or (at your option) any
later version. Please refer to the COPYING file for details.

PostGIS has dependencies on other libraries which are not under GPL and
that are commonly distributed with PostGIS core libraries.  In general
these are dynamically linked libraries.  Libraries are as follows:

Proj4 - http://proj.osgeo.org -- X/MIT License
GEOS - http://geos.osgeo.org -- LGPL License
LibXML - http://xmlsoft.org/ -- X/MIT License
GDAL - http://gdal.osgeo.org/ -- X/MIT Style License

Source files included with PostGIS not under GPL
------------------------------------------------

-- The following loader/dumper files are derivative works or direct ports
of ShapeLib which is under an X/MIT License: loader/dbfopen, safileio.*,
shapefil.h, shpopen.c (copyrighted by Frank Warmerdam and Even Rouault).

-- loader/getopt.* are under AT&T public domain (Copyright (c) 1984, 1985 AT&T).

-- Doc/xsl files
These are under a BSD Style license

-- liblwgeom/lookup3.c is released under Public Domain by Bob Jenkins, May 2006.

-- deps/ryu (see LICENSE in folder) is released under the Apache 2.0 license;
alternatively, in can be used under the Boost 1.0 license. Copyrighted by Ulf
Adams and contributors.

-- deps/uthash (see LICENSE in folder) is released under a simplified BSD
license. Copyright (c) 2005-2018, Troy D. Hanson.

-- deps/wagyu (see LICENSE.README in folder) includes code released under the
ISC license (copyrighted by Mapbox) and the Boost Software License (copyrighted
by Angus Johnson and Mapbox). Copyright for "almost_equal.hpp" file is held by
Google Inc and its license is listed at the top of that file.

The documentation for PostGIS is under a creative commons share-alike
3.0 license.  http://creativecommons.org/licenses/by-sa/3.0/

Data used in documentation falls in one of the following categories
- Many of the examples in the topology and tiger geocoder section utilize
  data from US Census Tiger data 2010
  http://www.census.gov/geo/www/tiger/tgrshp2010/tgrshp2010.html
- data or snapshots generated by community
- many images autogenerated by PostGIS documentation generator (which
  utilizes ImageMagick) as described
  http://trac.osgeo.org/postgis/wiki/DevWikiDocNewFeature
- PostGIS raster output functions such as the ST_AsPNG etc.
- raster/vector data from MassGIS: http://www.mass.gov/mgis/laylist.htm
