Commit c0eda985 authored by Bas Couwenberg's avatar Bas Couwenberg

New upstream version 2.4.1+dfsg

parent 5e4d9c6a
......@@ -21,5 +21,5 @@ pipeline:
- service postgresql start
- make check RUNTESTFLAGS=-v
- make install
- utils/check_all_upgrades.sh \
- utils/check_all_upgrades.sh
`grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`
2017-10-17 18:23 Regina Obe <lr@pcorp.us>
* [r16001] doc/introduction.xml:
2017-10-17 16:53 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15997] NEWS, liblwgeom/cunit/cu_geodetic.c, liblwgeom/g_box.c:
Allocate enough space for all possible GBOX string outputs (Raúl
Marín Rodríguez)
References #3907
2017-10-17 14:36 Regina Obe <lr@pcorp.us>
* [r15995] authors.git, authors.svn, doc/introduction.xml: Add
Darafei Praliaskouski to authors lists and core developers list
and make up responsibilities for him.
2017-10-16 14:59 Regina Obe <lr@pcorp.us>
* [r15992] doc/using_postgis_dataman.xml: Fix xml parse error in
docs
References #3902 for PostGIS 2.4.1
2017-10-16 09:35 Regina Obe <lr@pcorp.us>
* [r15991] doc/extras_tigergeocoder.xml,
doc/using_postgis_dataman.xml: Backport geography changes to
PostGIS 2.4.1
Closes #3902
Changed Changed to Enhanced for tiger zcta
References #3815 for PostGIS 2.4.1
2017-10-15 17:53 Regina Obe <lr@pcorp.us>
* [r15987] NEWS, doc/extras_tigergeocoder.xml,
doc/installation.xml, doc/xsl/postgis_aggs_mm.xml.xsl,
extensions/postgis_tiger_geocoder/Makefile.in,
extras/tiger_geocoder/tiger_loader_2017.sql: Tiger 2017 and zcta
load support for PostGIS 2.4.1
Closes #3815
2017-10-11 14:05 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15965] NEWS, liblwgeom/lwgeom_geos.c: Fix rare missing boxes in
geometry subdivision
References #3886
2017-10-11 13:51 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15964] postgis/mvt.c: PgSQL 11 support for 2.4 branch
(DatumGetJsonbP macro)
Closes #3867
2017-10-10 22:45 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15960] NEWS, liblwgeom/lwin_wkb.c: Throw error on malformed WKB
input (2.4 branch)
Credit to OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2589
Credit to OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2590
Credit to OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2591
Credit to OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2592
(References #3895)
2017-10-10 18:04 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15955] NEWS, liblwgeom/lwout_encoded_polyline.c: Undefined
behaviour in pointarray_to_encoded_polyline (2.4 branch)
(References #3891)
2017-10-10 16:58 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15948] NEWS, liblwgeom/cunit/cu_varint.c, liblwgeom/varint.c,
liblwgeom/varint.h: Fix undefined behaviour in zigzag with
negative inputs (2.4 branch)
(References #3882)
2017-10-10 16:36 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15945] NEWS, liblwgeom/cunit/cu_measures.c,
liblwgeom/measures.c: lw_dist2d_pt_arc division by zero
(References #3874)
2017-10-09 18:54 Regina Obe <lr@pcorp.us>
* [r15939] doc/extras_tigergeocoder.xml: Update geocode batch
update example to use LATERAL now that PostgreSQL 9.3 is minimum
supported.
2017-10-06 13:31 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15923] NEWS, liblwgeom/g_serialized.c,
postgis/geography_btree.c: Performance improvements for b-tree
geometry sorts
References #3864
2017-10-06 13:21 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15919] NEWS, liblwgeom/lwalgorithm.c: geohash_point_as_int: Fix
undefined behaviour in shift operation
References #3875
2017-10-06 13:17 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15915] NEWS, liblwgeom/cunit/cu_libgeom.c,
liblwgeom/liblwgeom.h.in: Undefined behaviour in TYPMOD_GET_SRID
References #3880
2017-10-05 13:21 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15902] NEWS, liblwgeom/cunit/cu_geodetic.c,
liblwgeom/cunit/cu_libgeom.c, liblwgeom/liblwgeom_internal.h,
liblwgeom/lwalgorithm.c, liblwgeom/lwgeodetic.c,
liblwgeom/lwgeodetic.h, liblwgeom/lwspheroid.c: Combine multiple
signum definitions (2.4)
(References #3878)
2017-10-05 13:00 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15897] NEWS, liblwgeom/cunit/cu_measures.c,
liblwgeom/measures.c: division by zero in lw_dist2d_arc_arc
References #3879
2017-10-02 22:29 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15877] liblwgeom/g_serialized.c: Fix union issue (References
#3871)
2017-10-02 22:00 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15874] NEWS, liblwgeom/g_serialized.c: Use type-pun to avoid
memcpy in building morton key (References #3871)
2017-10-02 12:51 Paul Ramsey <pramsey@cleverelephant.ca>
* [r15872] NEWS, liblwgeom/lwlinearreferencing.c: Gracefully handle
short-measure issue (Closes #3845)
2017-10-02 06:17 Sandro Santilli <strk@kbt.io>
* [r15866] NEWS, liblwgeom/Makefile.in: Add -lm to liblwgeom link
line
References #3869 for 2.4 branch
2017-10-01 18:31 Sandro Santilli <strk@kbt.io>
* [r15865] NEWS, postgis/lwgeom_btree.c: Fix memory leaks in BTREE
operators
References #3864 for 2.4 branch
2017-09-30 17:45 Sandro Santilli <strk@kbt.io>
* [r15860] .drone.yml: Fix yaml syntax in drone config
2017-09-30 06:38 Regina Obe <lr@pcorp.us>
* [r15856] README.postgis, Version.config,
extensions/upgradeable_versions.mk: Bump version to 2.4.1dev, get
rid of alpha, beta too
2017-09-29 14:11 Regina Obe <lr@pcorp.us>
* [r15852] README.postgis: update README to reflect that 3.4 or
higher is required and 3.6+ is recommended.
Closes #3868 for PostGIS 2.4
2017-09-28 06:50 Regina Obe <lr@pcorp.us>
* [r15849] NEWS, Version.config, doc/release_notes.xml,
extensions/upgradeable_versions.mk: Soft launch PostGIS 2.4.0
2017-09-27 06:13 Regina Obe <lr@pcorp.us>
* [r15846] ChangeLog: Update change log with latest changes
2017-09-27 04:13 Regina Obe <lr@pcorp.us>
* [r15843] NEWS: it's already 9/27 update date.
PostGIS 2.4.1
2017/10/18
* Bug fixes *
- #3864, Fix memory leaks in BTREE operators
- #3869, Fix build with "gold" linker
- #3845, Gracefully handle short-measure issue
- #3871, Performance tweak for geometry cmp function
- #3879, Division by zero in some arc cases
- #3878, Single defn of signum in header
- #3880, Undefined behaviour in TYPMOD_GET_SRID
- #3875, Fix undefined behaviour in shift operation
- #3864, Performance improvements for b-tree geometry sorts
- #3874, lw_dist2d_pt_arc division by zero
- #3882, undefined behaviour in zigzag with negative inputs
- #3891, undefined behaviour in pointarray_to_encoded_polyline
- #3895, throw error on malformed WKB input
- #3886, fix rare missing boxes in geometry subdivision
- #3907, Allocate enough space for all possible GBOX string outputs (Raúl Marín Rodríguez)
* Enhancements *
- #3815, Tiger 2017 data support and option to load zcta5
PostGIS 2.4.0
2017/09/30
......
PostGIS - Geographic Information Systems Extensions to PostgreSQL
=================================================================
:Version: 2.4.0
:Date: 2017-09-30
:Version: 2.4.1
:Date: 2017-10-18
:Website: http://postgis.net
This distribution contains a module which implements GIS simple features, ties
......
......@@ -5,7 +5,7 @@
POSTGIS_MAJOR_VERSION=2
POSTGIS_MINOR_VERSION=4
POSTGIS_MICRO_VERSION=0
POSTGIS_MICRO_VERSION=1
# Liblwgeom interface versioning, reset to 0:0:0 (cur:age:rev)
# when changing POSTGIS_MINOR_VERSION
......
# generated automatically by aclocal 1.15 -*- Autoconf -*-
# generated automatically by aclocal 1.15.1 -*- Autoconf -*-
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
......@@ -12,9 +12,9 @@
# PARTICULAR PURPOSE.
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
dnl serial 11 (pkg-config-0.29)
dnl
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
# serial 12 (pkg-config-0.29.2)
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
dnl
......@@ -55,7 +55,7 @@ dnl
dnl See the "Since" comment for each macro you use to see what version
dnl of the macros you require.
m4_defun([PKG_PREREQ],
[m4_define([PKG_MACROS_VERSION], [0.29])
[m4_define([PKG_MACROS_VERSION], [0.29.2])
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
])dnl PKG_PREREQ
......@@ -156,7 +156,7 @@ AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
pkg_failed=no
AC_MSG_CHECKING([for $1])
AC_MSG_CHECKING([for $2])
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
......@@ -166,11 +166,11 @@ and $1[]_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.])
if test $pkg_failed = yes; then
AC_MSG_RESULT([no])
AC_MSG_RESULT([no])
_PKG_SHORT_ERRORS_SUPPORTED
if test $_pkg_short_errors_supported = yes; then
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
else
else
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
......@@ -187,7 +187,7 @@ installed software in a non-standard prefix.
_PKG_TEXT])[]dnl
])
elif test $pkg_failed = untried; then
AC_MSG_RESULT([no])
AC_MSG_RESULT([no])
m4_default([$4], [AC_MSG_FAILURE(
[The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
......@@ -288,7 +288,7 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
AS_VAR_IF([$1], [""], [$5], [$4])dnl
])dnl PKG_CHECK_VAR
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
# Copyright (C) 2003-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
......
......@@ -28,3 +28,4 @@ bergun = Baris Ergun <barisergun75@gmail.com>
woodbri = Stephen Woodbridge <woodbri@swoodbridge.com>
dbaston = Daniel Baston <dbaston@gmail.com>
bjornharrtell = Björn Harrtell <bjorn@wololo.org>
komzpa = Darafei Praliaskouski <me@komzpa.net>
......@@ -28,3 +28,4 @@ bergun:Baris Ergun <barisergun75@gmail.com>
woodbri:Stephen Woodbridge <woodbri@swoodbridge.com>
dbaston:Daniel Baston <dbaston@gmail.com>
bjornharrtell:Björn Harrtell <bjorn@wololo.org>
komzpa:Darafei Praliaskouski <me@komzpa.net>
This diff is collapsed.
This diff is collapsed.
......@@ -833,7 +833,6 @@ infodir
docdir
oldincludedir
includedir
runstatedir
localstatedir
sharedstatedir
sysconfdir
......@@ -948,7 +947,6 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
......@@ -1201,15 +1199,6 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-runstatedir | --runstatedir | --runstatedi | --runstated \
| --runstate | --runstat | --runsta | --runst | --runs \
| --run | --ru | --r)
ac_prev=runstatedir ;;
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
| --run=* | --ru=* | --r=*)
runstatedir=$ac_optarg ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
......@@ -1347,7 +1336,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
libdir localedir mandir runstatedir
libdir localedir mandir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
......@@ -1500,7 +1489,6 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
......@@ -4575,7 +4563,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
lt_cv_deplibs_check_method=pass_all
;;
netbsd* | netbsdelf*-gnu)
netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
else
......@@ -8310,9 +8298,6 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
openbsd* | bitrig*)
with_gnu_ld=no
;;
linux* | k*bsd*-gnu | gnu*)
link_all_deplibs=no
;;
esac
ld_shlibs=yes
......@@ -8567,7 +8552,7 @@ _LT_EOF
fi
;;
netbsd* | netbsdelf*-gnu)
netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
......@@ -9237,7 +9222,6 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
if test yes = "$lt_cv_irix_exported_symbol"; then
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
fi
link_all_deplibs=no
else
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
......@@ -9259,7 +9243,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; }
esac
;;
netbsd* | netbsdelf*-gnu)
netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
else
......@@ -10374,18 +10358,6 @@ fi
dynamic_linker='GNU/Linux ld.so'
;;
netbsdelf*-gnu)
version_type=linux
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
hardcode_into_libs=yes
dynamic_linker='NetBSD ld.elf_so'
;;
netbsd*)
version_type=sunos
need_lib_prefix=no
......@@ -16771,8 +16743,8 @@ $as_echo "no" >&6; }
fi
pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROTOBUFC" >&5
$as_echo_n "checking for PROTOBUFC... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libprotobuf-c >= 1.1.0" >&5
$as_echo_n "checking for libprotobuf-c >= 1.1.0... " >&6; }
if test -n "$PROTOBUFC_CFLAGS"; then
pkg_cv_PROTOBUFC_CFLAGS="$PROTOBUFC_CFLAGS"
......@@ -16812,7 +16784,7 @@ fi
if test $pkg_failed = yes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
......@@ -16830,7 +16802,7 @@ fi
HAVE_PROTOBUF=no
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
HAVE_PROTOBUF=no
else
......@@ -19483,6 +19455,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
cat <<_LT_EOF >> "$cfgfile"
#! $SHELL
# Generated automatically by $as_me ($PACKAGE) $VERSION
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
# Provide generalized library-building support services.
......
......@@ -280,10 +280,10 @@ DROP TABLE tiger_data.pa_zip_state_loc;
<programlisting>SELECT g.rating, ST_X(g.geomout) As lon, ST_Y(g.geomout) As lat,
(addy).address As stno, (addy).streetname As street,
(addy).streettypeabbrev As styp, (addy).location As city, (addy).stateabbrev As st,(addy).zip
FROM geocode('75 State Street, Boston MA 02109') As g;
rating | lon | lat | stno | street | styp | city | st | zip
--------+-------------------+------------------+------+--------+------+--------+----+-------
0 | -71.0556722990239 | 42.3589914927049 | 75 | State | St | Boston | MA | 02109
FROM geocode('75 State Street, Boston MA 02109', 1) As g;
rating | lon | lat | stno | street | styp | city | st | zip
--------+-------------------+----------------+------+--------+------+--------+----+-------
0 | -71.0557505845646 | 42.35897920691 | 75 | State | St | Boston | MA | 02109
</programlisting>
<para>Even if zip is not passed in the geocoder can guess (took about 122-150 ms)</para>
<programlisting>SELECT g.rating, ST_AsText(ST_SnapToGrid(g.geomout,0.00001)) As wktlonlat,
......@@ -298,10 +298,10 @@ DROP TABLE tiger_data.pa_zip_state_loc;
<programlisting>SELECT g.rating, ST_AsText(ST_SnapToGrid(g.geomout,0.00001)) As wktlonlat,
(addy).address As stno, (addy).streetname As street,
(addy).streettypeabbrev As styp, (addy).location As city, (addy).stateabbrev As st,(addy).zip
FROM geocode('31 - 37 Stewart Street, Boston, MA 02116') As g;
FROM geocode('31 - 37 Stewart Street, Boston, MA 02116',1) As g;
rating | wktlonlat | stno | street | styp | city | st | zip
--------+---------------------------+------+--------+------+--------+----+-------
70 | POINT(-71.06459 42.35113) | 31 | Stuart | St | Boston | MA | 02116
70 | POINT(-71.06466 42.35114) | 31 | Stuart | St | Boston | MA | 02116
</programlisting>
<para>Using to do a batch geocode of addresses. Easiest is to set <varname>max_results=1</varname>. Only process those not yet geocoded (have no rating).</para>
......@@ -324,14 +324,12 @@ VALUES ('529 Main Street, Boston MA, 02129'),
-- to ensure we don't regeocode a bad address
UPDATE addresses_to_geocode
SET (rating, new_address, lon, lat)
= ( COALESCE((g.geo).rating,-1), pprint_addy((g.geo).addy),
ST_X((g.geo).geomout)::numeric(8,5), ST_Y((g.geo).geomout)::numeric(8,5) )
FROM (SELECT addid
= ( COALESCE(g.rating,-1), pprint_addy(g.addy),
ST_X(g.geomout)::numeric(8,5), ST_Y(g.geomout)::numeric(8,5) )
FROM (SELECT addid, address
FROM addresses_to_geocode
WHERE rating IS NULL ORDER BY addid LIMIT 3) As a
LEFT JOIN (SELECT addid, (geocode(address,1)) As geo
FROM addresses_to_geocode As ag
WHERE ag.rating IS NULL ORDER BY addid LIMIT 3) As g ON a.addid = g.addid
LEFT JOIN LATERAL geocode(a.address,1) As g ON true
WHERE a.addid = addresses_to_geocode.addid;
result
......@@ -342,10 +340,10 @@ SELECT * FROM addresses_to_geocode WHERE rating is not null;
addid | address | lon | lat | new_address | rating
-------+----------------------------------------------+-----------+----------+-------------------------------------------+--------
1 | 529 Main Street, Boston MA, 02129 | -71.07181 | 42.38359 | 529 Main St, Boston, MA 02129 | 0
2 | 77 Massachusetts Avenue, Cambridge, MA 02139 | -71.09428 | 42.35988 | 77 Massachusetts Ave, Cambridge, MA 02139 | 0
3 | 25 Wizard of Oz, Walaford, KS 99912323 | | | | -1
</programlisting>
1 | 529 Main Street, Boston MA, 02129 | -71.07177 | 42.38357 | 529 Main St, Boston, MA 02129 | 0
2 | 77 Massachusetts Avenue, Cambridge, MA 02139 | -71.09396 | 42.35961 | 77 Massachusetts Ave, Cambridge, MA 02139 | 0
3 | 25 Wizard of Oz, Walaford, KS 99912323 | -97.92913 | 38.12717 | Willowbrook, KS 67502 | 108
(3 rows)</programlisting>
</refsection>
<refsection>
<title>Examples: Using Geometry filter</title>
......@@ -360,10 +358,13 @@ SELECT g.rating, ST_AsText(ST_SnapToGrid(g.geomout,0.00001)) As wktlonlat,
FROM place WHERE statefp = '25' AND name = 'Lynn')::geometry
) As g;
rating | wktlonlat | stno | street | styp | city | st | zip
--------+--------------------------+------+---------+------+------+----+-------
8 | POINT(-70.96796 42.4659) | 100 | Federal | St | Lynn | MA | 01905
Total query runtime: 245 ms.
rating | wktlonlat | stno | street | styp | city | st | zip
--------+---------------------------+------+---------+------+------+----+-------
7 | POINT(-70.96796 42.4659) | 100 | Federal | St | Lynn | MA | 01905
16 | POINT(-70.96786 42.46853) | NULL | Federal | St | Lynn | MA | 01905
(2 rows)
Time: 622.939 ms
</programlisting>
</refsection>
......@@ -374,6 +375,7 @@ Total query runtime: 245 ms.
</refsection>
</refentry>
<refentry id="Geocode_Intersection">
<refnamediv>
<refname>Geocode_Intersection</refname>
......@@ -838,8 +840,11 @@ rm -f ${TMPDIR}/*.*
<para><varname>loader_lookuptables</varname> each record defines a kind of table (state, county), whether to process records in it and how to load them in. Defines the steps to import data, stage data, add, removes columns, indexes, and constraints for each. Each table is prefixed with the state and inherits from a table in the tiger schema. e.g. creates <varname>tiger_data.ma_faces</varname> which inherits from <varname>tiger.faces</varname></para>
</listitem>
</orderedlist>
<para>Enhanced: 2.4.1 zip code 5 tabulation area (zcta5) load step was fixed and when enabled, zcta5 data is loaded as a single table called zcta5_all as part of the nation script load.</para>
<para>Availability: 2.1.0 </para>
<note><para>If you were running <varname>tiger_2010</varname> version and you want to reload as state with <varname>tiger_2011</varname>, you'll need to for the very first load generate and run drop statements <xref linkend="Drop_Nation_Tables_Generate_Script" /> before you run this script.</para></note>
<note><para>If you want zip code 5 tabulation area (zcta5) to be included in your nation script load, do the following:</para> <programlisting>UPDATE tiger.loader_lookuptables SET load = true WHERE table_name = 'zcta510';</programlisting></note>
<note><para>If you were running <varname>tiger_2010</varname> version and you want to reload as state with newer tiger data, you'll need to for the very first load generate and run drop statements <xref linkend="Drop_Nation_Tables_Generate_Script" /> before you run this script.</para></note>
</refsection>
......
......@@ -1547,9 +1547,9 @@ but you can download the latest at: <ulink url="http://www.pcre.org">http://www.
<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>
<para><programlisting>CREATE EXTENSION postgis;
CREATE EXTENSION fuzzystrmatch;
CREATE EXTENSION postgis_tiger_geocoder;
--this one is optional if you want to use the rules based standardizer (pagc_normalize_address)
CREATE EXTENSION address_standardizer;
CREATE EXTENSION postgis_tiger_geocoder;</programlisting></para>
CREATE EXTENSION address_standardizer;</programlisting></para>
<para>If you already have postgis_tiger_geocoder extension installed, and just want to update to the latest run:</para>
<programlisting>ALTER EXTENSION postgis UPDATE;
......@@ -1576,6 +1576,13 @@ SELECT 'debbie', declare_sect, pgbin, wget, unzip_command, psql, path_sep,
<para>If you don't edit this <varname>loader_platform</varname> table, it will just contain common case locations of items and you'll have to edit the generated script after the script is generated.</para>
</listitem>
<listitem><para>As of PostGIS 2.4.1 the Zip code-5 digit tabulation area <varname>zcta5</varname> load step was revised to load current zcta5 data and is part of the <xref linkend="Loader_Generate_Nation_Script" /> when enabled.
It is turned off by default because it takes quite a bit of time to load (20 to 60 minutes), takes up quite a bit of disk space, and is not used that often.</para>
<para>To enable it, do the following:</para>
<programlisting>UPDATE tiger.loader_lookuptables SET load = true WHERE table_name = 'zcta510';</programlisting>
<para>
If present the <xref linkend="Geocode" /> function can use it if a boundary filter is added to limit to just zips in that boundary.
The <xref linkend="Reverse_Geocode" /> function uses it if the returned address is missing a zip, which often happens with highway reverse geocoding.</para></listitem>
<listitem><para>Create a folder called <filename>gisdata</filename> on root of server or your local pc if you have a fast network connection to the server. This folder is
where the tiger files will be downloaded to and processed. If you are not happy with having the folder on the root of the server, or simply want to change to a different folder for staging, then edit the field <varname>staging_fold</varname> in the <varname>tiger.loader_variables</varname> table.</para></listitem>
<listitem><para>Create a folder called temp in the <filename>gisdata</filename> folder or whereever you designated the <varname>staging_fold</varname> to be. This will be
......
......@@ -30,8 +30,7 @@
<varlistentry>
<term>Mark Cave-Ayland</term>
<listitem>
<para>Coordinates bug fixing and maintenance effort, alignment of
PostGIS with PostgreSQL releases, spatial index selectivity and binding, loader/dumper, and Shapefile GUI Loader, integration of new
<para>Coordinates bug fixing and maintenance effort, spatial index selectivity and binding, loader/dumper, and Shapefile GUI Loader, integration of new
and new function enhancements.</para>
</listitem>
</varlistentry>
......@@ -39,7 +38,8 @@
<varlistentry>
<term>Regina Obe</term>
<listitem>
<para>Buildbot Maintenance, windows production and experimental builds, Documentation, general user support on PostGIS newsgroup,
<para>Buildbot Maintenance, windows production and experimental builds, Documentation, alignment of
PostGIS with PostgreSQL releases, general user support on PostGIS newsgroup,
X3D support, Tiger Geocoder Support, management functions, and
smoke testing new functionality or major code changes.</para>
</listitem>
......@@ -56,7 +56,8 @@
<term>Paul Ramsey (Chair)</term>
<listitem>
<para>Co-founder of PostGIS project. General bug fixing, geography support, geography and geometry index support (2D, 3D, nD index and anything spatial index), underlying geometry internal structures, PointCloud (in development), GEOS functionality integration and alignment with
GEOS releases, loader/dumper, and Shapefile GUI loader.</para>
GEOS releases, alignment of
PostGIS with PostgreSQL releases, loader/dumper, and Shapefile GUI loader.</para>
</listitem>
</varlistentry>
......@@ -64,7 +65,7 @@
<term>Sandro Santilli</term>
<listitem>
<para>Bug fixes and maintenance and integration of new GEOS functionality and alignment with GEOS releases, Topology support, and Raster framework and low level api functions.</para>
<para>Bug fixes and maintenance, git mirrors management, integration of new GEOS functionality and alignment with GEOS releases, Topology support, and Raster framework and low level api functions.</para>
</listitem>
</varlistentry>
......@@ -92,7 +93,7 @@
<term>Dan Baston</term>
<listitem>
<para>Geometry clustering function additions, other geometry algorithm enhancements, and general user support</para>
<para>Geometry clustering function additions, other geometry algorithm enhancements, GEOS enhancements and general user support</para>
</listitem>
</varlistentry>
......@@ -102,15 +103,15 @@
<para>Input output XML (KML,GML)/GeoJSON functions, 3D support and bug fixes.</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term>Björn Harrtell</term>
<listitem>
<para>MapBox Vector Tile and GeoBuf functions. Gogs testing.</para>
<para>MapBox Vector Tile and GeoBuf functions. Gogs testing and GitLab experimentation.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Mateusz Loskot</term>
......@@ -119,6 +120,15 @@
</listitem>
</varlistentry>
<varlistentry>
<term>Darafei Praliaskouski</term>
<listitem>
<para>Index improvements, bug fixing and geometry/geography function improvements, GitHub curator, and Travis bot maintenance.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Pierre Racine</term>
<listitem>
......@@ -170,7 +180,7 @@
<para>Ongoing maintenance and development of core functions. Enhanced curve support. Shapefile GUI loader.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>David Zwarg</term>
<listitem>
......
This diff is collapsed.
This diff is collapsed.
......@@ -522,6 +522,7 @@
<xsl:if test="//para[contains(text(),'Enhanced: 2.4')]">
<para>Functions enhanced in PostGIS 2.4</para>
<para>All aggregates now marked as parallel safe which should allow them to be used in plans that can employ parallelism.</para>
<para>PostGIS 2.4.1 postgis_tiger_geocoder set to load Tiger 2017 data. Can optionally load zip code 5-digit tabulation (zcta) as part of the <xref linkend="Loader_Generate_Nation_Script" />.</para>
<itemizedlist>
<!-- Pull out the purpose section for each ref entry and strip whitespace and put in a variable to be tagged unto each function comment -->
<xsl:for-each select='//refentry'>
......
#############################################################################
#
# Master Makefile used to build extensions
# Copyright (C) 2012 Regina Obe and Leo Hsu <lr@pcorp.us>
# Copyright (C) 2012 Sandro Santilli <strk@kbt.io>
#
# 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
ifeq (sfcgal,sfcgal)
SUBDIRS += postgis_sfcgal
endif
ifeq (address_standardizer,address_standardizer)
SUBDIRS += address_standardizer
endif
all clean distclean install uninstall installcheck:
for DIR in $(SUBDIRS); do \
echo "---- Making $@ in $${DIR}"; \
$(MAKE) -C "$${DIR}" $@ || exit 1; \
done
distclean: distclean-local
distclean-local:
rm -f Makefile
check:
@echo "Nothing to check"
......@@ -28,16 +28,16 @@ OBJS_test_main = \
POSTGIS_PGSQL_VERSION=96
# SQL preprocessor
SQLPP = /usr/bin/cpp -traditional-cpp -w -P
GREP=/bin/grep
PERL=/usr/bin/perl
EXTVERSION = 2.4.0
GREP=/usr/bin/grep
PERL=/opt/local/bin/perl
EXTVERSION = 2.4.1
MINORVERSION = 2.4
MODULE_big = address_standardizer-2.4
EXTENSION = address_standardizer
DATA = address_standardizer_data_us.control sql/$(EXTENSION).sql sql/$(EXTENSION)_data_us.sql
all: sql/address_standardizer.sql sql/address_standardizer--1.0--$(EXTVERSION).sql sql/address_standardizer--$(EXTVERSION).sql sql/address_standardizer--$(EXTVERSION)--$(EXTVERSION)next.sql sql/address_standardizer--$(EXTVERSION)next--$(EXTVERSION).sql \
sql/$(EXTENSION)_data_us.sql sql/address_standardizer--2.4.0.sql sql/$(EXTENSION)_data_us--2.4.0.sql sql/$(EXTENSION)_data_us--$(EXTVERSION)--$(EXTVERSION)next.sql \
sql/$(EXTENSION)_data_us.sql sql/address_standardizer--2.4.1.sql sql/$(EXTENSION)_data_us--2.4.1.sql sql/$(EXTENSION)_data_us--$(EXTVERSION)--$(EXTVERSION)next.sql \
sql/$(EXTENSION)_data_us--$(EXTVERSION)next--$(EXTVERSION).sql \