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
Sandro Santilli
ada90e07c1
more cvsignore
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@360 b70326c6-7e19-0410-871a-916f4a2858ee
2003-11-12 20:59:06 +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
Paul Ramsey
c73f5b2603
Change sequence handling to respect versions prior to 7.3. Patch from
...
strk.
git-svn-id: http://svn.osgeo.org/postgis/trunk@289 b70326c6-7e19-0410-871a-916f4a2858ee
2003-08-17 19:00:14 +00:00
Jeff Lounsbury
3e8548c269
Removed the setval for the sequence if the value was going to be 0.
...
This avoids a warning that occirs when you try to set it to 0.
git-svn-id: http://svn.osgeo.org/postgis/trunk@284 b70326c6-7e19-0410-871a-916f4a2858ee
2003-08-05 16:28:05 +00:00
Jeff Lounsbury
d506b988b1
Altered the loader to use a (gid serial) type instead of just a (gid int4).
...
Also the gid is now declared as a primary key.
git-svn-id: http://svn.osgeo.org/postgis/trunk@282 b70326c6-7e19-0410-871a-916f4a2858ee
2003-08-01 23:22:44 +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
5586c99dab
It seems that invalid geometries where in the shapefile (as far as shapelib
...
let shp2pgsql know). LINEZ objects with less then 2 vertices. I've
patched shp2pgsql to recognized such an inconsistence and use a NULL
geometry for that record printing a warning on stderr.
<strk@freek.keybit.net>
git-svn-id: http://svn.osgeo.org/postgis/trunk@277 b70326c6-7e19-0410-871a-916f4a2858ee
2003-06-18 16:30:56 +00:00
Paul Ramsey
55c1ab10b6
Patch for optional case sensitivity respect. From strk.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@273 b70326c6-7e19-0410-871a-916f4a2858ee
2003-04-14 18:01:42 +00:00
Jeff Lounsbury
2f415269ca
Fixed a bug which dropped the last Z value of each line in 3d lines.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@249 b70326c6-7e19-0410-871a-916f4a2858ee
2003-04-01 23:02:50 +00:00
Paul Ramsey
f7ce6ed4aa
M-handling patch and some Z-recognition too.
...
From strk@freek.keybit.net .
git-svn-id: http://svn.osgeo.org/postgis/trunk@248 b70326c6-7e19-0410-871a-916f4a2858ee
2003-03-07 16:39:53 +00:00
Jeff Lounsbury
8bb975b8f2
added more type checking into the create table statment.
...
Now uses int8, and numeric types if the columns definitions are too big
git-svn-id: http://svn.osgeo.org/postgis/trunk@243 b70326c6-7e19-0410-871a-916f4a2858ee
2003-02-15 00:27:14 +00:00
Jeff Lounsbury
531b02bb0d
changed the PIP function to loop from i=0 to 1<n-1
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@242 b70326c6-7e19-0410-871a-916f4a2858ee
2003-02-14 20:07:26 +00:00
Paul Ramsey
96820b1766
Changes in preparation for 0.7.4 release.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@240 b70326c6-7e19-0410-871a-916f4a2858ee
2003-02-13 02:48:10 +00:00
Paul Ramsey
585bd29bbf
Fix memory management error, array of pointers allocated insufficient space.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@237 b70326c6-7e19-0410-871a-916f4a2858ee
2003-02-04 22:57:44 +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
Chris Hodgson
d80dce00bd
fixed the last compile warning on solaris/gcc
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@203 b70326c6-7e19-0410-871a-916f4a2858ee
2002-10-17 17:06:39 +00:00
Chris Hodgson
6fd46b3fab
- cleaned up all the compiler warnings
...
- for getopt.c, this involved moving the line:
extern char *getenv(const char *name);
outside of the two nested #ifdefs that it was inside, as it is always required (the code that calls it isn't inside any #ifdefs) Perhaps this may break compilation in non-linux/gnu environments?
git-svn-id: http://svn.osgeo.org/postgis/trunk@202 b70326c6-7e19-0410-871a-916f4a2858ee
2002-10-17 16:45:04 +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
Paul Ramsey
01b1494be4
Patch to write null geometries as "\N" in the dump file format case.
...
Submitted by Steffen Macke <sdteffen@web.de>
git-svn-id: http://svn.osgeo.org/postgis/trunk@178 b70326c6-7e19-0410-871a-916f4a2858ee
2002-08-07 16:31:27 +00:00
Paul Ramsey
99c22d4cf2
fixes the unwanted quotation of NULLs for the sql insert format. Submitted
...
by Steffen Macke.
git-svn-id: http://svn.osgeo.org/postgis/trunk@176 b70326c6-7e19-0410-871a-916f4a2858ee
2002-07-24 20:40:59 +00:00
Paul Ramsey
312b3d828e
Patch from Steffen Macke, NULL attributes are imported as NULL now,
...
gid field renaming works now (case problem), \ and ' are escaped
and don't break the import
git-svn-id: http://svn.osgeo.org/postgis/trunk@172 b70326c6-7e19-0410-871a-916f4a2858ee
2002-07-06 15:16:24 +00:00
Paul Ramsey
92ec50854a
Cygwin fixes to the install target to provide .exe extensions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@169 b70326c6-7e19-0410-871a-916f4a2858ee
2002-06-26 18:25:11 +00:00