Commit b50066d1 authored by Markus Wanner's avatar Markus Wanner

Import upstream version 2.1.0

parent 85dc0483
---
env:
global:
- PGUSER=postgres
matrix:
#- GEOS_VERSION=3.4.1
#- GEOS_VERSION=3.3.8
#- GDAL_VERSION=1.10.0
before_install:
- rm .travis.yml
- sudo apt-add-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update
- sudo apt-get install -qq build-essential flex autoconf libtool gfortran postgresql-server-dev-all xsltproc libjson0-dev libproj-dev dblatex xsltproc libcunit1-dev libcunit1 docbook-xsl docbook-mathml libgdal-dev libgeos-dev
- git config --global user.name "PostGIS Travis CI"
- git config --global user.email $HOSTNAME":not-for-mail@travis-ci.org"
install:
- export LSB_RELEASE=$( lsb_release -rs )
#- wget -q http://stardestroyer.de/travis/geos-$GEOS_VERSION.travis.$LSB_RELEASE.tar.gz
#- tar xvzf geos-$GEOS_VERSION.travis.$LSB_RELEASE.tar.gz -C /
#- sudo ln -s /home/travis/geos-$GEOS_VERSION/lib/libgeos_c.so.1.8.0 /usr/lib/libgeos_c.so.1
#- wget -q http://stardestroyer.de/travis/gdal-$GDAL_VERSION.travis.$LSB_RELEASE.tar.gz
#- tar xvzf gdal-$GDAL_VERSION.travis.$LSB_RELEASE.tar.gz -C /
#- LD_LIBRARY_PATH="/home/travis/geos-$GEOS_VERSION/lib:/home/travis/gdal-$GDAL_VERSION/lib"
#- LD_RUN_PATH="/home/travis/geos-$GEOS_VERSION/lib:/home/travis/gdal-$GDAL_VERSION/lib"
- ./autogen.sh
# - ./configure --with-geosconfig=/home/travis/geos-$GEOS_VERSION/bin/geos-config --with-gdalconfig=/home/travis/gdal-$GDAL_VERSION/bin/gdal-config
- ./configure
language: c
compiler:
- gcc
notifications:
email: false
irc:
channels:
- "irc.freenode.org#postgis"
on_success: change
on_failure: always
use_notice: true
script:
- make
- make check RUNTESTFLAGS=-v
after_failure:
- cat /tmp/pgis_reg/*
This diff is collapsed.
......@@ -8,9 +8,9 @@ user for credit requirements for instance.
PostGIS General
----------------
In general PostGIS is licensed under GPL Version 2 terms except on files
where expressly stated otherwise. Please refer to the COPYING file for
licensing details.
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
......
PostGIS 2.1.1
2013/11/08
* Important Changes *
- #2514, Change raster license from GPL v3+ to v2+, allowing
distribution of PostGIS Extension as GPLv2.
* Bug Fixes *
- #2396, Make regression tests more endian-agnostic
- #2434, Fix ST_Intersection(geog,geog) regression in rare cases
- #2454, Fix behavior of ST_PixelAsXXX functions regarding
exclude_nodata_value parameter
- #2449, Fix potential infinite loop in index building
- #2489, Fix upgrades from 2.0 leaving stale function signatures
- #2493, Fix behavior of ST_DumpValues when passed an empty raster
- #2502, Fix postgis_topology_scripts_installed() install schema
- #2504, Fix segfault on bogus pgsql2shp call
- #2512, Support for foreign tables and materialized views in
raster_columns and raster_overviews
- #2525, Fix handling of SRID in nested collections
- #2528, Fix memory leak in ST_Split / lwline_split_by_line
- #2532, Add missing raster/geometry commutator operators
- #2533, Remove duplicated signatures
* Enhancements *
- #2463, support for exact length calculations on arc geometries
- #2478, support for tiger 2013
- #2527, Added -k flag to raster2pgsql to skip checking that
band is NODATA
PostGIS 2.1.0
2013/08/17
* Important / Breaking Changes *
- #1653, Removed srid parameter from ST_Resample(raster) and variants
with reference raster no longer apply reference raster's SRID.
- #1962 ST_Segmentize - As a result of
......@@ -40,8 +75,10 @@ PostGIS 2.1.0
Use expression variants of ST_MapAlgebra instead
* New Features *
- Refer to http://postgis.net/docs/manual-2.1/PostGIS_Special_Functions_Index.html#NewFunctions_2_1
for complete list of new functions
Refer to http://postgis.net/docs/manual-2.1/PostGIS_Special_Functions_Index.html#NewFunctions_2_1
for complete list of new functions
- #310, ST_DumpPoints converted to a C function (Nathan Wagner)
- #739, UpdateRasterSRID()
- #945, improved join selectivity, N-D selectivity calculations,
......@@ -220,16 +257,54 @@ PostGIS 2.1.0
* Known Issues *
- #2111, Raster bands can only reference the first 256 bands of out-db rasters
PostGIS 2.0.4
2013/09/06
* Bug Fixes *
- #2110, Equality operator between EMPTY and point on origin
- Allow adding points at precision distance with TopoGeo_addPoint
- #1968, Fix missing edge from toTopoGeom return
- #2165, ST_NumPoints regression failure with CircularString
- #2168, ST_Distance is not always commutative
- #2186, gui progress bar updates too frequent
- #2201, ST_GeoHash wrong on boundaries
- #2257, GBOX variables not initialized when testing with empty geometries
- #2271, Prevent parallel make of raster
- #2267, Server crash from analyze table
- #2277, potential segfault removed
- #2307, ST_MakeValid outputs invalid geometries
- #2351, st_distance between geographies wrong
- #2359, Incorrect handling of schema for overview constraints
- #2371, Support GEOS versions with more than 1 digit in micro
- #2372, Cannot parse space-padded KML coordinates
- Fix build with systemwide liblwgeom installed
- #2383, Fix unsafe use of \' in warning message
- #2410, Fix segmentize of collinear curve
- #2415, ST_Multi support for COMPOUNDCURVE and CURVEPOLYGON
- #2412, ST_LineToCurve support for lines with less than 4 vertices
- #2420, ST_LineToCurve: require at least 8 edges to define a full circle
- #2423, ST_LineToCurve: require all arc edges to form the same angle
- #2424, ST_CurveToLine: add support for COMPOUNDCURVE in MULTICURVE
- #2427, Make sure to retain first point of curves on ST_CurveToLine
* Enhancements *
- #2269, Avoid uselessly de-toasting full geometries on ANALYZE
* Known Issues *
- #2111, Raster bands can only reference the first 256 bands of out-db rasters
PostGIS 2.0.3
2013/03/01
* Bug Fixes *
- #2134, Fixed handling of SRS strings as they are passed to GDAL functions
PostGIS 2.0.2
2012/12/03
* Bug Fixes *
- #1287, Drop of "gist_geometry_ops" broke a few clients
package of legacy_gist.sql for these cases
- #1391, Errors during upgrade from 1.5
......@@ -277,11 +352,10 @@ PostGIS 2.0.2
- #2117, Ensure ST_PointOnSurface always returns POINT
- #2129, Fix SRID in ST_Homogenize output with collection input
- #2130, Fix memory error in MultiPolygon GeoJson parsing
- Update URL of Maven jar
* Enhancements *
- #1581, ST_Clip(raster, ...) no longer imposes NODATA on a band if the
corresponding band from the source raster did not have NODATA
- #1928, Accept array properties in GML input multi-geom input
......
PostGIS - Geographic Information Systems Extensions to PostgreSQL
=================================================================
:Version: 2.1.0
:Date: 2013-08-17
:Version: 2.1.1
:Date: 2013-11-08
:Website: http://postgis.net
This distribution contains a module which implements GIS simple features, ties
......
......@@ -5,5 +5,5 @@
POSTGIS_MAJOR_VERSION=2
POSTGIS_MINOR_VERSION=1
POSTGIS_MICRO_VERSION=0
POSTGIS_MICRO_VERSION=1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
# generated automatically by aclocal 1.13.3 -*- Autoconf -*-
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
......@@ -11,7 +11,8 @@
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
......@@ -19,10 +20,16 @@
# AM_PROG_MKDIR_P
# ---------------
# Check for `mkdir -p'.
# Check for 'mkdir -p'.
AC_DEFUN([AM_PROG_MKDIR_P],
[AC_PREREQ([2.60])dnl
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
dnl FIXME we are no longer going to remove this! adjust warning
dnl FIXME message accordingly.
AC_DIAGNOSE([obsolete],
[$0: this macro is deprecated, and will soon be removed.
You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
dnl while keeping a definition of mkdir_p for backward compatibility.
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -34,13 +34,13 @@ dnl SQL Preprocessor
dnl
AC_PATH_PROG([CPPBIN], [cpp], [])
if test "x$CPPBIN" != "x"; then
SQLPP="${CPPBIN} -traditional-cpp -P"
SQLPP="${CPPBIN} -w -traditional-cpp -P"
else
AC_PATH_PROG([GPP], [gpp_], [])
if test "x$GPP" != "x"; then
SQLPP="${GPP} -C -s \'" dnl Use better string support
else
SQLPP="${CPP} -traditional-cpp"
SQLPP="${CPP} -w -traditional-cpp"
fi
fi
AC_SUBST([SQLPP])
......@@ -379,8 +379,8 @@ AC_SUBST([PGXS])
dnl Extract the version information from pg_config
dnl Note: we extract the major & minor separately, ensure they are numeric, and then combine to give
dnl the final version. This is to guard against user error...
PGSQL_MAJOR_VERSION=`$PG_CONFIG --version | sed 's/[[A-Za-z ]]*//' | cut -d. -f1 | sed 's/[[^0-9]]//g'`
PGSQL_MINOR_VERSION=`$PG_CONFIG --version | sed 's/[[A-Za-z ]]*//' | cut -d. -f2 | sed 's/[[^0-9]]//g'`
PGSQL_MAJOR_VERSION=`$PG_CONFIG --version | sed 's/[[^0-9]]*\([[0-9]]\)\.\([[0-9]]\).*/\1/'`
PGSQL_MINOR_VERSION=`$PG_CONFIG --version | sed 's/[[^0-9]]*\([[0-9]]\)\.\([[0-9]]\).*/\2/'`
PGSQL_FULL_VERSION=`$PG_CONFIG --version`
POSTGIS_PGSQL_VERSION="$PGSQL_MAJOR_VERSION$PGSQL_MINOR_VERSION"
......
......@@ -25,15 +25,15 @@ translations = it_IT pt_BR
POSTGIS_MAJOR_VERSION=2
POSTGIS_MINOR_VERSION=1
POSTGIS_MICRO_VERSION=0
POSTGIS_MICRO_VERSION=1
INSTALL=/usr/bin/install -c
INSTALL=/opt/local/bin/ginstall -c
INSTALL_DATA=${INSTALL} -m 644
XSLTPROC=/usr/bin/xsltproc
XSLBASE=/usr/share/xml/docbook/stylesheet/nwalsh
XMLLINT=/usr/bin/xmllint
PERL=/usr/bin/perl
XSLTPROC=/opt/local/bin/xsltproc
XSLBASE=/opt/local/share/xsl/docbook-xsl
XMLLINT=/opt/local/bin/xmllint
PERL=/opt/local/bin/perl
# To allow network access use:
#
......@@ -63,10 +63,10 @@ HTML_DOCBOOK_XSL=$(XSLBASE)/html/docbook.xsl
CHUNK_HTML_DOCBOOK_XSL=$(XSLBASE)/html/chunk.xsl
# DBLatex's dblatex script for PDF generation from DocBook
DBLATEX=/usr/bin/dblatex
DBLATEX=/opt/local/bin/dblatex
# Imagemagick's convert utility program for generated images used in the documentation
IMAGEMAGICK=/usr/bin/convert
IMAGEMAGICK=/opt/local/bin/convert
# Gettext for translated documentation
MSGMERGE=msgmerge
......@@ -78,9 +78,9 @@ XML2POT=xml2pot
DBTOEPUB=dbtoepub
# Directories for postgresql subdirectories
PGSQL_DOCDIR=/var/lib/jenkins/workspace/pg/rel/pg9.2w64/share/doc/postgresql
PGSQL_MANDIR=/var/lib/jenkins/workspace/pg/rel/pg9.2w64/share/man
PGSQL_SHAREDIR=/var/lib/jenkins/workspace/pg/rel/pg9.2w64/share/postgresql
PGSQL_DOCDIR=/usr/local/pgsql/9.2/share/doc
PGSQL_MANDIR=/usr/local/pgsql/9.2/share/man
PGSQL_SHAREDIR=/usr/local/pgsql/9.2/share
# If XSLTPROC or XSLBASE were not found during configure, we cannot
# build the documentation
......
......@@ -21,8 +21,8 @@ MODULEDIR=contrib/$(MODULE_doc)
DATA_built=postgis_comments.sql raster_comments.sql topology_comments.sql
# PGXS information
PG_CONFIG = /var/lib/jenkins/workspace/pg/rel/pg9.2w64/bin/pg_config
PGXS := /var/lib/jenkins/workspace/pg/rel/pg9.2w64/lib/postgresql/pgxs/src/makefiles/pgxs.mk
PG_CONFIG = /usr/local/pgsql/9.2/bin/pg_config
PGXS := /usr/local/pgsql/9.2/lib/pgxs/src/makefiles/pgxs.mk
include $(PGXS)
# PGXS override feature. The ability to allow PostGIS to install itself
......
......@@ -4,7 +4,7 @@
<sect1info>
<abstract>
<para>A plpgsql based geocoder written to work with the <ulink url="http://www.census.gov/geo/www/tiger/">TIGER (Topologically Integrated Geographic Encoding and Referencing system ) / Line and Master Address database export</ulink> released by the US Census Bureau. </para>
<para>There are four components to the geocoder: the data loader functions, the address normalizer, the address geocoder, and the reverse geocoder. The latest version updated to use the TIGER 2011 and 2012 census data is located in the <varname>extras/tiger_geocoder/tiger_2011</varname> folder. It defaults to downloading and installing TIGER 2012 files. </para>
<para>There are four components to the geocoder: the data loader functions, the address normalizer, the address geocoder, and the reverse geocoder. The latest version updated to use the TIGER 2011 and 2012 census data is located in the <varname>extras/tiger_geocoder/tiger_2011</varname> folder. It defaults to downloading and installing TIGER 2012 files in PostGIS 2.1.0 and TIGER 2013 in PostGIS 2.1.1+. </para>
<para>Although it is designed specifically for the US, a lot of the concepts and functions are applicable and can be adapted to work with other country address and road networks.</para>
<para>The script builds a schema called <varname>tiger</varname> to house all the tiger related functions, reusable lookup data such as road type prefixes, suffixes, states, various control tables for managing data load, and skeleton base tables from which all the tiger loaded tables inherit from.</para>
<para>Another schema called <varname>tiger_data</varname> is also created which houses all the census data for each state that the loader downloads from Census site and loads into the database. In the current model, each set of state tables is
......@@ -17,7 +17,7 @@
If you are using tiger geocoder (tiger_2010),
you can upgrade the scripts using the accompanying upgrade_geocoder.bat
/ .sh scripts in tiger_2011. One major change between <varname>tiger_2010</varname> and <varname>tiger_2011/tiger_2012</varname> is that the county and <varname>county</varname> and <varname>state</varname> tables are no longer broken out by state. We'll be refining the upgrade scripts
until release. If you have data from tiger_2010 and want replace with tiger_2012 refer to <xref linkend="upgrade_tiger_geocoder" />
until release. If you have data from tiger_2010 and want replace with tiger_2012 or tiger_2013 refer to <xref linkend="upgrade_tiger_geocoder" />
</para></note>
<note><para>New in PostGIS 2.1.0 release is ability to install tiger geocoder with PostgreSQL extension model if you are running PostgreSQL 9.1+. Refer to <xref linkend="install_tiger_geocoder_extension" /> for details.</para></note>
......@@ -134,8 +134,7 @@ DROP INDEX tiger_data.idx_tiger_data_ma_county_snd_name;
<refsynopsisdiv>
<funcsynopsis>
<funcprototype>
<funcdef>text <function>Drop_State_Tables_Generate_Script</function></funcdef>
<paramdef><type>text </type> <parameter>param_state</parameter></paramdef>
<funcdef>text <function>Drop_Nation_Tables_Generate_Script</function></funcdef>
<paramdef choice="opt"><type>text </type> <parameter>param_schema=tiger_data</parameter></paramdef>
</funcprototype>
</funcsynopsis>
......
......@@ -13,8 +13,8 @@
CC=gcc
CFLAGS=-g -O2 -Wall -Wmissing-prototypes
CUNIT_LDFLAGS=-L/var/lib/jenkins/workspace/pg/rel/pg9.2w64/lib -L/var/lib/jenkins/workspace/gdal/rel-2.0w64/lib -lcunit
CUNIT_CPPFLAGS=-I/var/lib/jenkins/workspace/pg/rel/pg9.2w64/pg9.2/include -I../../../liblwgeom
CUNIT_LDFLAGS= -lcunit
CUNIT_CPPFLAGS= -I../../../liblwgeom
IMAGES= \
../images/de9im01.png \
......
......@@ -121,7 +121,7 @@ psql -d yourdatabase -f topology_comments.sql</programlisting>
<para>
JSON-C, version 0.9 or higher. JSON-C is currently used to import GeoJSON via the
function ST_GeomFromGeoJson. JSON-C is available for download from
<ulink url="http://oss.metaparadigm.com/json-c/">http://oss.metaparadigm.com/json-c/</ulink>.
<ulink url="https://github.com/json-c/json-c/releases">https://github.com/json-c/json-c/releases</ulink>.
</para>
</listitem>
......@@ -656,7 +656,7 @@ be backed up when the respective <varname>postgis</varname> or <varname>postgis_
As of PostGIS 2.0.1, only srid records not packaged with PostGIS are backed up when the database is backed up so don't go around changing srids we package and expect your changes to be there. Put in a ticket if you find an issue. The structures of extension tables are never backed up since they are created with <code>CREATE EXTENSION</code>
and assumed to be the same for a given version of an extension. These behaviors are built into the current PostgreSQL extension model, so nothing we can do about it.</para></warning>
<para>If you installed &last_release_version;, without using our wonderful extension system, you can change it to be extension based by first upgrading to the latest micro version running the upgrade scripts: <filename>postgis_upgrade_20_minor.sql</filename>,<filename>raster_upgrade_20_minor.sql</filename>,<filename>topology_upgrade_20_minor.sql</filename>.</para>
<para>If you installed &last_release_version;, without using our wonderful extension system, you can change it to be extension based by first upgrading to the latest micro version running the upgrade scripts: <filename>postgis_upgrade_21_minor.sql</filename>,<filename>raster_upgrade_21_minor.sql</filename>,<filename>topology_upgrade_21_minor.sql</filename>.</para>
<para>If you installed postgis without raster support, you'll need to install raster support first (using the full <filename>rtpostgis.sql</filename></para>
<para>Then you can run the below commands to package the functions in their respective extension.</para>
<programlisting>CREATE EXTENSION postgis FROM unpackaged;
......@@ -1193,7 +1193,7 @@ Run tests: 90</programlisting>
<para>If you are on Windows and you don't have tar installed, you can use <ulink url="http://www.7-zip.org/">http://www.7-zip.org/</ulink> to unzip the PostGIS tarball.</para>
<sect2 id="install_tiger_geocoder_extension">
<title>Tiger Geocoder Enabling your PostGIS database: Using Extension</title>
<para>If you are using PostgreSQL 9.1+ and PostGIS 2.1.0, you can take advantage of the new extension model for installing tiger geocoder. To do so:</para>
<para>If you are using PostgreSQL 9.1+ and PostGIS 2.1.0+, you can take advantage of the new extension model for installing tiger geocoder. To do so:</para>
<orderedlist>
<listitem><para>First get binaries for PostGIS 2.1.0 or compile and install as usual. This should install the necessary extension files as well for tiger geocoder.</para></listitem>
<listitem><para>Connect to your database via psql or pgAdmin or some other tool and run the following SQL commands. Note that if you are installing in a database that already has postgis, you don't need to do the first step. If you have <varname>fuzzystrmatch</varname> extension already installed, you don't need to do the second step either.</para>
......@@ -1238,8 +1238,12 @@ SELECT 'debbie', declare_sect, pgbin, wget, unzip_command, psql, path_sep,
<para>One of the many complaints of folks is the address normalizer function <xref linkend="Normalize_Address" /> function that normalizes an address for prepping before geocoding. The normalizer is far from perfect and trying to patch its imperfectness takes a vast amount of resources. As such we have integrated with another
project that has a much better address standardizer engine. This is currently a separate project, which is a subproject of PAGC. The source code for this PostgreSQL standardizer extension can be downloaded from <ulink url="http://sourceforge.net/p/pagc/code/360/tree/branches/sew-refactor/postgresql">PAGC PostgreSQL Address Standardizer</ulink>. To use this new normalizer, you compile the pagc extension and install as an extension in your database.</para>
<para>The PAGC project and standardizer portion in particular, relies on PCRE which is usually already installed on most Nix systems,
but you can download the latest at: <ulink url="http://www.pcre.org">http://www.pcre.org</ulink> </para>
but you can download the latest at: <ulink url="http://www.pcre.org">http://www.pcre.org</ulink>. It also requires Perl with the <code>Regexp::Assemble</code> installed </para>
<para>For Windows users, the PostGIS 2.1+ bundle will come packaged with the address_standardizer already so no need to compile and can move straight to <code>CREATE EXTENSION</code> step.</para>
<para>Installing Regex::Assemble</para>
<programlisting>cpan Regexp::Assemble</programlisting>
<para>or if you are on Ubuntu / Debian you might need to do</para>
<programlisting>sudo perl -MCPAN -e "install Regexp::Assemble"</programlisting>
<para>Compiling</para>
<programlisting>svn co svn://svn.code.sf.net/p/pagc/code/branches/sew-refactor/postgresql address_standardizer
cd address_standardizer
......@@ -1415,11 +1419,11 @@ pretty_address
<programlisting>can't drop ... because postgis extension depends on it</programlisting>
<para>
After compiling you should find several <filename>postgis_upgrade*.sql</filename> files. Install the one
for your version of PostGIS. For example <filename>postgis_upgrade_13_to_15.sql</filename> should be used if you are upgrading
from PostGIS 1.3 to 1.5. If you are moving from PostGIS 1.* to PostGIS 2.* or from PostGIS 2.* prior to r7409, you need to do a HARD UPGRADE.
for your version of PostGIS. For example <filename>postgis_upgrade_20_to_21.sql</filename> should be used if you are upgrading
from PostGIS 2.0 to 2.1. If you are moving from PostGIS 1.* to PostGIS 2.* or from PostGIS 2.* prior to r7409, you need to do a HARD UPGRADE.
</para>
<programlisting>psql -f postgis_upgrade_20_minor.sql -d your_spatial_database</programlisting>
<programlisting>psql -f postgis_upgrade_21_minor.sql -d your_spatial_database</programlisting>
<para>
The same procedure applies to raster and
......@@ -1429,8 +1433,8 @@ pretty_address
If you need them:
</para>
<programlisting>psql -f rtpostgis_upgrade_20_minor.sql -d your_spatial_database</programlisting>
<programlisting>psql -f topology_upgrade_20_minor.sql -d your_spatial_database</programlisting>
<programlisting>psql -f rtpostgis_upgrade_21_minor.sql -d your_spatial_database</programlisting>
<programlisting>psql -f topology_upgrade_21_minor.sql -d your_spatial_database</programlisting>
<note>
<para>
......
......@@ -3,16 +3,16 @@
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!-- This value is automatically generated by the Makefile -->
<!ENTITY last_release_version "@@LAST_RELEASE_VERSION@@">
<!ENTITY last_release_version "2.1.1">
<!ENTITY last_minor_version "2.1">
<!-- ONCE Tagged, this need to change to http://download.osgeo.org/postgis/source/postgis-@@LAST_RELEASE_VERSION@@.tar.gz -->
<!-- In dev should be, this need to change to http://postgis.net/stuff/postgis-@@LAST_RELEASE_VERSION@@.tar.gz -->
<!ENTITY postgis_download_url "http://download.osgeo.org/postgis/source/postgis-@@LAST_RELEASE_VERSION@@.tar.gz">
<!ENTITY postgis_download_url "http://download.osgeo.org/postgis/source/postgis-2.1.1.tar.gz">
<!-- Change these values to update the version numbers referenced within the documentation -->
<!ENTITY last_proj_release_version "4.8.0">
<!ENTITY last_geos_release_version "3.4.0">
<!ENTITY last_geos_release_version "3.4.2">
<!ENTITY min_postgres_version "9.0">
<!ENTITY introduction SYSTEM "introduction.xml">
......
......@@ -3608,9 +3608,15 @@ WHERE rid=2;
ST_PixelAsPolygons returns one polygon geometry for every pixel. This is different than ST_DumpAsPolygons where each geometry represents one or more pixels with the same pixel value.
</para>
</note>
<note>
<para>
When exclude_nodata_value = TRUE, only those pixels whose values are not NODATA are returned as polygons.
</para>
</note>
<para>Availability: 2.0.0</para>
<para>Enhanced: 2.1.0 exclude_nodata_value optional argument was added.</para>
<para>Changed: 2.1.1 Changed behavior of exclude_nodata_value.</para>
</refsection>
<refsection>
......@@ -3721,7 +3727,13 @@ SELECT ST_AsText(ST_PixelAsPoint(rast, 1, 1)) FROM dummy_rast WHERE rid = 1;
<para>
Returns a point geometry for each pixel of a raster band along with the value, the X and the Y raster coordinates of each pixel. The coordinates of the point geometry are of the pixel's upper-left corner.
</para>
<note>
<para>
When exclude_nodata_value = TRUE, only those pixels whose values are not NODATA are returned as points.
</para>
</note>
<para>Availability: 2.1.0</para>
<para>Changed: 2.1.1 Changed behavior of exclude_nodata_value.</para>
</refsection>
<refsection>
......@@ -3845,7 +3857,13 @@ SELECT ST_AsText(ST_PixelAsCentroid(rast, 1, 1)) FROM dummy_rast WHERE rid = 1;
<para>
Returns the centroid (point geometry) for each pixel of a raster band along with the value, the X and the Y raster coordinates of each pixel. The point geometry is the centroid of the area represented by a pixel.
</para>
<note>
<para>
When exclude_nodata_value = TRUE, only those pixels whose values are not NODATA are returned as points.
</para>
</note>
<para>Availability: 2.1.0</para>
<para>Changed: 2.1.1 Changed behavior of exclude_nodata_value.</para>
</refsection>
<refsection>
......
......@@ -2,6 +2,33 @@
<appendix id="release_notes">
<title>Appendix</title>
<subtitle>Release Notes</subtitle>
<sect1>
<title>Release 2.1.1</title>
<para>Release date: 2013/11/06</para>
<para>This is a bug fix release, addressing issues that have been filed since the 2.1.0 release.</para>
<simplesect>
<title>Important Changes</title>
<para>#2514, Change raster license from GPL v3+ to v2+, allowing distribution of PostGIS Extension as GPLv2.</para>
</simplesect>
<simplesect>
<title>Bug Fixes</title>
<para>#2396, Make regression tests more endian-agnostic</para>
<para>#2434, Fix ST_Intersection(geog,geog) regression in rare cases</para>
<para>#2454, Fix behavior of ST_PixelAsXXX functions regarding exclude_nodata_value parameter</para>
<para>#2489, Fix upgrades from 2.0 leaving stale function signatures</para>
<para>#2525, Fix handling of SRID in nested collections</para>
<para>#2449, Fix potential infinite loop in index building</para>
<para>#2493, Fix behavior of ST_DumpValues when passed an empty raster</para>
<para>#2502, Fix postgis_topology_scripts_installed() install schema</para>
<para>#2504, Fix segfault on bogus pgsql2shp call </para>
<para>#2512, Support for foreign tables and materialized views in raster_columns and raster_overviews</para>
</simplesect>
<simplesect>
<title>Enhancements</title>
<para>#2478, support for tiger 2013</para>
<para>#2463, support for exact length calculations on arc geometries</para>
</simplesect>
</sect1>
<sect1>
<title>Release 2.1.0</title>
<para>Release date: 2013/08/17</para>
......
COMMENT ON FUNCTION Drop_Indexes_Generate_Script(text ) IS 'args: param_schema=tiger_data - Generates a script that drops all non-primary key and non-unique indexes on tiger schema and user specified schema. Defaults schema to tiger_data if no schema is specified.';
COMMENT ON FUNCTION Drop_State_Tables_Generate_Script(text , text ) IS 'args: param_state, param_schema=tiger_data - Generates a script that drops all tables in the specified schema that start with county_all, state_all or stae code followed by county or state.';
COMMENT ON FUNCTION Drop_Nation_Tables_Generate_Script(text ) IS 'args: param_schema=tiger_data - Generates a script that drops all tables in the specified schema that start with county_all, state_all or stae code followed by county or state.';
COMMENT ON FUNCTION Drop_State_Tables_Generate_Script(text , text ) IS 'args: param_state, param_schema=tiger_data - Generates a script that drops all tables in the specified schema that are prefixed with the state abbreviation. Defaults schema to tiger_data if no schema is specified.';
......
......@@ -751,7 +751,7 @@ SELECT AddGeometryColumn( 'roads', 'roads_geom', 0, 'GEOMETRY', 3 );</programlis
<para>The AddGeometryColumn() approach creates a geometry column and also registers the new
column in the geometry_columns table. If your software utilizes geometry_columns, then
any geometry columns you need to query by must be registered in this view.
Starting with PoastGIS 2.0, geometry_columns is no longer editable and all geometry columns are autoregistered.</para>
Starting with PostGIS 2.0, geometry_columns is no longer editable and all geometry columns are autoregistered.</para>
<para>However they may be registered as a generic geometry column if the column was not defined as a specific type during creation.</para>
<para>Two of the cases
......
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- ********************************************************************
$Id: postgis_aggs_mm.xml.xsl 11716 2013-08-02 01:30:11Z dustymugs $
$Id: postgis_aggs_mm.xml.xsl 11972 2013-09-23 18:25:33Z robe $
********************************************************************
Copyright 2010, Regina Obe
License: BSD
......@@ -459,7 +459,7 @@
<note><para>More Topology performance Improvements. Please refer to <xref linkend="Topology" /> for more details.</para></note>
<note><para>Bug fixes (particularly with handling of out-of-band rasters), many new functions (often shortening code you have to write to accomplish a common task) and massive speed improvements to raster functionality. Refer to <xref linkend="RT_reference" /> for more details. </para></note>
<note><para>Tiger Geocoder upgraded to work with TIGER 2012 census data. <varname>geocode_settings</varname> added for debugging and tweaking rating preferences, loader made less greedy, now only downloads tables to be loaded.
<note><para>Tiger Geocoder upgraded to work with TIGER 2012 census data in 2.1.0 and TIGER 2013 in 2.1.1. <varname>geocode_settings</varname> added for debugging and tweaking rating preferences, loader made less greedy, now only downloads tables to be loaded.
Please refer to <xref linkend="Tiger_Geocoder" /> for more details.</para></note>
<note><para>Raster bands can only reference the first 256 bands of out-db rasters.</para></note>
......
#############################################################################
#
# Master makefile used to build extensions
# Copyright (C) 2012 Regina Obe and Leo Hsu <lr@pcorp.us>
# Copyright (C) 2012 Sandro Santilli <strk@keybit.net>
#
# This is free software; you can redistribute and/or modify it under
# the terms of the GNU General Public Licence. See the COPYING file.
#
#############################################################################
SUBDIRS = postgis
SUBDIRS += postgis_tiger_geocoder
ifeq (topology,topology)
SUBDIRS += postgis_topology
endif
all clean distclean install uninstall:
for DIR in $(SUBDIRS); do \
echo "---- Making $@ in $${DIR}"; \
$(MAKE) -C "$${DIR}" $@; \
done
distclean: distclean-local
distclean-local:
rm -f Makefile
check:
@echo "Nothing to check"
include ../upgradeable_versions.mk
EXTENSION = postgis
EXTVERSION = 2.1.0
MINORVERSION = 2.1
GREP = /bin/grep
MICRO_NUMBER = $(shell echo $(EXTVERSION) | sed "s/[0-9]\.[0-9]\.\([0-9]*\)[a-zA-Z]*[0-9]*/\1/")
PREREL_NUMBER = $(shell echo $(EXTVERSION) | \
sed "s/[0-9]\.[0-9]\.\(.*\)/\1/" | \
$(GREP) "[a-zA-Z]" | \
sed "s/[0-9][a-zA-Z]\([0-9]*\)[a-zA-Z]*/\1/")
MICRO_PREV = $(shell if test "$(MICRO_NUMBER)x" != "x"; then expr $(MICRO_NUMBER) - 1; fi)
PREREL_PREV = $(shell if test "$(PREREL_NUMBER)x" != "x"; then expr $(PREREL_NUMBER) - 1; fi)
PREREL_PREFIX = $(shell echo $(EXTVERSION) | \
sed "s/[0-9]\.[0-9]\.\(.*\)/\1/" | \
$(GREP) "[a-zA-Z]" | \
sed "s/\([0-9][a-zA-Z]*\)[0-9]*/\1/")
DATA = $(filter-out $(wildcard sql/*--*.sql),$(wildcard sql/*.sql))
#DOCS = $(wildcard ../../doc/html/*.html)
PG_CONFIG = /var/lib/jenkins/workspace/pg/rel/pg9.2w64/bin/pg_config
PG91 = $(shell $(PG_CONFIG) --version | $(GREP) -qE " 8\.| 9\.0" && echo no || echo yes)
SQL_BITS = $(wildcard sql_bits/*.sql)
EXTRA_CLEAN += ${SQL_BITS} sql/*.sql
ifeq ($(PG91),yes)
sql/$(EXTENSION).sql: sql_bits/postgis.sql sql_bits/postgis_comments.sql sql_bits/rtpostgis.sql sql_bits/mark_editable_objects.sql.in sql_bits/raster_comments.sql sql_bits/spatial_ref_sys.sql
mkdir -p sql
cat $^ > $@
all: sql/$(EXTENSION)--$(EXTVERSION).sql sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql sql/$(EXTENSION)--$(EXTVERSION)--$(EXTVERSION)next.sql sql/$(EXTENSION)--$(EXTVERSION)next--$(EXTVERSION).sql sql_minor_upgrade
sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
mkdir -p sql
cp $< $@
sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql: sql_bits/postgis--unpackaged.sql.in
mkdir -p sql
cp $< $@
#this is a cludge to allow upgrading from same SVN to same SVN
sql/$(EXTENSION)--$(EXTVERSION)--$(EXTVERSION)next.sql: sql_bits/postgis_raster_upgrade_minor.sql
cp $< $@
sql/$(EXTENSION)--$(EXTVERSION)next--$(EXTVERSION).sql: sql_bits/postgis_raster_upgrade_minor.sql
cp $< $@
#strip BEGIN/COMMIT since these are not allowed in extensions
sql_bits/spatial_ref_sys.sql: ../../spatial_ref_sys.sql
sed -e 's/BEGIN;//g' -e 's/COMMIT;//g' $< > $@
#strip BEGIN/COMMIT since these are not allowed in extensions
sql_bits/postgis.sql: ../../postgis/postgis.sql
sed -e 's/BEGIN;//g' -e 's/COMMIT;//g' $< > $@
../../doc/postgis_comments.sql:
$(MAKE) -C ../../doc comments
sql_bits/postgis_comments.sql: ../../doc/postgis_comments.sql
cp $< $@
#strip BEGIN/COMMIT since these are not allowed in extensions
sql_bits/rtpostgis.sql: ../../raster/rt_pg/rtpostgis.sql
sed -e 's/BEGIN;//g' -e 's/COMMIT;//g' $< > $@
# we need to also drop this temporary function from the extension
# for casts that are being dropped we need to drop them
# from extension only if they are in the existension so we use our postgis_extension_drop..
# so that it will silently fail if cast is not in extension
sql_bits/rtpostgis_upgrade_20_21.sql: ../../raster/rt_pg/rtpostgis_upgrade_20_21.sql
sed -e 's/BEGIN;//g' -e 's/COMMIT;//g' \
-e 's/DROP FUNCTION _rename_raster_tables();/ALTER EXTENSION ${EXTENSION} DROP FUNCTION _rename_raster_tables();DROP FUNCTION _rename_raster_tables();/g' \
-e 's/DROP FUNCTION _drop_st_samealignment();/ALTER EXTENSION ${EXTENSION} DROP FUNCTION _drop_st_samealignment();DROP FUNCTION _drop_st_samealignment();/g' \
<