Commit graph

7269 commits

Author SHA1 Message Date
Sandro Santilli 615bdce18a Implement lwgeom_same for CURVEPOLYGON types (#1475)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8830 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:21:09 +00:00
Sandro Santilli fa2077921b Implement lwgeom_same for COMPOUNDCURVE (#1475)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8829 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:18:07 +00:00
Sandro Santilli 6e285b15a1 Implement lwgeom_same for circularstring (#1475)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8828 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:11:44 +00:00
Sandro Santilli 6b4c747328 A CURVEPOLY is also a collection. Fixes #1473.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8827 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 09:11:45 +00:00
Sandro Santilli 930da10769 Prevent lwcollection_construct from creating non-collection types
git-svn-id: http://svn.osgeo.org/postgis/trunk@8826 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 09:11:38 +00:00
Sandro Santilli 237ca95517 Use a CTE for queries involving largs WKB input.
Reduces parsing and execution time.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8825 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 08:25:08 +00:00
Sandro Santilli 74a1d2bf64 Comment out expensive DEBUG lines
git-svn-id: http://svn.osgeo.org/postgis/trunk@8824 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 08:25:00 +00:00
Sandro Santilli 8b3c81adcd Downgrade notice of face splitting to debug level
git-svn-id: http://svn.osgeo.org/postgis/trunk@8823 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 08:24:53 +00:00
Sandro Santilli d6845686e0 Wrap DEBUG output in ifdef POSTGIS_TOPOLOGY_DEBUG (#1469)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8822 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 20:52:08 +00:00
Sandro Santilli 75e35d741f Make AddTopoGeometryColumn less sequence-number-eager, regress-test
git-svn-id: http://svn.osgeo.org/postgis/trunk@8821 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 17:50:46 +00:00
Regina Obe 502e5ad10e put in spaces in ST_InterpolatePoint See Also references
git-svn-id: http://svn.osgeo.org/postgis/trunk@8820 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 09:25:51 +00:00
Regina Obe 68bbc110c5 ditto for ST_LocateBetween - name change flag and minor other corrections
git-svn-id: http://svn.osgeo.org/postgis/trunk@8819 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 09:23:34 +00:00
Regina Obe 048fb28f3b put a note ST_LocateAlong name changed (and is a new name in 2.0 - old name is ST_Locate_Along_Measure)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8818 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 09:10:33 +00:00
Regina Obe 426f3aa15f link to where to download pre-built cheat sheets
git-svn-id: http://svn.osgeo.org/postgis/trunk@8817 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 03:59:47 +00:00
Regina Obe b68ea11ef5 revise docs about make installing extensions to note that extensions are now installed by default if compiling against 9.1+. Also provide an example query to run to verify extensions are installed. THANKS pramsey -- now if we can only have a real tagged release that would be SWEET.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8816 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 03:32:29 +00:00
Regina Obe a813a16470 #1401 Goodbye getSRID()
git-svn-id: http://svn.osgeo.org/postgis/trunk@8815 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-15 03:18:16 +00:00
Mark Cave-Ayland 7dfdea09b5 Display "Creating Index..." text within the progress dialog rather than within the shp2pgsql-gui log window.
This should make it more obvious to users that something is still happening in the case that
they are building on a index on larger shapefiles which can often take quite some time.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8814 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 13:10:27 +00:00
Regina Obe b0766680ac change eol from native to LF to try to resolve #1466
git-svn-id: http://svn.osgeo.org/postgis/trunk@8813 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 07:37:36 +00:00
Regina Obe b1a9245652 document --with-gettext=no optionand case why you would want to do this. Also minor modifications as to use GEOS 3.3.2 and why you should
git-svn-id: http://svn.osgeo.org/postgis/trunk@8812 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 07:29:26 +00:00
Paul Ramsey cce54f7523 Add ST_InterpolatePoint, deprecate ST_Locate_Between_Measures and ST_Locate_Along_Measure. Document new functions. Alter regressions and docs to use AsText instead of AsEWKT.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8811 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 01:03:37 +00:00
Mark Cave-Ayland 2f32b97fdf Use normal autoconf convention of using #define to determine whether or not GDALFPOLYGONIZE is present, rather than always having it present and setting its value to either 0 or 1.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8810 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:49:29 +00:00
Mark Cave-Ayland fb5749edae Switch liblwgeom to use the POSTGIS_* defines already generated by configure, rather than passing them in directly.
Similar to my previous commit, however here the aim is that by moving the logic outside of make then we can
potentially allow other generators (such as CMake) to detect and use other compilers rather than embedding
specific -D flags into the command line.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8809 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:49:21 +00:00
Mark Cave-Ayland 2ca77b8a4a Switch NLS build to use the in-built ENABLE_NLS define rather than USE_NLS.
The key concept here is that we eliminate all logic from the Makefile and put
it in the build system (e.g. configure). By having the logic at this higher
layer, we make it much easier to transition to another build system in future
such as CMake.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8808 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:49:14 +00:00
Mark Cave-Ayland 30301827f7 Enable configure to accept the additional parameter --with-gettext=no to disable NLS builds.
This makes it possible to explicitly disable builds at configure time if required for
platforms where this causes problems such as Windows (see bug #748).

git-svn-id: http://svn.osgeo.org/postgis/trunk@8807 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:49:05 +00:00
Mark Cave-Ayland 9ac6d5be02 Fix incorrect camel-casing for HAVE_JSON within configure.ac.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8806 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:48:54 +00:00
Mark Cave-Ayland 58f78ebcbe Fix up AC_DEFINE macros in configure.ac that don't have a description.
While autoheader emits a warning, it actually fails and does not regenerate
postgis_config.h.in. Along with this fix, we commit an updated version of
postgis_config.h created from a fresh invocation of autoheader minus the
PACKAGE_* macros.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8805 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:48:48 +00:00
Sandro Santilli e7aa8d0d16 Add test for creating tables with circularstring typmod (#1085)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8804 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 17:34:24 +00:00
Sandro Santilli 6c3c6a8f7b First draft of a test for typmod (#1085)
This version simply creates the tables and checks geometry_columns.
Should be enhanced to test effectiveness of constraints.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8803 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 17:33:26 +00:00
Regina Obe 0dbee4dfdd remove dangling reference to geometry_same
git-svn-id: http://svn.osgeo.org/postgis/trunk@8802 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 16:28:11 +00:00
Sandro Santilli bce8e015d6 Virtualize ``make'' calls (#1464)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8801 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 16:23:18 +00:00
Mark Cave-Ayland 021bdc94b9 Rename geometry column header in shp2pgsql-gui to "geo column" to reduce its visible width based upon feedback from Regina.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8800 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 15:54:15 +00:00
Regina Obe 8849ac3a97 remove ~= from documentation -- we don't want people using this operator
git-svn-id: http://svn.osgeo.org/postgis/trunk@8799 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 15:50:12 +00:00
Sandro Santilli d90f670d6d Add all signature in the current repository
git-svn-id: http://svn.osgeo.org/postgis/trunk@8798 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 13:31:43 +00:00
Sandro Santilli a040e6bc06 Add more signatures found in a more recent dump of mine
git-svn-id: http://svn.osgeo.org/postgis/trunk@8797 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 11:34:27 +00:00
Sandro Santilli 931c6fec94 Make verbose output of postgis_restore.pl more useful for maintainance
It will now avoid to collapse all spaces to keep the door open for
better parsing in the future and to be more human readable.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8796 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 11:29:47 +00:00
Sandro Santilli 01f343995c Make ~= operator GIST-indexable, following existing documentation
NOTE: it takes a dump/reload for this to be in effect.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8795 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 10:00:39 +00:00
Paul Ramsey 6f1e0a2f48 Add in an offset option to ST_LocateBetween
git-svn-id: http://svn.osgeo.org/postgis/trunk@8794 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 21:43:56 +00:00
Paul Ramsey 816f40e8aa Add support for MULTIPOINT and POINT to ST_LocateBetween
git-svn-id: http://svn.osgeo.org/postgis/trunk@8793 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 19:55:30 +00:00
Paul Ramsey af3b7fe1db Flip ST_LocateBetween to use the same LRS code as ST_LocateBetweenElevations
git-svn-id: http://svn.osgeo.org/postgis/trunk@8792 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 19:07:02 +00:00
Sandro Santilli f6fbc6612a Add regress test for topology.AddFace robustness (see #1383)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8791 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 17:41:17 +00:00
Sandro Santilli 7a3b803b9e Fix lw_dist2d_pt_seg(B, AB), see #1459
Includes regress testing. Should also fix #1383

git-svn-id: http://svn.osgeo.org/postgis/trunk@8790 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 17:06:04 +00:00
Sandro Santilli 51e6e8e15e Complete tests for higher coordinate dimensions (#1455)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8789 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 11:21:11 +00:00
Sandro Santilli 442a2c98e3 Fix bug in dimension computer for collection WKT.
The parser got confused by inner M letters.
This commit also improves speed early breaking the loop over WKT.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8788 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 11:21:06 +00:00
Sandro Santilli 6e1d73efb0 Add tests for higher coordinate dimensions (#1455)
GEOMETRYCOLLECTION still fails

git-svn-id: http://svn.osgeo.org/postgis/trunk@8787 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 11:20:59 +00:00
Sandro Santilli 11432aa902 Test roundtrip of WKT. Higher dimensions still needed (#1455)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8786 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:52:11 +00:00
Sandro Santilli 9acf63d0cb Fix a bug in gserialized_read_gbox_p reading garbage in EMPTY point
Includes cunit test. Fixes #1458.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8785 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:52:03 +00:00
Sandro Santilli 605fa40a95 gbox_float_round: do not attempt to round M when not present
git-svn-id: http://svn.osgeo.org/postgis/trunk@8784 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:51:58 +00:00
Sandro Santilli a58b999828 Expose gbox_float_round to liblwgeom API
git-svn-id: http://svn.osgeo.org/postgis/trunk@8783 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 08:51:53 +00:00
Paul Ramsey 4565be828a Change references to BOX2DFLOAT4 to just BOX2D and remove the struct. Ding dong.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8782 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 19:45:13 +00:00
Paul Ramsey addeeb758f Tie astext(geography) and asbinary(geography) directly to the lwgeom_ C functions, without a cast
git-svn-id: http://svn.osgeo.org/postgis/trunk@8781 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 19:20:35 +00:00