Commit graph

557 commits

Author SHA1 Message Date
Sandro Santilli d2df927adc Big API cleanup.
Bug fix in box3d computation for collections containing empty elements.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1544 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-18 12:36:27 +00:00
Sandro Santilli f121895c12 BOX2D output reverted to .15g precision
git-svn-id: http://svn.osgeo.org/postgis/trunk@1541 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-17 18:11:57 +00:00
Sandro Santilli e2b5302bbb Early memory releases in lwgeom_translate_recursive
git-svn-id: http://svn.osgeo.org/postgis/trunk@1540 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-17 09:39:51 +00:00
Sandro Santilli f25254bcb4 Changed get_proj4_from_srid() implementation from SQL to PLPGSQL to
workaround a bug of pgsql8.0.{1,2}


git-svn-id: http://svn.osgeo.org/postgis/trunk@1539 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-16 15:08:01 +00:00
Sandro Santilli e53e57d2ff Early memory releases on transform_geometry_recursive() and LWGEOM_asText().
Code cleanups.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1538 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-16 11:41:08 +00:00
Sandro Santilli fbd5640eb8 installdirs/clean rules cleanup suggested by Alex Bodnaru
git-svn-id: http://svn.osgeo.org/postgis/trunk@1533 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-14 11:14:26 +00:00
Sandro Santilli 8f79076045 Early memory release in transform_geom
git-svn-id: http://svn.osgeo.org/postgis/trunk@1532 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-11 17:56:01 +00:00
Sandro Santilli eed544f659 Fixed destructive memory release in LWGEOM_translate()
git-svn-id: http://svn.osgeo.org/postgis/trunk@1531 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-11 17:47:58 +00:00
Sandro Santilli 1a48b910a7 Hopefully fixed bug in int4 and double reader from byte stream (was not
working on 64bit machines).


git-svn-id: http://svn.osgeo.org/postgis/trunk@1528 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-10 19:26:19 +00:00
Sandro Santilli 714f59b534 Made void args explicit to make newer compilers happy
git-svn-id: http://svn.osgeo.org/postgis/trunk@1527 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-10 18:19:16 +00:00
Sandro Santilli 8c419b04bc changed report_error typedef to allow for lwerror usage w/out problems
git-svn-id: http://svn.osgeo.org/postgis/trunk@1526 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-10 18:18:25 +00:00
Sandro Santilli c2853d9b69 More cleanups on 'clean'
git-svn-id: http://svn.osgeo.org/postgis/trunk@1523 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-08 16:46:23 +00:00
Sandro Santilli 17f5c20570 Simplified clean rule
git-svn-id: http://svn.osgeo.org/postgis/trunk@1522 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-08 16:41:28 +00:00
Sandro Santilli 3a64541225 Commented out debugging lines
git-svn-id: http://svn.osgeo.org/postgis/trunk@1513 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-08 11:24:39 +00:00
Sandro Santilli 449a5b558a avoided initializzation of JvNewObjectArray with undefined pointer
git-svn-id: http://svn.osgeo.org/postgis/trunk@1512 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-08 11:24:00 +00:00
Sandro Santilli bf9f8c192e RESTRICT selectivity estimator use self->varno instead of varRelid.
Seems to work for subqueries...


git-svn-id: http://svn.osgeo.org/postgis/trunk@1509 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-08 09:27:23 +00:00
Sandro Santilli 2ea571dffd Fixed debugging lines.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1508 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-08 09:23:34 +00:00
Sandro Santilli 70644577b0 Added missing JTSnoop prototype
git-svn-id: http://svn.osgeo.org/postgis/trunk@1506 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 21:24:22 +00:00
Sandro Santilli 59b48a1394 Put optimization flag back to -O2
git-svn-id: http://svn.osgeo.org/postgis/trunk@1505 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 21:19:48 +00:00
Sandro Santilli a003017908 Removed stub functions (moved to lwgeom_nojts.c) and added stub
for JTSnoop.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1504 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 21:11:07 +00:00
Sandro Santilli 44515dfb91 Added initial JTS wrapper.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1503 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 21:07:06 +00:00
Sandro Santilli cc844ae05b Added spatial_ref_sys.sql and README.postgis to scripts install targets.
Moved .sql scripts from ...$(datadir) to ...$(datadir)/contrib.
Modified GEOS/JTS stub handling to use separate file when disabled.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1502 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 21:06:17 +00:00
Sandro Santilli 512ac03a05 Separate stub funx file for builds w/out GEOS or JTS
git-svn-id: http://svn.osgeo.org/postgis/trunk@1501 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 20:47:56 +00:00
Sandro Santilli 0593e715fd Removed unused lwexploded_dump() function
git-svn-id: http://svn.osgeo.org/postgis/trunk@1495 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-07 13:20:12 +00:00
Mark Leslie 6a68925c53 Cleaned up distance_sphere and updated documentation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1492 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-04 19:31:36 +00:00
Sandro Santilli 0f606e4956 Commented out unused variable
git-svn-id: http://svn.osgeo.org/postgis/trunk@1486 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-04 15:54:30 +00:00
Markus Schaber a59181934e - Separates the version config variables into the toplevel Version.config
- Adds new version config variables for jdbc

- jdbc "make jar" additionally creates files named like
  postgis_1_0_0RC4.jar using the info from Version.config

- org/postgis/Version.java now uses a Makefile generated ressource to
  initialize its values, so it is always "in sync" with Version.config


git-svn-id: http://svn.osgeo.org/postgis/trunk@1484 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-04 15:22:01 +00:00
Sandro Santilli b54009b5d7 Added a maintainer-clean rule.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1479 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-04 14:25:01 +00:00
Sandro Santilli cc58291c23 PG_LWGEOM_construct() moved from lwgeom_api.c to lwgeom_pg.c.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1476 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-04 09:03:32 +00:00
Mark Leslie d1e58a9a5b Rebuilt the distance_sphere function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1466 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-03 17:20:47 +00:00
Sandro Santilli 1fbd3d1ecf Removed generated parser files.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1463 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-03 10:31:22 +00:00
Sandro Santilli 92f4df863b Added generated parsers to avoid FLEX/YACC requirement on release.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1462 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-03 10:29:46 +00:00
Sandro Santilli f1650b3817 Renamed lwgeom_to_wkt to lwgeom_to_ewkt, as it doesn't strip out non-ogc
extensions.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1456 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-01 13:22:50 +00:00
Sandro Santilli 065bc784d8 Fixed install-lwgeom-scripts rule as suggested by Rhys Ickeringill.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1453 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-01 08:43:38 +00:00
Sandro Santilli 58289f3a92 SnapToGrid: Fixed minor bug in consistency check.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1447 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-25 13:42:38 +00:00
Sandro Santilli a88f1eff76 Fixed a bugus free() in LWGEOM_accum.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1446 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-25 13:28:36 +00:00
Sandro Santilli 06f6125337 Added early return from force_collection when input is already a collection
AND has a bbox cache. Suggested by Ron Majer.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1444 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-25 09:31:54 +00:00
Sandro Santilli 62c33b30e3 Added comment on top of TYPE macros
git-svn-id: http://svn.osgeo.org/postgis/trunk@1443 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-25 08:57:50 +00:00
Sandro Santilli 4f04d212d3 Added missing prototype
git-svn-id: http://svn.osgeo.org/postgis/trunk@1438 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-24 08:36:35 +00:00
Sandro Santilli 729090bd46 Fixed bug in StartPoint and EndPoint functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1437 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-24 08:32:08 +00:00
Sandro Santilli cff09f6f13 lib version changed to 1.0.0RC3, scripts version to 0.2.0.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1436 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-24 08:10:21 +00:00
Sandro Santilli f8ae98c28f Fixed GeometryFromText() to add a bbox cache FOR_COMPLEX_GEOMS
git-svn-id: http://svn.osgeo.org/postgis/trunk@1430 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-23 09:58:16 +00:00
Sandro Santilli 419d1ad4c0 Added bool::text cast.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1428 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-23 09:00:36 +00:00
Sandro Santilli ec8c25d78c Early release of DETOASTED geoms.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1421 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-22 10:10:13 +00:00
Sandro Santilli 93847f07b0 Early release of DETOASTED or deserialized geometries, to reduce memory usage
git-svn-id: http://svn.osgeo.org/postgis/trunk@1419 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-22 09:55:41 +00:00
Sandro Santilli 438aa25b34 Forced cleanup of DETOASTED and deserialized geometries for better memory
usage.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1418 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-22 09:39:07 +00:00
Sandro Santilli 9b1be693f9 Changed min() max() usage with LW_MIN() LW_MAX()
git-svn-id: http://svn.osgeo.org/postgis/trunk@1416 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-21 16:22:32 +00:00
Sandro Santilli 593a8032ac Changed byte to uchar to avoid clashes with win32 headers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1415 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-21 16:16:14 +00:00
Sandro Santilli 0942e0dc46 Removed memory leak in geos2postgis polygon conversion.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1407 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-18 08:42:52 +00:00
Sandro Santilli a9ebea2780 Improved transform() errors verbosity.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1406 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-17 16:09:56 +00:00