Commit graph

51 commits

Author SHA1 Message Date
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 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 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 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
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 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 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 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 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
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
Paul Ramsey d6f7f47e2d Added CVS revision headers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@278 b70326c6-7e19-0410-871a-916f4a2858ee
2003-07-01 18:30:55 +00:00
Paul Ramsey e1549fa3d6 Added CVS substitution strings for logging.
git-svn-id: http://svn.osgeo.org/postgis/trunk@236 b70326c6-7e19-0410-871a-916f4a2858ee
2003-02-04 21:39:20 +00:00
Jeff Lounsbury a6b0d3d0fa added support for clockwise-ness in shp dumper
git-svn-id: http://svn.osgeo.org/postgis/trunk@207 b70326c6-7e19-0410-871a-916f4a2858ee
2002-11-06 23:55:44 +00:00
Paul Ramsey 5f8e465b35 Removed debugging connstring print.
git-svn-id: http://svn.osgeo.org/postgis/trunk@206 b70326c6-7e19-0410-871a-916f4a2858ee
2002-11-04 21:21:43 +00:00
Jeff Lounsbury dc99335b5c fixed the errors in the error fix i had just committed...
git-svn-id: http://svn.osgeo.org/postgis/trunk@195 b70326c6-7e19-0410-871a-916f4a2858ee
2002-10-11 20:22:57 +00:00
Jeff Lounsbury d27d6fda83 Fixed a bug from adding NULL support to shape dumper
git-svn-id: http://svn.osgeo.org/postgis/trunk@194 b70326c6-7e19-0410-871a-916f4a2858ee
2002-10-11 20:10:29 +00:00
Jeff Lounsbury cd0a9d77d5 added support to write out null geometries to polygon, multipolygon, arc, and multiarcs...
git-svn-id: http://svn.osgeo.org/postgis/trunk@193 b70326c6-7e19-0410-871a-916f4a2858ee
2002-10-10 17:32:00 +00:00
Jeff Lounsbury cdb361240d Added support to write out Null geometries to point and mulitpoints
git-svn-id: http://svn.osgeo.org/postgis/trunk@192 b70326c6-7e19-0410-871a-916f4a2858ee
2002-10-10 17:11:30 +00:00
Jeff Lounsbury 77eceafd33 fixed a bug in pgsql2shp which displayed the total DBF rows written as one less than actually was written.
git-svn-id: http://svn.osgeo.org/postgis/trunk@168 b70326c6-7e19-0410-871a-916f4a2858ee
2002-06-07 18:16:55 +00:00
Paul Ramsey e65163c6fc Column name length limitation removed. Patch submitted by Bernhard
Reiter <bernhard@intevation.de>


git-svn-id: http://svn.osgeo.org/postgis/trunk@139 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-26 16:13:33 +00:00
Jeff Lounsbury 39c601c414 added a warning to the shape dumper when there are no fields in the database.
git-svn-id: http://svn.osgeo.org/postgis/trunk@128 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-14 19:35:19 +00:00
Paul Ramsey 7362e68ba4 Patch to pgsql2shp to allow dumping of tables with more than one geometry
column, and addition of -g option to specific which geometry column to dump.
Submitted by Steffen Macke <sdteffen@yahoo.com>.


git-svn-id: http://svn.osgeo.org/postgis/trunk@123 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-23 19:04:46 +00:00
Jeff Lounsbury e1cea42469 Modified both loader/dumper to use gnu getopt.c instead of standar one
since getopt was not the same on solaris and linux.


git-svn-id: http://svn.osgeo.org/postgis/trunk@87 b70326c6-7e19-0410-871a-916f4a2858ee
2001-10-22 20:12:21 +00:00
Paul Ramsey 2668d89e40 Usage documentation changes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@80 b70326c6-7e19-0410-871a-916f4a2858ee
2001-10-15 17:42:27 +00:00
Paul Ramsey b9083c6e97 Edited the usage log to by nicer to 80 column displays
git-svn-id: http://svn.osgeo.org/postgis/trunk@77 b70326c6-7e19-0410-871a-916f4a2858ee
2001-10-11 18:26:51 +00:00
Jeff Lounsbury b1a8c84cfd Fixed some errors and warning that caused it not to compile under linux
git-svn-id: http://svn.osgeo.org/postgis/trunk@76 b70326c6-7e19-0410-871a-916f4a2858ee
2001-10-11 18:07:33 +00:00
Jeff Lounsbury 4acbccec99 Modified the pgsql2shp file to use getopt to parse the arguments.
Modified the Readme file accordingly to the new command line usages.

automatically CVS:  CVS: Committing in . CVS:  CVS: Modified Files: CVS:  postgis/loader/README.pgsql2shp postgis/loader/pgsql2shp.c


git-svn-id: http://svn.osgeo.org/postgis/trunk@74 b70326c6-7e19-0410-871a-916f4a2858ee
2001-10-04 18:53:33 +00:00
Jeff Lounsbury efbe5b6165 Modified this file to dynamically detemine the name of the geometry column
instead of using the default one the loader assigns.


git-svn-id: http://svn.osgeo.org/postgis/trunk@71 b70326c6-7e19-0410-871a-916f4a2858ee
2001-09-20 18:14:43 +00:00