Commit graph

400 commits

Author SHA1 Message Date
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