Commit graph

581 commits

Author SHA1 Message Date
Sandro Santilli 9777285ed0 added 'global' specification to sed command
git-svn-id: http://svn.osgeo.org/postgis/trunk@346 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-04 21:52:23 +00:00
Sandro Santilli 02e0512823 renamed postgis.xml to postgis.xml.in
git-svn-id: http://svn.osgeo.org/postgis/trunk@345 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-04 19:23:39 +00:00
Sandro Santilli 9d27d83e88 dropped 'clean' rule (not really a good idea right now)
git-svn-id: http://svn.osgeo.org/postgis/trunk@344 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-04 19:20:48 +00:00
Sandro Santilli 4e9e685de7 added doc clean in clean rule
git-svn-id: http://svn.osgeo.org/postgis/trunk@343 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-04 19:07:13 +00:00
Sandro Santilli 7fe7c2e5c7 added missing first geom pfree in unite_finalfunc
git-svn-id: http://svn.osgeo.org/postgis/trunk@342 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-04 19:06:08 +00:00
Sandro Santilli 2a48db7575 initial import
git-svn-id: http://svn.osgeo.org/postgis/trunk@341 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-04 18:56:14 +00:00
Sandro Santilli d3334c6014 geoscentroid() removed. both geos and pgis versions are called 'centroid'.
only one version will be compiled based on USE_GEOS flag.


git-svn-id: http://svn.osgeo.org/postgis/trunk@340 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-29 15:53:10 +00:00
Sandro Santilli 8be1b8d0d2 Added geoscentroid function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@339 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-29 13:59:40 +00:00
Sandro Santilli 07c22af97f Added GEOSGetCentroid() function
git-svn-id: http://svn.osgeo.org/postgis/trunk@338 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-29 13:58:28 +00:00
Sandro Santilli 0ea05de924 Added collect_garray() function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@337 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-28 16:57:35 +00:00
Sandro Santilli 560d10c8a2 unite_sfunc() from postgis_geos.c renamed to geom_accum() and moved in postgis_fn.c
git-svn-id: http://svn.osgeo.org/postgis/trunk@336 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-28 15:16:17 +00:00
Sandro Santilli f4ac05564c Added Algorithms section and simplify() enabler code
git-svn-id: http://svn.osgeo.org/postgis/trunk@335 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-28 11:18:27 +00:00
Sandro Santilli d0c8a7f3cc Added postgis_algo.c prototypes
git-svn-id: http://svn.osgeo.org/postgis/trunk@334 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-28 11:16:46 +00:00
Sandro Santilli 1d594f09b5 Added postgis_algo.c build support
git-svn-id: http://svn.osgeo.org/postgis/trunk@333 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-28 11:16:22 +00:00
Sandro Santilli d6b4f9a3c0 handled NULL state array in unite_finalfunc, cleaned up some spurios code
git-svn-id: http://svn.osgeo.org/postgis/trunk@332 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-28 10:59:55 +00:00
Sandro Santilli b6bf297599 unite_sfunc made always copy input array in long lived memory context.
It should now work with safer memory.


git-svn-id: http://svn.osgeo.org/postgis/trunk@331 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-27 23:44:54 +00:00
Sandro Santilli 3cbe397a6c Made GeomUnion release memory soon, Added fastunion support functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@330 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-27 20:13:05 +00:00
Sandro Santilli 587b27d593 Initial import.
git-svn-id: http://svn.osgeo.org/postgis/trunk@329 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-27 10:21:15 +00:00
Sandro Santilli 6135ccc626 Modified strcmp-based if-else with switch-case in GEOS2POSTGIS()
using new GEOSGeometryTypeId() interface.


git-svn-id: http://svn.osgeo.org/postgis/trunk@328 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-24 21:52:35 +00:00
Sandro Santilli f3511dda2c Added GEOSGeometryTypeId(Geometry *) wrapper function.
Added GEOSGetCoordinates_Polygon(Polygon *) as an experimental optimized
version of GEOSGetCoordinates(Geometry *); More to add ...


git-svn-id: http://svn.osgeo.org/postgis/trunk@327 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-24 21:33:21 +00:00
Sandro Santilli 503943efb8 GEOSGetCoordinates() reverted to getCoordinates() call so to be compatible
to all type of geometries (not only LineStrings)


git-svn-id: http://svn.osgeo.org/postgis/trunk@326 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-24 14:29:53 +00:00
Sandro Santilli e7d4945119 Fixed memory leak in GEOSGetCoordinates(), made sure that GEOS2POSTGIS
free type string even in case of collapsed geoms. Made sure that geomunion
release memory in case of exception thrown by GEOSUnion. Sooner release
of palloced memory in PolyFromGeometry (pts_per_ring).


git-svn-id: http://svn.osgeo.org/postgis/trunk@325 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-24 08:28:50 +00:00
Sandro Santilli a429e9406f added memory debugging tips for gcc >= 3.2.2
git-svn-id: http://svn.osgeo.org/postgis/trunk@324 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-23 19:52:04 +00:00
Sandro Santilli 306e5156e0 Added default-commented line to disable gcc "smart" memory caching feature.
git-svn-id: http://svn.osgeo.org/postgis/trunk@323 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-23 09:14:04 +00:00
Sandro Santilli beeb636460 Added 'unite' aggregate.
git-svn-id: http://svn.osgeo.org/postgis/trunk@322 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-23 08:06:54 +00:00
Paul Ramsey 365b109acb More additions to the TODO
git-svn-id: http://svn.osgeo.org/postgis/trunk@321 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-22 20:58:07 +00:00
Paul Ramsey 9dffcf3b73 Updated TODO list somewhat
git-svn-id: http://svn.osgeo.org/postgis/trunk@320 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-22 18:51:08 +00:00
Sandro Santilli 04750ff532 Made GEOS_DIR and PROJ_DIR settable via environment vars
git-svn-id: http://svn.osgeo.org/postgis/trunk@319 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-21 07:44:39 +00:00
Sandro Santilli 13c6c7527e Removed some memory leaks in PostGIS2* converters.
git-svn-id: http://svn.osgeo.org/postgis/trunk@318 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-20 19:50:49 +00:00
Paul Ramsey b4cc63c30f Pass USE_* information to version string, add some 7.4 version passing
flags to the compile.


git-svn-id: http://svn.osgeo.org/postgis/trunk@317 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-17 16:32:36 +00:00
David Blasby 0427c4298a Made Envelope() CW instead of CCW.
git-svn-id: http://svn.osgeo.org/postgis/trunk@316 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-17 16:12:23 +00:00
David Blasby 1137c338ea made isEmpty() return true/false
git-svn-id: http://svn.osgeo.org/postgis/trunk@315 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-17 16:07:05 +00:00
Paul Ramsey c6b8888f9d Added some more AsText wrappers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@314 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-17 00:56:08 +00:00
Paul Ramsey 84d41c0763 Added some AsText wrappers to results to make results match answers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@313 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-17 00:55:05 +00:00
David Blasby df257e9918 Added NOTICE_HANDLER function. For some reason this didnt get properly
committed last time.


git-svn-id: http://svn.osgeo.org/postgis/trunk@312 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-16 20:16:18 +00:00
David Blasby 0dfc4d484c added #include <sys/types.h> for people using freeBSD (strk@keybit.net patch)
git-svn-id: http://svn.osgeo.org/postgis/trunk@311 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-16 16:35:42 +00:00
David Blasby bdee89cd07 added a bunch of catch (GEOSExceptions) blocks to write out more imformative
error messages.


git-svn-id: http://svn.osgeo.org/postgis/trunk@310 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-15 17:04:03 +00:00
David Blasby 346dd794d3 GEOS2POSTGIS - added protection to pfree(NULL) for multi* geoms
git-svn-id: http://svn.osgeo.org/postgis/trunk@309 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-14 23:19:19 +00:00
Paul Ramsey 751e433c78 Added const declarations to sync with current GEOS cvs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@308 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-14 21:42:06 +00:00
David Blasby 79f2ca7d1b Fixed typo in add_to_geometry(). With very poorly aligned sub-objects, it
wouldnt allocate enough memory.  Fixed it so its pesimistic and will allocate
enough memory.


git-svn-id: http://svn.osgeo.org/postgis/trunk@307 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-06 18:09:08 +00:00
David Blasby f8811c83dc added pointonsurface() as a sub. Some memory management fixes/tests.
removed a few NOTICEs.


git-svn-id: http://svn.osgeo.org/postgis/trunk@306 b70326c6-7e19-0410-871a-916f4a2858ee
2003-10-03 16:45:37 +00:00
Paul Ramsey 181de679d3 Patch from strk:
- "\t" always preceeded the first value of a dump_format query
  if NULL

- field values where quoted with (") in dump_format when
  called with -k ( did I introduce that? )

- Appropriate calls to DBF[..]ReadAttributes based on
  cached attribute types.

- Assured that *all* shapes are NULL before exiting with
  an error ( I did not check that NULL shapes in the midle
  of the shapefiles are handled, but previous code did
  not check that either ... )


git-svn-id: http://svn.osgeo.org/postgis/trunk@305 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-29 16:15:22 +00:00
Jeff Lounsbury f47d0fe9c0 fixed a bug that actually tests the first 2 point for pip instead of just thinking I was testing the first two.
git-svn-id: http://svn.osgeo.org/postgis/trunk@304 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-19 00:37:33 +00:00
David Blasby 0dbf38b56a added ability to delete geometries.
git-svn-id: http://svn.osgeo.org/postgis/trunk@303 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-16 20:27:12 +00:00
Jeff Lounsbury be9b09ea85 got rid of warning...
git-svn-id: http://svn.osgeo.org/postgis/trunk@302 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-10 22:44:56 +00:00
Jeff Lounsbury 32609b54b5 changed it to make the field names in the dbf file capital letters
git-svn-id: http://svn.osgeo.org/postgis/trunk@301 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-10 22:40:11 +00:00
Jeff Lounsbury 5b00cdc196 fixed a bug in is_clockwise...
git-svn-id: http://svn.osgeo.org/postgis/trunk@300 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-10 21:36:04 +00:00
David Blasby d1930150ee removed truly_inside() doc.
git-svn-id: http://svn.osgeo.org/postgis/trunk@299 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-04 16:46:00 +00:00
David Blasby 2e6293c424 removed truly_inside() function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@298 b70326c6-7e19-0410-871a-916f4a2858ee
2003-09-04 16:19:06 +00:00
David Blasby 0dd9d64709 fixed geometry_in('SRID=<int>{no ;}').
git-svn-id: http://svn.osgeo.org/postgis/trunk@297 b70326c6-7e19-0410-871a-916f4a2858ee
2003-08-22 17:40:11 +00:00