postgis: Initial commit
This commit is contained in:
parent
d1b34d6959
commit
6fb49fab7c
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/lib/rpm/perl.req $* | grep -v 'perl(Pg'
|
|
@ -0,0 +1,13 @@
|
|||
#! /bin/sh
|
||||
|
||||
rm sources .gitignore
|
||||
set -e
|
||||
spectool -S *.spec | cut -d' ' -f2 \
|
||||
| grep -E -e 'postgis-.*\.tar\.*' -e 'postgis.*\.pdf' | sort | \
|
||||
while read line
|
||||
do
|
||||
base=`basename "$line"`
|
||||
echo " * handling $base"
|
||||
sha512sum --tag "$base" >> sources
|
||||
echo "/$base" >> .gitignore
|
||||
done
|
|
@ -0,0 +1,398 @@
|
|||
%{!?javabuild:%global javabuild 0}
|
||||
%{!?utils:%global utils 1}
|
||||
%{!?gcj_support:%global gcj_support 0}
|
||||
%{!?upgrade:%global upgrade 0}
|
||||
%{!?runselftest:%global runselftest 1}
|
||||
|
||||
# Re-enable upgrade packages on next major version bump!
|
||||
%global majorversion 3.2
|
||||
%global soversion 3
|
||||
%global prevmajorversion 2.5
|
||||
%global prevversion %{prevmajorversion}.5
|
||||
%global so_files postgis postgis_topology rtpostgis address_standardizer
|
||||
%global configure_opts --disable-rpath --enable-raster
|
||||
|
||||
%global __provides_exclude_from %{_libdir}/pgsql
|
||||
|
||||
Name: postgis
|
||||
Version: %majorversion.0
|
||||
Release: 1%{?commit:.git%shortcommit}%{?dist}
|
||||
Summary: Geographic Information Systems Extensions to PostgreSQL
|
||||
License: GPLv2+
|
||||
|
||||
URL: http://www.postgis.net
|
||||
Source0: http://download.osgeo.org/%{name}/source/%{name}-%{version}.tar.gz
|
||||
Source2: http://download.osgeo.org/%{name}/docs/%{name}-%{version}.pdf
|
||||
Source3: http://download.osgeo.org/%{name}/source/%{name}-%{prevversion}.tar.gz
|
||||
|
||||
# From debian
|
||||
# This should increase chances of tests passing even on busy or slow systems.
|
||||
Patch0: relax-test-timing-constraints.patch
|
||||
|
||||
%ifnarch armv7hl
|
||||
BuildRequires: SFCGAL-devel
|
||||
%endif
|
||||
BuildRequires: make autoconf automake byacc
|
||||
BuildRequires: clang desktop-file-utils docbook-dtds
|
||||
BuildRequires: flex gcc-c++ gdal-devel >= 3.4.0
|
||||
BuildRequires: geos-devel >= 3.10.1 ggtk2-devel
|
||||
BuildRequires: json-c-devel libtool libxml2-devel
|
||||
BuildRequires: libxslt llvm pcre-devel
|
||||
BuildRequires: perl-generators postgresql-server-devel
|
||||
BuildRequires: proj-devel >= 8.2.0 protobuf-c-devel
|
||||
%if %upgrade
|
||||
BuildRequires: postgresql-upgrade-devel
|
||||
%endif
|
||||
%if %runselftest
|
||||
BuildRequires: postgresql-test-rpm-macros
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
PostGIS adds support for geographic objects to the PostgreSQL object-relational
|
||||
database. In effect, PostGIS "spatially enables" the PostgreSQL server,
|
||||
allowing it to be used as a backend spatial database for geographic information
|
||||
systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS
|
||||
follows the OpenGIS "Simple Features Specification for SQL" and has been
|
||||
certified as compliant with the "Types and Functions" profile.
|
||||
|
||||
|
||||
%package llvmjit
|
||||
Summary: Just-in-time compilation support for PostGIS
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description llvmjit
|
||||
Just-in-time compilation support for PostGIS.
|
||||
|
||||
%package docs
|
||||
Summary: Extra documentation for PostGIS
|
||||
|
||||
%description docs
|
||||
The postgis-docs package includes PDF documentation of PostGIS.
|
||||
|
||||
|
||||
%if %javabuild
|
||||
%package jdbc
|
||||
Summary: The JDBC driver for PostGIS
|
||||
License: LGPLv2+
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: postgresql-jdbc
|
||||
BuildRequires: ant >= 0:1.6.2 java-devel
|
||||
BuildRequires: junit >= 0:3.7 postgresql-jdbc
|
||||
|
||||
%if %{gcj_support}
|
||||
BuildRequires: gcc-java java-1.5.0-gcj-devel
|
||||
Requires(post): %{_bindir}/rebuild-gcj-db
|
||||
Requires(postun): %{_bindir}/rebuild-gcj-db
|
||||
%endif
|
||||
|
||||
%description jdbc
|
||||
The postgis-jdbc package provides the essential jdbc driver for PostGIS.
|
||||
%endif
|
||||
|
||||
|
||||
%if %utils
|
||||
%package utils
|
||||
Summary: The utils for PostGIS
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: perl-DBD-Pg
|
||||
|
||||
%description utils
|
||||
The postgis-utils package provides the utilities for PostGIS.
|
||||
%endif
|
||||
|
||||
|
||||
%if %upgrade
|
||||
%package upgrade
|
||||
Summary: Support for upgrading Postgis
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: postgresql-upgrade
|
||||
Provides: bundled(postgis) = %prevversion
|
||||
|
||||
%description upgrade
|
||||
The postgis-upgrade package contains the previous version of Postgis as well as
|
||||
the current version of Postgis built against the previous version of PostgreSQL
|
||||
necessary for correct dump of schema from previous version of PostgreSQL.
|
||||
%endif
|
||||
|
||||
%package gui
|
||||
Summary: The shp2pgsql-gui utility for PostGIS
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description gui
|
||||
The gui package provides shp2pgsql-gui for PostGIS.
|
||||
|
||||
%package client
|
||||
Summary: The CLI clients for PostGIS
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description client
|
||||
The client package provides shp2pgsql, raster2pgsql and pgsql2shp for PostGIS.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version} -a 3
|
||||
# For patch1
|
||||
./autogen.sh
|
||||
|
||||
%if %upgrade
|
||||
# postgis-upgrade
|
||||
(
|
||||
cd %{name}-%{prevversion}
|
||||
./autogen.sh
|
||||
)
|
||||
tar xf %{SOURCE0}
|
||||
(
|
||||
cd %{name}-%{version}
|
||||
%patch1 -p1
|
||||
./autogen.sh
|
||||
)
|
||||
|
||||
%endif
|
||||
cp -p %{SOURCE2} .
|
||||
|
||||
|
||||
%build
|
||||
%ifnarch armv7hl
|
||||
%configure %configure_opts --with-gui --with-pgconfig=%{_bindir}/pg_server_config --with-sfcgal
|
||||
%else
|
||||
%configure %configure_opts --with-gui --with-pgconfig=%{_bindir}/pg_server_config
|
||||
%endif
|
||||
sed -i 's| -fstack-clash-protection | |' postgis/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' raster/rt_pg/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' topology/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
%make_build
|
||||
|
||||
%if %javabuild
|
||||
export BUILDXML_DIR=%{_builddir}/%{name}-%{version}/java/jdbc
|
||||
JDBC_VERSION_RPM=`rpm -ql postgresql-jdbc| grep 'jdbc2.jar$'|awk -F '/' '{print $5}'`
|
||||
sed 's/postgresql.jar/'${JDBC_VERSION_RPM}'/g' $BUILDXML_DIR/build.xml > $BUILDXML_DIR/build.xml.new
|
||||
mv -f $BUILDXML_DIR/build.xml.new $BUILDXML_DIR/build.xml
|
||||
pushd java/jdbc
|
||||
ant
|
||||
popd
|
||||
%endif
|
||||
|
||||
%if %utils
|
||||
%make_build -C utils
|
||||
%endif
|
||||
|
||||
%if %upgrade
|
||||
(
|
||||
# TODO: report that out-of-tree (VPATH) build is broken
|
||||
cd %{name}-%{version}
|
||||
|
||||
# Build current Postgis version against the previous PostgreSQL version. We need only the so names.
|
||||
# We intentionally don't use %%configure here since there is too many
|
||||
# pre-defined directories, and not everything from postgis-%%prevversion
|
||||
# directory respects the `pg_config` output (liblwgeom especially).
|
||||
./configure %configure_opts \
|
||||
--with-pgconfig=%postgresql_upgrade_prefix/bin/pg_config \
|
||||
--libdir=%postgresql_upgrade_prefix/lib \
|
||||
--includedir=%postgresql_upgrade_prefix/include
|
||||
sed -i 's| -fstack-clash-protection | |' postgis/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' raster/rt_pg/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' topology/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile
|
||||
%make_build
|
||||
)
|
||||
|
||||
(
|
||||
# TODO: report that out-of-tree (VPATH) build is broken
|
||||
cd %{name}-%{prevversion}
|
||||
|
||||
# Build previous Postgis version against the current PostgreSQL version. We need only the so names.
|
||||
%configure %configure_opts
|
||||
sed -i 's| -fstack-clash-protection | |' postgis/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' raster/rt_pg/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' topology/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile
|
||||
%make_build
|
||||
mkdir ../compat-build
|
||||
for so in %so_files; do
|
||||
find -name $so.so -exec cp {} ../compat-build/$so-%{prevmajorversion}.so \;
|
||||
find -name $so-%{prevmajorversion}.so -exec cp -t ../compat-build/ {} +
|
||||
done
|
||||
|
||||
# Full build of previous Postgis version against previous PostgreSQL version
|
||||
# We intentionally don't use %%configure here since there is too many
|
||||
# pre-defined directories, and not everything from postgis-%%prevversion
|
||||
# directory respects the `pg_config` output (liblwgeom especially).
|
||||
./configure %configure_opts \
|
||||
--with-pgconfig=%postgresql_upgrade_prefix/bin/pg_config \
|
||||
--libdir=%postgresql_upgrade_prefix/lib \
|
||||
--includedir=%postgresql_upgrade_prefix/include
|
||||
sed -i 's| -fstack-clash-protection | |' postgis/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' raster/rt_pg/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' topology/Makefile
|
||||
sed -i 's| -fstack-clash-protection | |' extensions/address_standardizer/Makefile
|
||||
%make_build
|
||||
)
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%make_install -C utils
|
||||
%make_install -C extensions
|
||||
|
||||
# move application metadata to correct location
|
||||
mv %{buildroot}/%{_datadir}/pgsql/applications %{buildroot}/%{_datadir}
|
||||
mv %{buildroot}/%{_datadir}/pgsql/icons %{buildroot}/%{_datadir}
|
||||
|
||||
%if %upgrade
|
||||
(cd %{name}-%{version} && %make_install)
|
||||
(cd %{name}-%{prevversion} && %make_install)
|
||||
|
||||
# drop unused stuff from upgrade-only installation
|
||||
/bin/rm -rf %buildroot%postgresql_upgrade_prefix/bin
|
||||
/bin/rm -rf %buildroot%postgresql_upgrade_prefix/lib/lib*
|
||||
|
||||
# Manually install compat-build binary.
|
||||
for so in %so_files; do
|
||||
%{__install} -m 644 compat-build/$so-%{prevmajorversion}.so %{buildroot}/%{_libdir}/pgsql
|
||||
done
|
||||
%endif
|
||||
|
||||
rm -f %{buildroot}%{_datadir}/*.sql
|
||||
|
||||
%if %javabuild
|
||||
install -d %{buildroot}%{_javadir}
|
||||
install -m 755 java/jdbc/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
%if %{gcj_support}
|
||||
aot-compile-rpm
|
||||
%endif
|
||||
strip %{buildroot}/%{_libdir}/gcj/%{name}/*.jar.so
|
||||
%endif
|
||||
|
||||
%if %utils
|
||||
install -d %{buildroot}%{_datadir}/%{name}
|
||||
install -m 755 utils/*.pl %{buildroot}%{_datadir}/%{name}
|
||||
%endif
|
||||
|
||||
find %buildroot \( -name '*.la' -or -name '*.a' \) -delete
|
||||
|
||||
|
||||
%check
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/shp2pgsql-gui.desktop
|
||||
%if %runselftest
|
||||
%postgresql_tests_run
|
||||
export PGIS_REG_TMPDIR=`mktemp -d`
|
||||
if ! LD_LIBRARY_PATH=%{buildroot}%_libdir make check %{_smp_mflags} ; then
|
||||
for file in $(find $PGIS_REG_TMPDIR -name '*_diff'); do
|
||||
echo "== $file =="
|
||||
cat "$file"
|
||||
done
|
||||
fi
|
||||
%endif
|
||||
|
||||
|
||||
%if %javabuild
|
||||
%if %gcj_support
|
||||
%post jdbc -p %{_bindir}/rebuild-gcj-db
|
||||
%postun jdbc -p %{_bindir}/rebuild-gcj-db
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc CREDITS NEWS TODO README.%{name} loader/README.* doc/%{name}.xml doc/ZMSgeoms.txt
|
||||
|
||||
%{_libdir}/pgsql/%{name}-%{soversion}.so
|
||||
%{_datadir}/pgsql/contrib/postgis-%{majorversion}/*.sql
|
||||
%{_datadir}/pgsql/extension/address_standardizer*.sql
|
||||
%{_datadir}/pgsql/extension/address_standardizer*.control
|
||||
%{_datadir}/pgsql/extension/postgis-*.sql
|
||||
%{_datadir}/pgsql/extension/postgis_raster*.sql
|
||||
%ifnarch armv7hl
|
||||
%{_datadir}/pgsql/extension/postgis_sfcgal*.sql
|
||||
%endif
|
||||
%{_datadir}/pgsql/extension/postgis_topology*.sql
|
||||
%{_datadir}/pgsql/extension/postgis.control
|
||||
%{_datadir}/pgsql/extension/postgis_raster.control
|
||||
%ifnarch armv7hl
|
||||
%{_datadir}/pgsql/extension/postgis_sfcgal.control
|
||||
%endif
|
||||
%{_datadir}/pgsql/extension/postgis_topology.control
|
||||
%{_datadir}/pgsql/extension/postgis_tiger_geocoder*.sql
|
||||
%{_datadir}/pgsql/extension/postgis_tiger_geocoder.control
|
||||
%{_datadir}/postgis/create_unpackaged.pl
|
||||
%{_datadir}/postgis/create_spatial_ref_sys_config_dump.pl
|
||||
%{_datadir}/postgis/repo_revision.pl
|
||||
%{_libdir}/pgsql/address_standardizer-%{soversion}.so
|
||||
%{_libdir}/pgsql/postgis_raster-%{soversion}.so
|
||||
%ifnarch armv7hl
|
||||
%{_libdir}/pgsql/postgis_sfcgal-%{soversion}.so
|
||||
%endif
|
||||
%{_libdir}/pgsql/postgis_topology-%{soversion}.so
|
||||
|
||||
%files client
|
||||
%{_bindir}/pgsql2shp
|
||||
%{_bindir}/raster2pgsql
|
||||
%{_bindir}/shp2pgsql
|
||||
|
||||
%files gui
|
||||
%{_bindir}/shp2pgsql-gui
|
||||
%{_datadir}/applications/shp2pgsql-gui.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/shp2pgsql-gui.png
|
||||
|
||||
|
||||
%files llvmjit
|
||||
%{_libdir}/pgsql/bitcode/address_standardizer-*
|
||||
%{_libdir}/pgsql/bitcode/postgis-*
|
||||
%{_libdir}/pgsql/bitcode/postgis_raster-*
|
||||
%ifnarch armv7hl
|
||||
%{_libdir}/pgsql/bitcode/postgis_sfcgal-*
|
||||
%endif
|
||||
%{_libdir}/pgsql/bitcode/postgis_topology-*
|
||||
|
||||
|
||||
%if %javabuild
|
||||
%files jdbc
|
||||
%license java/jdbc/COPYING_LGPL
|
||||
%doc java/jdbc/README
|
||||
%{_javadir}/%{name}.jar
|
||||
%if %{gcj_support}
|
||||
%dir %{_libdir}/gcj/%{name}
|
||||
%{_libdir}/gcj/%{name}/*.jar.so
|
||||
%{_libdir}/gcj/%{name}/*.jar.db
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%if %upgrade
|
||||
%files upgrade
|
||||
%postgresql_upgrade_prefix/*
|
||||
%_libdir/pgsql/*-%{prevmajorversion}.so
|
||||
%endif
|
||||
|
||||
|
||||
%if %utils
|
||||
%files utils
|
||||
%doc utils/README
|
||||
%dir %{_datadir}/%{name}/
|
||||
%doc %{_datadir}/doc/pgsql/extension/README.address_standardizer
|
||||
%{_datadir}/%{name}/test_estimation.pl
|
||||
%{_datadir}/%{name}/profile_intersects.pl
|
||||
%{_datadir}/%{name}/test_joinestimation.pl
|
||||
%{_datadir}/%{name}/create_extension_unpackage.pl
|
||||
%{_datadir}/%{name}/create_undef.pl
|
||||
%{_datadir}/%{name}/%{name}_proc_upgrade.pl
|
||||
%{_datadir}/%{name}/%{name}_restore.pl
|
||||
%{_datadir}/pgsql/contrib/postgis-%{majorversion}/postgis_restore.pl
|
||||
%{_datadir}/%{name}/read_scripts_version.pl
|
||||
%{_datadir}/%{name}/test_geography_estimation.pl
|
||||
%{_datadir}/%{name}/test_geography_joinestimation.pl
|
||||
%endif
|
||||
|
||||
|
||||
%files docs
|
||||
%doc postgis*.pdf
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Dec 21 2021 Devrim Gunduz <devrim@gunduz.org> - 3.2.0-1
|
||||
- Initial packaging for EPEL 9
|
|
@ -0,0 +1,65 @@
|
|||
diff -rupN --no-dereference postgis-3.2.0/regress/core/interrupt_buffer.sql postgis-3.2.0-new/regress/core/interrupt_buffer.sql
|
||||
--- postgis-3.2.0/regress/core/interrupt_buffer.sql 2021-12-18 03:45:48.000000000 +0100
|
||||
+++ postgis-3.2.0-new/regress/core/interrupt_buffer.sql 2021-12-18 09:45:03.182621306 +0100
|
||||
@@ -36,7 +36,7 @@ select ST_Buffer(g,100) from _inputs WHE
|
||||
--( select (st_dumppoints(st_buffer(st_makepoint(0,0),10000,100000))).geom g) foo;
|
||||
-- it may take some more to interrupt st_buffer, see
|
||||
-- https://travis-ci.org/postgis/postgis/builds/40211116#L2222-L2223
|
||||
-SELECT _timecheck('buffer', '200ms');
|
||||
+SELECT _timecheck('buffer', '750ms');
|
||||
|
||||
-- Not affected by old timeout
|
||||
SELECT '1', ST_NPoints(ST_Buffer('POINT(4 0)'::geometry, 2, 1));
|
||||
diff -rupN --no-dereference postgis-3.2.0/regress/core/interrupt_relate.sql postgis-3.2.0-new/regress/core/interrupt_relate.sql
|
||||
--- postgis-3.2.0/regress/core/interrupt_relate.sql 2021-12-18 03:45:48.000000000 +0100
|
||||
+++ postgis-3.2.0-new/regress/core/interrupt_relate.sql 2021-12-18 09:45:03.182621306 +0100
|
||||
@@ -34,29 +34,29 @@ UPDATE _time SET t = now(); -- reset tim
|
||||
SET statement_timeout TO 100;
|
||||
|
||||
select ST_Contains(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('contains', '200ms');
|
||||
+SELECT _timecheck('contains', '750ms');
|
||||
|
||||
select ST_Covers(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('covers', '200ms');
|
||||
+SELECT _timecheck('covers', '750ms');
|
||||
|
||||
select ST_CoveredBy(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('coveredby', '200ms');
|
||||
+SELECT _timecheck('coveredby', '750ms');
|
||||
|
||||
select ST_Crosses(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('crosses', '200ms');
|
||||
+SELECT _timecheck('crosses', '750ms');
|
||||
|
||||
-- NOTE: we're reversing one of the operands to avoid the
|
||||
-- short-circuit described in #3226
|
||||
select ST_Equals(g,st_reverse(g)) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('equals', '200ms');
|
||||
+SELECT _timecheck('equals', '750ms');
|
||||
|
||||
select ST_Intersects(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('intersects', '200ms');
|
||||
+SELECT _timecheck('intersects', '750ms');
|
||||
|
||||
select ST_Overlaps(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('overlaps', '200ms');
|
||||
+SELECT _timecheck('overlaps', '750ms');
|
||||
|
||||
select ST_Relate(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||
-SELECT _timecheck('relate', '200ms');
|
||||
+SELECT _timecheck('relate', '750ms');
|
||||
|
||||
DROP FUNCTION _timecheck(text, interval);
|
||||
diff -rupN --no-dereference postgis-3.2.0/regress/core/interrupt.sql postgis-3.2.0-new/regress/core/interrupt.sql
|
||||
--- postgis-3.2.0/regress/core/interrupt.sql 2021-12-18 03:45:48.000000000 +0100
|
||||
+++ postgis-3.2.0-new/regress/core/interrupt.sql 2021-12-18 09:45:03.182621306 +0100
|
||||
@@ -24,7 +24,7 @@ $$ LANGUAGE 'plpgsql' VOLATILE;
|
||||
SET statement_timeout TO 100;
|
||||
-- would run for many seconds if uninterruptible...
|
||||
SELECT ST_Segmentize(ST_MakeLine(ST_Point(4,39), ST_Point(1,41)), 1e-100);
|
||||
-SELECT _timecheck('segmentize', '250ms');
|
||||
+SELECT _timecheck('segmentize', '750ms');
|
||||
SET statement_timeout TO 0;
|
||||
-- Not affected by old timeout
|
||||
SELECT '1',ST_AsText(ST_Segmentize('LINESTRING(0 0,4 0)'::geometry, 2));
|
3
sources
3
sources
|
@ -0,0 +1,3 @@
|
|||
SHA512 (postgis-3.2.0.pdf) = 03717957ec178beff433b5684b6c12784535b62444e1139d25f311d7aaeb9baea8af9aa7b6ee1f0aeb4b99c36645455378126caf988d04fc66a14ec22de640e7
|
||||
SHA512 (postgis-3.2.0.tar.gz) = b49b2fbb88ec07981c0fd05400ad807e85553164023a4b47326c21f48b4e07827a183676c497ad6823dc3a6b97518e1d40906826b8a91739c96966d62858b2b5
|
||||
SHA512 (postgis-2.5.5.tar.gz) = 407c9ddf5b73aaa8d36ec606f974b86c16c9ed4aafbfd4a0b7f96cfc7a9f8a8fa38528cb4787bdd50de479416dbfb09934a85d189463cec549da66863060292e
|
Loading…
Reference in New Issue