Commit graph

568 commits

Author SHA1 Message Date
Paul Ramsey 8e2646c64d Add in tests for more WKT types and fix bugs as they show up.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6112 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-24 19:00:00 +00:00
Paul Ramsey d2902401e2 Add quotes to bison/flex calls.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6111 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-24 16:08:35 +00:00
Paul Ramsey 4171834659 Match the error strings with the legacy ones in the old WKT parser.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6110 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-24 16:04:35 +00:00
Paul Ramsey 10cb3a4b99 Rename WKT out suite.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6109 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-24 15:25:44 +00:00
Paul Ramsey 4d1afa59d3 Change sytax on calls to LEX to maybe make windoze and others happier
git-svn-id: http://svn.osgeo.org/postgis/trunk@6108 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-23 23:53:54 +00:00
Paul Ramsey 3942a7e8b6 Finish untested support for all types in WKT input.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6105 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-23 23:48:37 +00:00
Paul Ramsey 3328bd13f5 Remove long form lex parameters
git-svn-id: http://svn.osgeo.org/postgis/trunk@6104 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-23 14:41:17 +00:00
Paul Ramsey 70c8f067a1 Add dimensional empties to the grammar
git-svn-id: http://svn.osgeo.org/postgis/trunk@6103 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-22 23:32:14 +00:00
Paul Ramsey 1647debf72 comment the fact we support ISO extended types in WKB emitter
git-svn-id: http://svn.osgeo.org/postgis/trunk@6102 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-22 23:29:26 +00:00
Paul Ramsey 33b6ad1711 Add in the ISO extended types to the WKT parser and emitter.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6101 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-22 23:27:13 +00:00
Paul Ramsey 6d9751acdb Apply mcayland patch to build parse/lex. Remember: make clean before make.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6100 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-22 19:27:18 +00:00
Paul Ramsey 7ff5ee83dd Add in more parser cases and test an EMPTY case.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6094 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-22 02:14:06 +00:00
Paul Ramsey d824b588b7 Add support for point and multipoints to the WKT parser.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6093 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-21 22:22:26 +00:00
Paul Ramsey 4dbc52cf1c Ensure the parser prereqs are built (#636)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6092 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-21 21:32:31 +00:00
Paul Ramsey 30ec5743e7 Current work on bison-based WKT-to-LWGEOM parser. Implemented for LINESTRING, almost ready to extend to all types.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6091 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-20 22:51:30 +00:00
Paul Ramsey 30f5cfcfd8 Remove warnings
git-svn-id: http://svn.osgeo.org/postgis/trunk@6062 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-10 22:00:31 +00:00
Paul Ramsey 37111647d5 Put the WKT new parser files into repo so others can see them and I can work in synch with trunk.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6060 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-10 00:08:58 +00:00
Paul Ramsey 9a54d6f9d7 Add param.h to headers, pick up ENDIAN macros?
git-svn-id: http://svn.osgeo.org/postgis/trunk@6058 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-08 18:08:34 +00:00
Paul Ramsey 44e73bd485 Add nested geometry collection test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6049 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 20:23:47 +00:00
Paul Ramsey 18d31bf31a Add extra comments.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6048 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 20:11:16 +00:00
Paul Ramsey b25af1cf6b Add extra tests, remove printf noise from run.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6047 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 19:32:02 +00:00
Paul Ramsey 51d0a6d2af Add in WKB reader and associated test framework to build.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6046 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 19:17:05 +00:00
Paul Ramsey f92e5e7a25 Fix a write-out-of-bounds error.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6045 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 17:51:48 +00:00
Paul Ramsey 26dcf8d8b6 Finish first draft of WKB reader.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6044 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 15:20:02 +00:00
Paul Ramsey 23e37e05a5 Clean out compile warnings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6043 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 00:35:37 +00:00
Paul Ramsey e95bcaaa61 Add WKB writing support for TIN, Triangle and PolyhedralSurface
git-svn-id: http://svn.osgeo.org/postgis/trunk@6042 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-05 23:33:11 +00:00
Paul Ramsey 2f6fd376ac Add WKB writing support for TIN, Triangle and PolyhedralSurface
git-svn-id: http://svn.osgeo.org/postgis/trunk@6041 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-05 23:32:53 +00:00
Paul Ramsey 67980859c4 Macroify the WKB type numbers and add the extended types for 3D objects.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6040 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-05 22:49:36 +00:00
Paul Ramsey e46724c479 Fix syntax error in ptarray_segmentize2d introduced in last commit
git-svn-id: http://svn.osgeo.org/postgis/trunk@6039 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-03 19:57:05 +00:00
Paul Ramsey e2817f8957 Ensure maxpoints is filled in appropriately
git-svn-id: http://svn.osgeo.org/postgis/trunk@6038 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-03 19:43:49 +00:00
Paul Ramsey a18d51afb0 Remove lwin_wkb from build until it's complete
git-svn-id: http://svn.osgeo.org/postgis/trunk@6037 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-03 18:15:22 +00:00
Paul Ramsey 2d07d7eb59 Continue with new WKB parser. Change signature of RHR "right hand rule" functions to "clockwise" to avoid misinterpretations of orientation rules.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6036 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-03 18:14:35 +00:00
Nicklas Avén 12ac2d5e56 removing run-time sized array
git-svn-id: http://svn.osgeo.org/postgis/trunk@6030 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-29 20:28:52 +00:00
Jorge Arévalo 9f1242978f liblwgeom/lex.yy.c replaced with previous version
git-svn-id: http://svn.osgeo.org/postgis/trunk@6021 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-27 12:59:29 +00:00
Jorge Arévalo dc8b342f29 - Added raster extension to new 'raster' directory.
- Modified PostGIS 'configure.ac' script to add support for new raster type (driven by '--with-raster' configure option.
- Added raster build options to 'GNUMakefile' script.
- PostGIS Python scripts moved to a 'python' subdirectory inside 'raster/scripts' directory.
- References to "WKT" deleted from source code.


git-svn-id: http://svn.osgeo.org/postgis/trunk@6019 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-26 21:21:03 +00:00
Olivier Courtin c5a4495202 Fix TGEOM wrong size allocation. Tks to Paul for report
git-svn-id: http://svn.osgeo.org/postgis/trunk@5937 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-10 14:06:11 +00:00
Mark Cave-Ayland d7bea1f4aa Fix #581: LWGEOM_expand produces inconsistent results. Change the bounding box calculation routines in ptarray.c so that they perform the entire calculation in double precision then convert the final result to BOX2DFLOAT4. This prevents rounding errors being introduced into the bounding box when each input result is converted to BOX2DFLOAT4 in turn.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5923 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-10 08:50:02 +00:00
Olivier Courtin 6ab685dc5f minor changes on comment
git-svn-id: http://svn.osgeo.org/postgis/trunk@5919 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-07 09:30:27 +00:00
Mark Cave-Ayland 2b30034b36 Fix the mixed-type geometry column detection routines so that they allow just MULTI/non-MULTI versions of the same basic geometry type within a column. Per report from Denis Rykov.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5917 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-06 21:49:53 +00:00
Olivier Courtin dcd7be5270 Add TRIANGLE, TIN and PolyhedralSurface support to Perimeter, and relevant cunit tests (cf #568). Add TRIANGLE Area support (and so to TIN).
git-svn-id: http://svn.osgeo.org/postgis/trunk@5913 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-06 12:53:47 +00:00
Olivier Courtin 6c1cf6fc37 make astyle
git-svn-id: http://svn.osgeo.org/postgis/trunk@5909 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-05 16:42:22 +00:00
Olivier Courtin 523c08bbf2 Use TGEOM struct to compute POLYHEDRALSURFACE and TIN dimension. Add relevant cunit tests. Few astyle improve
git-svn-id: http://svn.osgeo.org/postgis/trunk@5908 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-05 15:25:50 +00:00
Nicklas Avén b06662be37 Fixed some build warnings I had missed
git-svn-id: http://svn.osgeo.org/postgis/trunk@5890 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-01 20:14:05 +00:00
Nicklas Avén d5b2e25d6d 3D Distance functions, only point-point and point line. #576
git-svn-id: http://svn.osgeo.org/postgis/trunk@5889 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-01 19:55:11 +00:00
Olivier Courtin 35e5081fbc Fix wrong pointer allocation size, with 64 bits errors. Tks to Mateusz for report. Improve cu_unit report. Improve and fix some messages from LWDEBUG
git-svn-id: http://svn.osgeo.org/postgis/trunk@5878 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-31 19:14:43 +00:00
Olivier Courtin 240a037ce9 Astyle on new files
git-svn-id: http://svn.osgeo.org/postgis/trunk@5875 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 09:06:40 +00:00
Olivier Courtin 9b7c90ca8e Add Topology structure for connected surfaces (PolyhedralSurface, Tin) and LWGEOM to TGEOM transformations routines. Add related cunit tests. Merge cu_tin and cu_polyhedralsurface into a single cu_surface unit test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5874 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 06:49:51 +00:00
Olivier Courtin 5672203c88 add Triangle support in lwgeom_getnumgeometries
git-svn-id: http://svn.osgeo.org/postgis/trunk@5872 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 06:45:30 +00:00
Paul Ramsey f0dd881d22 Add unfinished WKB input parser for later.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5856 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-20 22:38:44 +00:00
Paul Ramsey 5d5af4af51 Slight improvement for #573
git-svn-id: http://svn.osgeo.org/postgis/trunk@5852 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-19 19:50:23 +00:00
Olivier Courtin 751997d5da Fix for #573, where has_arc check with unsupported TRIANGLE/TIN/POLYHEDRALSURFACE produce crash with POSTGIS2GEOS function. Thanks to Regina for bug report !
git-svn-id: http://svn.osgeo.org/postgis/trunk@5845 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-18 08:01:24 +00:00
Paul Ramsey 17d1755d9f Return the, er, return value.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5843 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-17 20:10:53 +00:00
Olivier Courtin 5c95d679f2 Add forgotten Triangle support in lwgeom_inspect
git-svn-id: http://svn.osgeo.org/postgis/trunk@5829 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 18:51:41 +00:00
Olivier Courtin c09ea80cd2 Astyle session on whole trunk
git-svn-id: http://svn.osgeo.org/postgis/trunk@5825 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 08:30:08 +00:00
Mark Cave-Ayland 8c815339fb Fix a memory leak in all of the MULTI* deserialize routines - once the relevant information had been copied from the LWGEOM_INSPECTED structure, the inspected structure itself was not being freed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5824 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-14 10:57:41 +00:00
Olivier Courtin 284a032273 Few lwtype_name add
git-svn-id: http://svn.osgeo.org/postgis/trunk@5822 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-13 17:30:10 +00:00
Olivier Courtin 8fea23dce8 Add Triangle and TIN new geometry type. Add Cunit tests on parse stage, related to #561. Add ST_AsGML support TIN and Triangle for GML 3. Slightly cast change in PolyhedralSurface LWGEOM struct Remove PolyhedralSurface support from forceRHR function as orientation is meaningfull in PS. Move is_closed functions from PostGIS to LWGEOM dir and related cunit test case on line and curves.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5821 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-13 17:29:29 +00:00
Nicklas Avén 16cded9aae pushing *uchar use out of measures.c as part of #308
git-svn-id: http://svn.osgeo.org/postgis/trunk@5807 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-11 09:24:58 +00:00
Paul Ramsey 6a3fb2ef57 Add in fix for #562, forward ported from 1.5 branch (point-in-poly failure for large large geography polygons)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5805 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-10 19:43:38 +00:00
Olivier Courtin a283b58ab9 Add POLYHEDRALSURFACE support to ST_AsGML for GML 3 output
git-svn-id: http://svn.osgeo.org/postgis/trunk@5803 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-10 16:19:24 +00:00
Olivier Courtin 2e61612b4a Improve printLWPSURFACE to also print each rings if any
git-svn-id: http://svn.osgeo.org/postgis/trunk@5792 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-08 20:36:42 +00:00
Olivier Courtin 15272e3b0b lwtype_name session. cf #453
git-svn-id: http://svn.osgeo.org/postgis/trunk@5791 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-06 21:31:54 +00:00
Olivier Courtin 7fcafd48ac Change label 'face' to 'patch' in POLYHEDRALSURFACE. Related to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5771 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-05 15:58:28 +00:00
Olivier Courtin c3a59d10f8 Add geography support for POLYHEDRALSURFACE. Related to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5770 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-04 20:02:26 +00:00
Olivier Courtin 17f2576e3c Add 2D and 3DM support to POLYHEDRALSURFACE. Allow interior rings for patches. Don't check anymore minimum patch number. Related to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5760 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-01 21:11:38 +00:00
Nicklas Avén be11fac1a8 ugly style fix
git-svn-id: http://svn.osgeo.org/postgis/trunk@5758 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-29 13:44:49 +00:00
Nicklas Avén 0bc72c7cee param.h is needed for ENDIAN definitions in mingw
git-svn-id: http://svn.osgeo.org/postgis/trunk@5757 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-29 13:36:35 +00:00
Olivier Courtin 88f836eed2 Add really basic POLYHEDRALSURFACE support. Parse, Unparse, Serialization and cunit unit tests. related to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5753 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-25 21:20:09 +00:00
Olivier Courtin 02e9731e2a Remove Integer deprecaded types (POINTTYPEI, LINETYPEI, POLYGONTYPEI) and lwgi related stuff. As a consequence EWKB of CURVEPOLYTYPE, MULTICURVETYPE and MULTISURFACETYPE is changed/impacted (geometry type bits). Now we have 3 new free geometry type available. Preliminary work to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5752 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-24 10:55:34 +00:00
Paul Ramsey 77b245cb34 Rename vasbappend to stringbuffer_aprintf
git-svn-id: http://svn.osgeo.org/postgis/trunk@5623 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-17 23:38:04 +00:00
Olivier Courtin 23d4eb80c3 Add new option to ST_AsGML: ability to remove srsDimension attribute in GML 3. cf #508
git-svn-id: http://svn.osgeo.org/postgis/trunk@5575 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-27 15:26:08 +00:00
Olivier Courtin d3b3479ad7 Fix wrong OGC URN in GeoJson and GML output. Cf #507
git-svn-id: http://svn.osgeo.org/postgis/trunk@5572 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-27 13:58:41 +00:00
Olivier Courtin fa69a73149 Add optional namespace to ST_AsKML function. related in a way to #460
git-svn-id: http://svn.osgeo.org/postgis/trunk@5532 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-12 08:48:02 +00:00
Paul Ramsey 7a6b0b636c Fix syntax error.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5469 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-29 20:03:35 +00:00
Paul Ramsey e90cae99af Reorganize avprintf a litle.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5468 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-29 20:02:59 +00:00
Paul Ramsey 624f8a909e Propogate vsnprintf errors up verbatim
git-svn-id: http://svn.osgeo.org/postgis/trunk@5467 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-29 19:57:15 +00:00
Paul Ramsey f6dd102bcf Make the default size more reasonable again.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5463 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-25 05:11:20 +00:00
Paul Ramsey 701469d92b Add comments on error return values.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5462 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-25 05:09:14 +00:00
Paul Ramsey 0e9cfef4d4 Improved stringbuffer again. Always write directly into the buffer, no more memcpy'ing. Change return values for printing calls to int, so that print errors can be detected and handled by the layers above, if desired.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5461 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-25 05:06:39 +00:00
Paul Ramsey 4eb4127299 Restore original license terms.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5460 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-24 17:54:39 +00:00
Sandro Santilli 6dbdfe81f3 Add support in liblwgeom for specifying a custom (or no) namespace/prefix for GML output
git-svn-id: http://svn.osgeo.org/postgis/trunk@5452 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-22 21:13:43 +00:00
Sandro Santilli 4be8335c1a Don't choke on clean when there's nothing to clean
git-svn-id: http://svn.osgeo.org/postgis/trunk@5446 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-17 07:40:41 +00:00
Sandro Santilli f93889a5f0 Fix 'clean' rule to descend in cunit
git-svn-id: http://svn.osgeo.org/postgis/trunk@5445 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-17 07:32:59 +00:00
Paul Ramsey 1ca9049cde Some function renaming: lwgeom_typename => lwtype_name. The internal float/up/down functions get slightly better names. Make collection types re-sizable: added maxgeoms to all collections, and created lwcollection_add_lwgeom() function. Remove all *_add functions. Revized homogenize function to use the new _add_lwgeom and variants.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5439 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-16 03:13:33 +00:00
Sandro Santilli 478d2fffb0 ptarray_substring *does* already implement interpolation
git-svn-id: http://svn.osgeo.org/postgis/trunk@5429 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-12 15:46:09 +00:00
Sandro Santilli fb7ab3a9a3 Since we do a full scan of pointarray from ptarray_locate_point, take the chance to also return min distance
git-svn-id: http://svn.osgeo.org/postgis/trunk@5395 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-10 15:29:39 +00:00
Sandro Santilli c2eac6cc1a Document closest_point_on_segment in header file
git-svn-id: http://svn.osgeo.org/postgis/trunk@5394 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-10 14:32:54 +00:00
Sandro Santilli 8ed31bd563 Document ptarray_locate_point in header file
git-svn-id: http://svn.osgeo.org/postgis/trunk@5393 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-10 14:20:04 +00:00
Paul Ramsey a17c33cc33 Update the bbox when you alter the underlying geometry (#410) ST_SetPoint, ST_Ad
dPoint, ST_RemovePoint.



git-svn-id: http://svn.osgeo.org/postgis/trunk@5384 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-08 23:28:28 +00:00
Paul Ramsey 3345c77743 A few more WKB unit tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5375 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-05 02:35:16 +00:00
Paul Ramsey b9b682cd5f Set keywords.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5372 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 06:10:41 +00:00
Paul Ramsey 0c32bc13d1 Set keywords and some copyright headers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5371 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 06:10:07 +00:00
Paul Ramsey f4f4aa7dbe Add some tests of the old versus new WKB output.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5370 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 06:06:23 +00:00
Paul Ramsey e0e7243ee8 Remove doxygen flags from static functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5368 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 05:40:29 +00:00
Paul Ramsey a81a0a2f90 Add some documentation to the public functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5367 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 05:38:38 +00:00
Paul Ramsey 7658099f7c Add in tests and fixes for WKB emitter.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5366 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 01:15:16 +00:00
Paul Ramsey de4dd5aa76 Add first cut to lwgeom_to_wkb function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5365 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-02 23:18:39 +00:00
Paul Ramsey ecbea23876 Add a couple functions (length, copy) to stringbuffer, and add comments.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5364 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-02 23:16:44 +00:00
Paul Ramsey cb3fcd1b5b Instructions on adding new tests to cunit, from Jeff Adams.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5348 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-26 02:50:58 +00:00
Olivier Courtin aca9512afb Add few more lwgeom_typename, and update regress test if needed. Restore initial lwnotice behaviour in remove_repeated_points on unknown types (instead of lwerror).
git-svn-id: http://svn.osgeo.org/postgis/trunk@5347 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-26 00:16:25 +00:00
Olivier Courtin 218f0545cc Fix add forgotten return in flip_coordinates (cf #452). Add lwgeom_typename in several functions to avoid cryptic error message (#452 again).
git-svn-id: http://svn.osgeo.org/postgis/trunk@5346 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 17:54:08 +00:00
Paul Ramsey d8095c6034 Fix potential corner case in sphere area calculation (#451)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5345 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 15:13:48 +00:00
Paul Ramsey 068abf02b5 Fix for st_area(geography) over the dateline (#450)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5339 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 13:41:02 +00:00
Olivier Courtin ab9390437e rename ptarray_reverse_axis to ptarray_flip_coordinates. Add lwgeom_flip_coordinates and ST_FlipCoordinates (#354). Add relevant cunit tests and basic documentation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5338 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 13:38:57 +00:00
Paul Ramsey 854e294721 Change dimensionality indicators to have spaces between type indicators for WKT_ISO output form.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5335 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-24 14:40:17 +00:00
Paul Ramsey e4d3fc1f9b Add support from SRID= block on EWKT
git-svn-id: http://svn.osgeo.org/postgis/trunk@5334 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-24 13:50:22 +00:00
Paul Ramsey cbe707f0f9 Remove last compile warnings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5333 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:18:15 +00:00
Paul Ramsey ee60c5f077 Making test methods static to avoid compiler warnings. For Jeff Adams.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5332 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:16:33 +00:00
Paul Ramsey bd255f724f Making test methods static to avoid compiler warnings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5331 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:14:07 +00:00
Paul Ramsey 4dde0569ac Make test functions static.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5330 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:11:45 +00:00
Paul Ramsey 1eba8fabf7 Made unit tests easier to add. New suites now just need to be added to two lines in cu_tester.c, no changes to header files necessary, new tests need one line in the appropriate .c file. From Jeff Adams.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5329 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:07:14 +00:00
Paul Ramsey 0505e74fee Remove unused va_copy.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5327 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:41:52 +00:00
Paul Ramsey ef3ccbb7fd Woops again, got work and start size values reversed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5326 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:41:09 +00:00
Paul Ramsey 170a29e721 Oops, commit stringbuffer.h with sensible values for internal sizes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5325 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:30:35 +00:00
Paul Ramsey d8b67bdd4d Improve performance and cut back stringbuffer_t to the minimum.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5324 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:29:57 +00:00
Paul Ramsey 1661cf575a Allow cu_tester to accept parameters to run individual tests or suites, from Jeff Adams.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5323 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 19:51:41 +00:00
Sandro Santilli 1975106d03 Don't let ST_RemoveRepeatedPoint collapse LINESTRINGs (not sure why, but someone doesn't want them in the db)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5322 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 19:42:15 +00:00
Olivier Courtin b1aee9da3f Move ptarray reverse axis function from postgis/lwgeom_in_gml to liblwgeom/ptarray
git-svn-id: http://svn.osgeo.org/postgis/trunk@5319 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 18:29:00 +00:00
Paul Ramsey df95a9c43b More WKT tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5318 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 18:18:19 +00:00
Paul Ramsey eeb40ddd6b More WKT unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5317 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 17:55:00 +00:00
Olivier Courtin 14f9139f54 In fact Nested GeometryCollection are never been supported in SVG and GeoJSON. Update the cunit tests cases
git-svn-id: http://svn.osgeo.org/postgis/trunk@5316 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 15:55:33 +00:00
Paul Ramsey 686ddfa2c0 Add more unit tests for WKT
git-svn-id: http://svn.osgeo.org/postgis/trunk@5312 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 22:43:31 +00:00
Olivier Courtin af46ef3b88 Fix #441. And introduce a change in behaviour: if geometryCollection and bbox, not sub geoms bbox are provided anymore
git-svn-id: http://svn.osgeo.org/postgis/trunk@5311 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 22:04:18 +00:00
Paul Ramsey 9d8fc40f25 ST_AsLatLonText(geometry, format) from Jeff Adams
git-svn-id: http://svn.osgeo.org/postgis/trunk@5305 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 20:42:05 +00:00
Paul Ramsey 51eb7b3969 First cut of new WKT output functions, need more unit tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5302 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:53:22 +00:00
Olivier Courtin d13a983bf9 Fix missing math.h include in lwout_svg (#438). Put back lwgeom_export.h as we need header for getSRSbySRID.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5301 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:52:30 +00:00
Sandro Santilli 6acfca6cac Oops (#434)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5299 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:37:21 +00:00
Sandro Santilli 72efd11d4b Fix missing prototypes warnings
git-svn-id: http://svn.osgeo.org/postgis/trunk@5297 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:31:43 +00:00
Olivier Courtin e1facac0bb Id tag
git-svn-id: http://svn.osgeo.org/postgis/trunk@5296 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:31:17 +00:00
Olivier Courtin f28948e433 Fix comment stuff in cunit
git-svn-id: http://svn.osgeo.org/postgis/trunk@5291 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 18:49:40 +00:00
Olivier Courtin 287fbffddd move ST_AsSVG from postgis to lwgeom dir. write cun it tests. related to #377
git-svn-id: http://svn.osgeo.org/postgis/trunk@5289 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 18:43:06 +00:00
Olivier Courtin 4db9d9c395 bbox only bother about external ring. add the related cunit test
git-svn-id: http://svn.osgeo.org/postgis/trunk@5285 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 15:37:09 +00:00
Paul Ramsey 147a101d25 Move stringbuffer from ./loader to ./liblwgeom for use in string emitter functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5284 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 15:30:10 +00:00
Olivier Courtin ab6afbcfb4 Move ST_AsGeoJson from postgis to liblwgeom dir. Use as most as cunit test as possible. Related to #377.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5283 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 14:03:19 +00:00
Olivier Courtin 536b630663 Add missing MultiPoint test. Fix wrong LWGEOM type on cu_gml tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5280 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 21:53:16 +00:00
Olivier Courtin e0e94794e1 add explicit void return type
git-svn-id: http://svn.osgeo.org/postgis/trunk@5279 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 21:34:45 +00:00
Olivier Courtin b534ff8a2f Move ST_AsKML from postgis to liblwgeom dir. Use as most cunit test as possible. Few related corrections on GML similar implementation. cf #377
git-svn-id: http://svn.osgeo.org/postgis/trunk@5277 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 20:32:11 +00:00
Olivier Courtin b1f67e7c43 Add forgotten lwout_gml.c file (#377)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5276 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 18:23:49 +00:00
Olivier Courtin 738fe292c6 Move ST_AsGML from postgis dir to liblwgeom. Rewrite most units test with cunit. cf #377
git-svn-id: http://svn.osgeo.org/postgis/trunk@5275 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 18:18:37 +00:00
Olivier Courtin 049a0e262a make astyle session
git-svn-id: http://svn.osgeo.org/postgis/trunk@5274 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:36:27 +00:00
Sandro Santilli f6ac58c764 ST_RemoveRepeatedPoints [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5273 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:22:08 +00:00
Sandro Santilli 34d920339c Make stylish
git-svn-id: http://svn.osgeo.org/postgis/trunk@5271 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:21:04 +00:00
Olivier Courtin e2bcbb862e use the rights homogenize cunit suite handlers
git-svn-id: http://svn.osgeo.org/postgis/trunk@5270 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 19:47:49 +00:00
Olivier Courtin 3152537b81 Add lwgeom_homogenize function. Related to #375. Add cunit related tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@5265 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 18:25:42 +00:00
Olivier Courtin 5a175b5c10 Add Cunit - lwerror use case handle - #420
git-svn-id: http://svn.osgeo.org/postgis/trunk@5264 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 16:47:12 +00:00
Sandro Santilli 71f6125ba7 ptarray_remove_repeated_points [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5237 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-14 13:46:36 +00:00
Sandro Santilli 762c6d7c69 Get style
git-svn-id: http://svn.osgeo.org/postgis/trunk@5230 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-11 21:01:15 +00:00
Sandro Santilli 14bb1c251b Enhance documentation of ptarray_addPoint [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@5227 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-10 20:54:08 +00:00
Sandro Santilli f801531576 Oops, it seems I broke the build (sorry)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5225 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-09 17:59:25 +00:00
Sandro Santilli c07005556f Fix documention
git-svn-id: http://svn.osgeo.org/postgis/trunk@5224 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-09 06:52:27 +00:00
Paul Ramsey 8cabdcf81f 1.5 astyle pass
git-svn-id: http://svn.osgeo.org/postgis/trunk@5181 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-01 17:35:55 +00:00
Paul Ramsey 2bfaa2112f Keep floats out of registers for spheroid calculation. Fixes odd bug in OS/X gcc 4.1. Could probably be narrowed to only use flag on affected platform. (#395)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5180 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-29 21:24:24 +00:00
Paul Ramsey 3c9467dda4 Extra debugging information in spheroid area calculation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5178 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-29 18:00:16 +00:00
Paul Ramsey d061e19bf1 Make area unit tests actually test against known good values
git-svn-id: http://svn.osgeo.org/postgis/trunk@5177 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-28 17:42:52 +00:00
Paul Ramsey ea8d4c5585 Remove warning from lwline
git-svn-id: http://svn.osgeo.org/postgis/trunk@5170 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-26 20:20:47 +00:00
Paul Ramsey f0894275df Make ST_AddMeasure handle multilinestrings as well as linestrings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5168 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-26 18:56:22 +00:00
Paul Ramsey 7b65335f33 Add ST_AddMeasure and associated documentations (#390)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5162 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-25 21:03:42 +00:00
Paul Ramsey 721f1bafc2 Short circuit on distance tests: only do full spheroidal calculation where the distance is near or greater than the tolerance. This will make large st_dwithin() radius searches much faster since points that are well within the radius will not have their full geodetic calculation run, only those that are close to the radius boundary.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5133 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-15 18:41:41 +00:00
Olivier Courtin 3883f211de Fix undefined vars in LWDEBUGF (#383)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5124 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-14 14:45:06 +00:00
Paul Ramsey e003325935 Fixed up de-serialization routines to avoid *geoms = malloc(0) cases which were causing free to fail later on down the line (#370)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5099 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-04 17:55:14 +00:00
Paul Ramsey 473ccf0f37 Make lwcollection_extract slightly more empty-intelligent
git-svn-id: http://svn.osgeo.org/postgis/trunk@5092 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-04 00:31:52 +00:00
Paul Ramsey a7f032948f CFLAGS=-pedantic pass over the codebase and warnings reduced
git-svn-id: http://svn.osgeo.org/postgis/trunk@5039 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-20 17:42:44 +00:00
Paul Ramsey f159b63673 Quiet solaris warnings
git-svn-id: http://svn.osgeo.org/postgis/trunk@5012 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-16 17:00:26 +00:00
Paul Ramsey cd73095c21 Fix up boundary condition in node interaction test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4949 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 22:08:12 +00:00
Paul Ramsey a6c08ab192 Add an internal geometry tree for use in a native prepared geometry scheme for fast intersection tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4948 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 20:52:16 +00:00
Paul Ramsey b3f7f5ad5c Add svn:keywords to everyone
git-svn-id: http://svn.osgeo.org/postgis/trunk@4947 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 20:50:57 +00:00
Paul Ramsey 1d3a5616a3 Add newlines at file ends to silence warnings
git-svn-id: http://svn.osgeo.org/postgis/trunk@4913 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-27 17:50:24 +00:00
Mark Cave-Ayland d75548ebbb Fix #316: IsValid? called on invalid 3d object leads to crash. Because of the way the parser works, not all tuples can hold a valid parse position; hence when trying to display the error message, the parser would crash. The solution I went for here was to alter pop() so that "counting tuples" always hold a valid parse position, and then re-write the various check functions to ensure that they only display parse errors with details from the next "counting tuple" higher up in the stack.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4905 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-26 17:55:49 +00:00
Paul Ramsey 6700d1da91 Merge Nicklas Aven's distance spike into trunk. (#63, #231)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4894 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-25 19:15:57 +00:00
Paul Ramsey c6042246ec Move utility functions only used in cunit tests to the cunit code.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4880 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-22 04:56:19 +00:00
Paul Ramsey 68c55afc7e Replace pow(,2.0) with POW2 macro.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4879 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-22 04:28:01 +00:00
Paul Ramsey 0ed71c1737 Move from pass-by-value to pass-by-const-pointer. What can I say, I have no control over myself.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4877 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-21 06:08:40 +00:00
Paul Ramsey 74dbaa2429 Fix graxing case and improve co-linear handling with help from Nicklas Aven (#314)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4872 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-20 18:36:38 +00:00
Paul Ramsey 51be358f55 Handle the case where the stabline and a polygon edge are co-linear in point-in-polygon test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4865 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-19 20:23:29 +00:00
Paul Ramsey 02ab6e17d5 Fix a double-free in the unit test for collection extract.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4850 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 22:29:40 +00:00
Paul Ramsey b3d2b3c9f9 Implement ST_CollectionExtract() to pull specific homogeneous collections out of heterogeneous collections. Regressions and documentation included. (#218)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4847 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 20:03:50 +00:00
Paul Ramsey 43a8513e27 Update behavior of lwgeom_same to match "orderingequals" semantics (#289)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4789 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:57:24 +00:00
Paul Ramsey 8d538ca180 Slightly loosen equality tolerance check for point in cone... does this fix cunit regressions?
git-svn-id: http://svn.osgeo.org/postgis/trunk@4788 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:35:20 +00:00
Paul Ramsey 6adec1b2be Simplify code and improve consistency of linecrossing results (#272)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4786 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:02:19 +00:00
Paul Ramsey 2d305b1795 Apply handling for EMPTY geometries to all geography functions per the DevWikiEmptyGeometry page.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4778 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-10 19:30:43 +00:00
Paul Ramsey 64b981e012 Fix for point-on-vertex case of st_covers (#271)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4761 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-07 00:12:56 +00:00
Olivier Courtin 4d138982f2 revert wrong commit (r4741) on wktparse.lex file
git-svn-id: http://svn.osgeo.org/postgis/trunk@4742 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 21:19:59 +00:00
Olivier Courtin 8d09ad000f Allow a double to not have digit after dot (related to #175). Update unit test case
git-svn-id: http://svn.osgeo.org/postgis/trunk@4741 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 21:10:40 +00:00
Paul Ramsey ac336483d6 Fix for #175, numbers with a terminal decimal won't parse.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4739 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 20:35:29 +00:00
Paul Ramsey e0381459b7 Remove unit test failure cases in 32-bit architectures. Now have to test correctness
of algorithms on test data in 64-bit environment.


git-svn-id: http://svn.osgeo.org/postgis/trunk@4732 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 00:13:04 +00:00
Paul Ramsey 9cddf4d6b9 File headers and property setting.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4729 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 21:24:53 +00:00
Paul Ramsey 9742ff9fbc Re-enable other geodetic unit tests and remove Java code block.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4720 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 02:58:03 +00:00
Paul Ramsey fba1c9c339 First cut of ST_Area(geography) on spheroid. Currently not default, use ST_Area(geog, true) to enable it. Beware of limitations over poles and eequator.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4719 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 00:36:02 +00:00
Paul Ramsey 6dd39806d5 Add ST_Length() implementation on spheroid and rationalize the sphere/spheroid implementations into
a smaller shared set of functions.


git-svn-id: http://svn.osgeo.org/postgis/trunk@4710 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-31 00:01:45 +00:00
Paul Ramsey 260b853a58 Add in spheroid calculations for ST_Distance and ST_DWithin.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4709 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-30 20:45:50 +00:00
Paul Ramsey 33861fea7d Minor changes for numerical stability. Remove logging.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4702 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 19:53:53 +00:00
Paul Ramsey ac8f490ddb Spheroid distance calculation between points added.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4700 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 19:24:06 +00:00
Olivier Courtin 0365190e5a Add ptarray_merge function
git-svn-id: http://svn.osgeo.org/postgis/trunk@4679 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-24 16:35:31 +00:00
Olivier Courtin f97acc13d3 Add ptarray_isclosed3d function
git-svn-id: http://svn.osgeo.org/postgis/trunk@4670 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-22 14:06:45 +00:00
Paul Ramsey 38adeece13 ST_Length(geography) per #266
git-svn-id: http://svn.osgeo.org/postgis/trunk@4662 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-18 04:19:04 +00:00
Mark Cave-Ayland 7dea8a5282 Update the TYPMOD_SET_* macros in the same way as for the FLAGS_SET_* macros earlier, so that they actually change the variable they reference.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4654 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-15 17:50:14 +00:00
Mark Cave-Ayland 9ffba1ed15 Alter the FLAGS_SET_* macros so that they actually update the specified flag variable, rather than just returning the new value of the flag variable.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4651 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-15 15:35:45 +00:00
Paul Ramsey 6839e6d5bc Much better fix for NaN area problem.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4647 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-13 19:50:45 +00:00
Paul Ramsey 69f3fb98d7 HAck fix for NaN areas.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4646 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-13 19:39:19 +00:00
Paul Ramsey c446e4711d Don't copy bboxes from lwgeom to gserialized when working with geodetics. (#263)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4640 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-11 02:03:13 +00:00