Commit graph

126 commits

Author SHA1 Message Date
Sandro Santilli 648347b0bf Added schema support in getMaxFieldSize.
Added direct support for TIMESTAMP field types (thanks to Steffen Macke).


git-svn-id: http://svn.osgeo.org/postgis/trunk@626 b70326c6-7e19-0410-871a-916f4a2858ee
2004-06-16 13:42:05 +00:00
Paul Ramsey defb838d46 Fix bug in append mode that filled values into nonexistant gid column.
git-svn-id: http://svn.osgeo.org/postgis/trunk@555 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-20 19:21:08 +00:00
Sandro Santilli 733f5b73be Transformed NULL numeric values to 0 as it was before the introduction
of bigint bug workaround.


git-svn-id: http://svn.osgeo.org/postgis/trunk@552 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-13 12:24:15 +00:00
Sandro Santilli a8a91aefe9 Used DBFWriteAttributeDirectly interface for writing attributes.
This way we are not affected by shapelib long-integer bug.


git-svn-id: http://svn.osgeo.org/postgis/trunk@551 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-13 12:13:01 +00:00
Sandro Santilli 0a1c0b6592 Other fix in 3d handling - you should now be able to dump as 2d or 3d any 2d or 3d object
git-svn-id: http://svn.osgeo.org/postgis/trunk@550 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-13 12:07:13 +00:00
Sandro Santilli 1cf3f64656 Fixed bug in 3d features handling.
git-svn-id: http://svn.osgeo.org/postgis/trunk@549 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-13 11:59:08 +00:00
Sandro Santilli 333a313394 Totally reworked code to have a main loop for shapefile objects.
Much more readable, I belive.


git-svn-id: http://svn.osgeo.org/postgis/trunk@548 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-13 09:40:33 +00:00
Sandro Santilli dbe6c870d7 Put table creation code in its own function.
Fixed a bug with NULL shape records handling.


git-svn-id: http://svn.osgeo.org/postgis/trunk@547 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-13 07:48:47 +00:00
Sandro Santilli ef9db1df80 DBFReadStringValue always used to workaround shapelib bug with int values.
git-svn-id: http://svn.osgeo.org/postgis/trunk@546 b70326c6-7e19-0410-871a-916f4a2858ee
2004-05-13 06:38:39 +00:00
Sandro Santilli 7a49fd0f91 Attribute names escaping mechanism added. You should now
be able to dump a shapefile equal to the one loaded.


git-svn-id: http://svn.osgeo.org/postgis/trunk@506 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-21 09:13:15 +00:00
Sandro Santilli b5d1f0b251 Memory allocated for main_scan_query was not enough when using binary cursor. Fixed
git-svn-id: http://svn.osgeo.org/postgis/trunk@505 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-21 07:38:34 +00:00
Sandro Santilli aa1f562bca Fixed a bug in WKB parsing for Multipoints.
Fixed a bug in -d handling for WKB.
Added point->multipoint fluffing capabilities.


git-svn-id: http://svn.osgeo.org/postgis/trunk@496 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-29 10:20:48 +00:00
Sandro Santilli 5ac57bbae2 Fixed a bug reducing the output shapes from Multipolygon tables.
git-svn-id: http://svn.osgeo.org/postgis/trunk@485 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 18:46:07 +00:00
Sandro Santilli aca432a6f7 removed just-introduced bug
git-svn-id: http://svn.osgeo.org/postgis/trunk@484 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 17:35:16 +00:00
Sandro Santilli 37e2d3b3fa code cleanup, fixed a bug missing to transform 'gid' to 'gid__2' in shapefile attribute name
git-svn-id: http://svn.osgeo.org/postgis/trunk@483 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 17:23:56 +00:00
Sandro Santilli 7301829942 Added RCSID string in usage output
git-svn-id: http://svn.osgeo.org/postgis/trunk@475 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-06 17:43:06 +00:00
Sandro Santilli ea0951f977 Added rcsid string to usage output
git-svn-id: http://svn.osgeo.org/postgis/trunk@474 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-06 17:35:59 +00:00
Sandro Santilli 996e2a8b54 byte endiannes detected empirically
git-svn-id: http://svn.osgeo.org/postgis/trunk@446 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-09 18:49:23 +00:00
Sandro Santilli 8f07be0a9a updated wkb reading funx to reflect changes made by pramsey in postgis_inout.c to be nicer with solaris
git-svn-id: http://svn.osgeo.org/postgis/trunk@445 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-06 08:26:02 +00:00
Paul Ramsey e2cb22a273 Added DESTDIR to Makefiles to assist in RPM building.
git-svn-id: http://svn.osgeo.org/postgis/trunk@434 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-03 21:38:31 +00:00
Sandro Santilli d9b5e0b58f schema support added, slightly modified logic used to keep table and schema names cases (always quoted and forced to lower case if not asked to keep original case)
git-svn-id: http://svn.osgeo.org/postgis/trunk@433 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-03 08:37:48 +00:00
Sandro Santilli 9d6564462f Added FTLogical<->boolean mapping
git-svn-id: http://svn.osgeo.org/postgis/trunk@427 b70326c6-7e19-0410-871a-916f4a2858ee
2004-01-16 20:06:10 +00:00
Sandro Santilli fc2838d543 field type array allocates num_fields * sizeof(int) instead of sizeof(char*)
git-svn-id: http://svn.osgeo.org/postgis/trunk@426 b70326c6-7e19-0410-871a-916f4a2858ee
2004-01-15 09:57:07 +00:00
Sandro Santilli ead3ee47c0 always call setval with no schema specification. drop 'database' argument using the empty string to the AddGeometryColumn call
git-svn-id: http://svn.osgeo.org/postgis/trunk@419 b70326c6-7e19-0410-871a-916f4a2858ee
2004-01-02 20:11:41 +00:00
Sandro Santilli 36491714ba made shp2pgsql looser about numeric precisions
git-svn-id: http://svn.osgeo.org/postgis/trunk@418 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-30 13:31:53 +00:00
Sandro Santilli 3d34af5c23 Fixed segfault bug reported by Randy George, removed explicit sequence drop
git-svn-id: http://svn.osgeo.org/postgis/trunk@417 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-30 12:37:46 +00:00
Sandro Santilli 7a24e39a3f Added schema specification support
git-svn-id: http://svn.osgeo.org/postgis/trunk@415 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-27 13:30:23 +00:00
Sandro Santilli f642ab98f1 substituted setenv() calls with putenv() for Solaris support
git-svn-id: http://svn.osgeo.org/postgis/trunk@413 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-19 18:55:46 +00:00
Sandro Santilli 6a023a1ed4 Removed useless linkages from dumper and loader
git-svn-id: http://svn.osgeo.org/postgis/trunk@401 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-04 19:12:48 +00:00
Sandro Santilli 78e9411ebf code cleanup (removed useless and leaking malloc calls)
git-svn-id: http://svn.osgeo.org/postgis/trunk@400 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-04 19:11:56 +00:00
Sandro Santilli 5487e7e639 shapelib put in sync with gdal cvs
git-svn-id: http://svn.osgeo.org/postgis/trunk@398 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-01 20:52:00 +00:00
Sandro Santilli c4c21ce05a added simple malloc wrapper
git-svn-id: http://svn.osgeo.org/postgis/trunk@397 b70326c6-7e19-0410-871a-916f4a2858ee
2003-12-01 14:27:58 +00:00
Sandro Santilli 70c498d774 Some more changes, now useless since wkb.h is no more used (just to get in sync)
git-svn-id: http://svn.osgeo.org/postgis/trunk@396 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-28 11:28:03 +00:00
Sandro Santilli 06778b58d4 fixed bug in HexDecoder, made WKB parsing the default
git-svn-id: http://svn.osgeo.org/postgis/trunk@393 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-26 18:54:22 +00:00
Sandro Santilli d4a8d21069 binary cursor implemented
git-svn-id: http://svn.osgeo.org/postgis/trunk@392 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-26 18:14:11 +00:00
Sandro Santilli e0203c30b1 Made HEXWKB parsing settable at compile time
git-svn-id: http://svn.osgeo.org/postgis/trunk@391 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-26 17:21:00 +00:00
Sandro Santilli 780004614b Handled NULLS in wkb parsing, reduced functions args
git-svn-id: http://svn.osgeo.org/postgis/trunk@390 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-26 16:40:41 +00:00
Sandro Santilli ac80b09807 wkb support for all geom types
git-svn-id: http://svn.osgeo.org/postgis/trunk@389 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-26 15:45:53 +00:00
Sandro Santilli 620533a449 WKB start to work
git-svn-id: http://svn.osgeo.org/postgis/trunk@388 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-26 14:31:20 +00:00
Sandro Santilli 3ce0f0147d first attempt at wkb definitions
git-svn-id: http://svn.osgeo.org/postgis/trunk@387 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-25 17:32:47 +00:00
Sandro Santilli 5e4d2625d6 hardly trying to get WKB parsing work
git-svn-id: http://svn.osgeo.org/postgis/trunk@386 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-25 17:28:03 +00:00
Sandro Santilli ff12140764 Removed useless BYTE_ORDER checks
git-svn-id: http://svn.osgeo.org/postgis/trunk@383 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-24 17:36:28 +00:00
Paul Ramsey ae5cd609a4 Added Cygwin endian definition include to fix windows compile.
git-svn-id: http://svn.osgeo.org/postgis/trunk@381 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-21 23:51:14 +00:00
Sandro Santilli 0a2ea1726b patch from m.spring@gmx.de
git-svn-id: http://svn.osgeo.org/postgis/trunk@380 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-20 18:01:26 +00:00
Sandro Santilli 56647c61f7 Removed some useless strdups.
Removed pgtype 22 (int2vector) from the list of integer DBF field types.
Added pgtype 1700 (numeric) in DBF doubles list.


git-svn-id: http://svn.osgeo.org/postgis/trunk@374 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-20 15:27:20 +00:00
Sandro Santilli bd2b8e457b Set CFLAGS where useless CPPFLAGS were used before
git-svn-id: http://svn.osgeo.org/postgis/trunk@373 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-20 14:46:07 +00:00
Sandro Santilli cd5d4d37b8 default row buffer lenght set to 100
git-svn-id: http://svn.osgeo.org/postgis/trunk@365 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-18 14:58:47 +00:00
Sandro Santilli fb3bd9d774 Some more structuring. Initialization routine moved out of main loop.
Preparing dumper for WKB parsing.


git-svn-id: http://svn.osgeo.org/postgis/trunk@364 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-18 14:39:26 +00:00
Sandro Santilli 1612416909 Huge code re-organization. More structured code, more errors handled,
cursor based iteration, less code lines.


git-svn-id: http://svn.osgeo.org/postgis/trunk@363 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-16 00:27:46 +00:00
Sandro Santilli 0e31aceeaf Used environment vars to pass libpq connection options (less error prone,
easier to read). Printed clearer error message on query error.


git-svn-id: http://svn.osgeo.org/postgis/trunk@362 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-14 22:04:51 +00:00