Add support for auto-fix geom structure for GEOS conversions

Fixes ST_ClipByBox2D run with non-closed polygon rings in input (#2945)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13018 b70326c6-7e19-0410-871a-916f4a2858ee
Adapt the rest of the code to the change in LWGEOM2GEOS function

Fixes #2948 (introduced by previous commit)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13019 b70326c6-7e19-0410-871a-916f4a2858ee
Remove memory leaks from TWKB unit tester

git-svn-id: http://svn.osgeo.org/postgis/trunk@13020 b70326c6-7e19-0410-871a-916f4a2858ee
Fix memory leak in lw_dist2d_poly_curvepoly and lw_dist2d_circstring_poly

Also clear the memory management for lwcurvepoly_construct_from_lwpoly .
Fixes #2949.

git-svn-id: http://svn.osgeo.org/postgis/trunk@13021 b70326c6-7e19-0410-871a-916f4a2858ee
Fix leaks in lwcurvepoly_segmentize and its tester

git-svn-id: http://svn.osgeo.org/postgis/trunk@13023 b70326c6-7e19-0410-871a-916f4a2858ee
Fix yet another memory leak in lwgeom_make_valid (#2947)

The leak occurs on invalid single-component collection input.

git-svn-id: http://svn.osgeo.org/postgis/trunk@13025 b70326c6-7e19-0410-871a-916f4a2858ee
#2941, Geography can create a non-4326 geography but geography typmod won't allow it


git-svn-id: http://svn.osgeo.org/postgis/trunk@13027 b70326c6-7e19-0410-871a-916f4a2858ee
Fix memory error in ST_ClipByBox2D (#2950)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13028 b70326c6-7e19-0410-871a-916f4a2858ee
Fix typo in documentation for ST_AsEncodedPolyline

git-svn-id: http://svn.osgeo.org/postgis/trunk@13029 b70326c6-7e19-0410-871a-916f4a2858ee
#2953, Unable to compute stats for some features


git-svn-id: http://svn.osgeo.org/postgis/trunk@13030 b70326c6-7e19-0410-871a-916f4a2858ee
Fix for #2946 and some empty geometry fixes

git-svn-id: http://svn.osgeo.org/postgis/trunk@13033 b70326c6-7e19-0410-871a-916f4a2858ee
ST_ClipByBox2D: do not use gbox_overlaps with BOX2DF objects

Fixes use of uninitialized memory (#2954)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13034 b70326c6-7e19-0410-871a-916f4a2858ee
put back most common protos of ST_AsGML so docs aren't so confusing when they demonstrate their use

git-svn-id: http://svn.osgeo.org/postgis/trunk@13035 b70326c6-7e19-0410-871a-916f4a2858ee
ST_Simplify is not implemented by GEOS

git-svn-id: http://svn.osgeo.org/postgis/trunk@13037 b70326c6-7e19-0410-871a-916f4a2858ee
experiment with color coding

git-svn-id: http://svn.osgeo.org/postgis/trunk@13038 b70326c6-7e19-0410-871a-916f4a2858ee
#2958 reverse_geocode erroring ERROR: invalid input syntax for type numeric: " "

git-svn-id: http://svn.osgeo.org/postgis/trunk@13039 b70326c6-7e19-0410-871a-916f4a2858ee
#2958 reverse_geocode erroring ERROR: invalid input syntax for type numeric: " " (revised patch to not return 0 for non-numbered roads)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13041 b70326c6-7e19-0410-871a-916f4a2858ee
#2877 Revise configure to build make scripts and address_standardizer extension

git-svn-id: http://svn.osgeo.org/postgis/trunk@13043 b70326c6-7e19-0410-871a-916f4a2858ee
#2877 Revise configure to build make scripts and address_standardizer extension - move pcre flags check before cppflags build etc so gets included

git-svn-id: http://svn.osgeo.org/postgis/trunk@13044 b70326c6-7e19-0410-871a-916f4a2858ee
#2877 don't get rid of data header generated files during dist-clean (they can't be rebuilt if perl Regex::Assemble is not installed

git-svn-id: http://svn.osgeo.org/postgis/trunk@13045 b70326c6-7e19-0410-871a-916f4a2858ee