Paul Ramsey
a7523c42e0
Add support for geography type to command-line loader ( #251 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5040 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-21 23:22:21 +00:00
Paul Ramsey
a7f032948f
CFLAGS=-pedantic pass over the codebase and warnings reduced
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5039 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-20 17:42:44 +00:00
Paul Ramsey
ef3985278c
Minor changes to header inclusions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5037 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-20 04:42:53 +00:00
Paul Ramsey
2b13035904
Fix bracket issue in commandline opt handline
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5036 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-20 04:31:06 +00:00
Paul Ramsey
f999959181
Radically simpler getopt implementation from AT&T UNIX.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5035 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-19 03:56:06 +00:00
Paul Ramsey
e5f3b78f64
Add some logging during the load so we can see what's going on.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5034 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-18 20:51:43 +00:00
Paul Ramsey
79944df941
Moved size of int8 down to 19 chars ( #326 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5031 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-18 18:38:45 +00:00
Mark Leslie
7945f3d33d
Reverting the change of r5007, removal of the getopt hack, to get windows builds working again.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5025 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-18 07:46:24 +00:00
Paul Ramsey
b91c810871
Add in icon and resource information for Win32 GUI
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5024 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-18 06:39:48 +00:00
Paul Ramsey
22582d936c
Make GUI open w/o console under Win32
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5023 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-18 05:55:45 +00:00
Mark Cave-Ayland
50c2ad0690
Implement proper cleanup if an import fails, and also disable the "Import" button during the import to ensure that multiple import threads can't be launched.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5020 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-17 12:54:04 +00:00
Mark Cave-Ayland
96c3537db6
Add GUI option to allow the use of COPY rather than INSERT to load geometries into the database. Currently the default is still to use INSERT.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5019 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-17 11:16:20 +00:00
Mark Cave-Ayland
ab5a042bb0
Fix memory scope error (resulting in segfault) accidentally introduced by the command line changes.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5018 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-17 11:11:46 +00:00
Paul Ramsey
5c70b2e03a
Temporarily de-regress the loader while talking to -devel
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5013 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-16 17:13:54 +00:00
Paul Ramsey
825ee0c89c
Change MAX_DBF_FIELD_SIZE to 254 ( #326 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5009 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-15 23:55:16 +00:00
Paul Ramsey
ef4fc1aa6d
Add in support for command-line options for connection info to GUI ( #338 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5008 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-15 23:44:02 +00:00
Paul Ramsey
08d4b9518b
Remove custom getopt files and move back to system getopt. Will take some testing, but will be worth it to be rid of this unmaintainable hack.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5007 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-15 21:45:37 +00:00
Paul Ramsey
798dd19c39
Make null date field blank rather than 00000000 ( #321 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5006 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-15 20:56:41 +00:00
Paul Ramsey
a2e2a58e0b
Add --with-libiconv argument to configure, to allow third-party iconv libraries to be used instead of system iconv, if so desired. Necessary to work around an OS/X Snow Leopard issue (iconv_open only available as a 32 bit call!)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5004 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-15 18:44:09 +00:00
Paul Ramsey
ea889a8fda
Fix buffer overrun case.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5003 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-15 18:42:57 +00:00
Paul Ramsey
7b388bfb50
Flip argument order for -cli exe build and add CFLAGS back into linking line
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5000 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-14 18:04:43 +00:00
Mark Cave-Ayland
a9c5bf3b9b
Remove the original shp2pgsql.c file which is no longer required with the new architecture.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4999 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-14 11:26:22 +00:00
Mark Cave-Ayland
e1d372a860
Fix incorrect logic when outputting escaped strings; COPY does not require the attribute to be surrounded by apostrophes.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4998 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-14 01:38:33 +00:00
Mark Cave-Ayland
0237bbee4a
Fix missing COPY terminator from shp2pgsql command line component.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4997 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-14 01:23:14 +00:00
Mark Cave-Ayland
122018cc47
Commit initial version of reworked shp2pgsql architecture that defines a common API within shp2pgsql-core that can be called from both the CLI and GUI interfaces.
...
There are still some minor TODOs left, however the basic concept appears to work well and I've also spent time running tests under valgrind to ensure that we don't leak memory on larger shapefiles.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4996 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-13 20:31:54 +00:00
Mark Cave-Ayland
bcad47c7e0
Apply Kris Jurka's pgsql2shp patches, as detail in the postgis-devel archives on 12th Nov. Thanks Kris!
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4870 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-20 14:02:50 +00:00
Mark Cave-Ayland
db6ae3a79c
Finish working on Dave Fuhry's memory-leak patch, and also fix several other leaks found by running shp2pgsql through valgrind.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4868 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-20 13:53:48 +00:00
Mark Cave-Ayland
358145833b
Alter regression test harness so that shp2pgsql/pgsql2shp can be tested without being installed.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4862 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-19 15:39:27 +00:00
Paul Ramsey
ac4e5e18fe
Handle odd ArcMap scinotation for large ints. ( #38 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4816 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-15 19:52:40 +00:00
Sandro Santilli
27b88d9fdb
Tell what the default is for -N in help output and README file
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4655 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-16 09:37:14 +00:00
Mark Cave-Ayland
1f10ab9eb5
Move CFLAGS after the PGXS include directive, so that the autotools configuration doesn't getting overwritten by the PGXS version. Required when passing custom compiler f
...
lags into PostGIS as reported by William Kyngesburye.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4602 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-06 08:52:23 +00:00
Sandro Santilli
8f71576659
typo in help message
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4578 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-02 14:13:50 +00:00
Sandro Santilli
820ab0ee06
add missing newline at end of error message (utf8/iconv)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4555 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 08:39:34 +00:00
Mark Cave-Ayland
903a69f3fa
Commit patch for missing lw_asprintf() from #222 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4308 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-16 21:26:07 +00:00
Paul Ramsey
491022206d
MinGW fix for loader ( #222 ), Mark Cave-Ayland
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4293 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-13 17:27:41 +00:00
Mark Cave-Ayland
ac35cb0ab1
Alter loader Makefile to include PGXS so that we can extract DESTDIR to use for the location for shp2pgsql/pgsql2shp. Per report from Devrim GÜNDÜZ.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4258 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-05 21:41:27 +00:00
Regina Obe
fd12850ee7
More cleanup of code comments so function descriptions are picked up by doxygen
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4211 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-25 03:32:43 +00:00
Mark Cave-Ayland
2adac1fd40
Remove validation from shapefile to WKT/WKB conversion to retain same behaviour as 1.3. Final resolution for #198 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4203 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-24 11:18:00 +00:00
Paul Ramsey
cfb44a749f
astyle --style=ansi --indent=tab ( #133 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4168 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-11 16:44:03 +00:00
Mark Cave-Ayland
b5615b4fbf
Correct erroneus formatting which was causing two comments to be nested and hence generating a compiler warning.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4077 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-09 11:46:18 +00:00
Regina Obe
abf5606427
change commenting style to javadoc style
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4057 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-03 03:16:42 +00:00
Regina Obe
cb57e67e82
make function descriptions doxygen friendly
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4054 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-02 09:40:13 +00:00
Regina Obe
a1a7b22c83
change error about unknown spatial ref to a warning.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4034 b70326c6-7e19-0410-871a-916f4a2858ee
2009-04-27 22:07:27 +00:00
Mark Cave-Ayland
968d55f9ec
Try and fix shp2pgsql-core for bug #124 . Need to change sprintf() to pgis_exec() within the loader.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3999 b70326c6-7e19-0410-871a-916f4a2858ee
2009-04-14 14:25:35 +00:00
Mark Cave-Ayland
cd6bd742d8
Same as r3994 but for the second copy of shp2pgsql.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3995 b70326c6-7e19-0410-871a-916f4a2858ee
2009-04-12 12:18:21 +00:00
Mark Cave-Ayland
f4532a5fab
Fix #104 'shp2pgsql is using deprecated PostgreSQL escape syntax'. Remember that not everyone's installation has "standard_conforming_strings" enabled by default.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3994 b70326c6-7e19-0410-871a-916f4a2858ee
2009-04-12 11:16:33 +00:00
Mark Cave-Ayland
f132b800ba
Make good on my promise from bug #123 to remove the E'...' escaping from shp2pgsql and revert to standard SQL escaping. Also rename protect_quote_string() and make_good_string() to escape_insert_string() and escape_copy_string() respectively so the names reflect what they actually do.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3989 b70326c6-7e19-0410-871a-916f4a2858ee
2009-04-10 08:27:58 +00:00
Paul Ramsey
9006239c0f
Add variable decls to trunk :)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3750 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-19 21:12:22 +00:00
Paul Ramsey
5a578a7217
Add EOF marker, per GBT#105
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3749 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-19 20:59:31 +00:00
Paul Ramsey
60a6511ce2
Demote new loader code from default build for now.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3682 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-10 20:10:53 +00:00
Paul Ramsey
cdfcc4e366
Propset Author Id Keyword Revision on all files.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3639 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-04 00:28:37 +00:00
Paul Ramsey
49a79bbcf6
Use "extended string" format for escaping \ and ' in insert statements.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3623 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-03 07:20:16 +00:00
Regina Obe
57d0d4bd2f
Fix DBFReadDeleted logic -- should return 1 if record is deleted and 0 if it is not deleted
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3561 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-22 18:19:08 +00:00
Paul Ramsey
8f40b03052
Put translation_stage into descriptive MACRO names
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3544 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-20 18:43:50 +00:00
Paul Ramsey
6b2bb990a3
Replace hand-built pkg-config routine w/ m4 from gtk source.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3542 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-20 17:48:44 +00:00
Paul Ramsey
ce54e4aadf
Compile your work much?
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3541 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-20 07:36:49 +00:00
Paul Ramsey
da27e2b70e
Protect the filename setting a little bit more in case it's NULL.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3540 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-20 07:13:23 +00:00
Paul Ramsey
1893da945c
First revision of the GUI. Configure using --with-gui to enable full GUI build. New core/cli will build by default. Old utilities remain in place for now.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3538 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-19 21:33:14 +00:00
Paul Ramsey
e35e08942e
Remove double-free problem from loader in presence of new deep-freeing lwfree calls.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3519 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-12 19:29:57 +00:00
Paul Ramsey
6744f68423
Rename lwfree_* to *_free.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3510 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-09 17:41:23 +00:00
Paul Ramsey
f59409b80b
Remove memory leak in standard loader.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3495 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-07 01:16:40 +00:00
Mark Cave-Ayland
d017c50ee9
Remove the PostGIS LWGEOM type constants from pgsql2shp - they are no longer needed here as they are included as part of liblwgeom.h.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3451 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-19 14:59:25 +00:00
Paul Ramsey
78c109c5c4
Complete the pfree_ to lwfree_ renaming.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3450 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-18 20:42:09 +00:00
Paul Ramsey
4dc0a4cf91
Rename pfree_* memory management function lwfree_*
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3447 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-18 20:30:30 +00:00
Regina Obe
97f10ad866
minor comment addition
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3410 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-15 13:36:56 +00:00
Regina Obe
267d66e428
use strcmp for compare instead of comparing first element in projcreate
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3390 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-12 16:26:29 +00:00
Regina Obe
94a2c16e4a
Incorporated Mark's suggestion to use PQescapeStringConn instead of building a custom function. Also fixed typo. Note using free() instead of PQfree since couldn't find a PQfree. I looked at the 8.3.5 postgresql source code base, and that's what they seem to use when releasing buffer space.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3377 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-11 15:56:18 +00:00
Regina Obe
6b076145a9
#HISTORY: #GBT:34 - .prj creation by pgsql2shp
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3363 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-05 13:46:50 +00:00
Mark Cave-Ayland
47029e9ebc
Fix GBT#79: shp2pgsql does not honor -s (also known as Mark accidentally missed the sr_id from the geometry constructors)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3359 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-03 17:12:54 +00:00
Mark Cave-Ayland
2f34304910
Change ST_GeomFromText() to GeomFromText() for older hwgeom (-w) support - looks like I was a little bit to eager in my earlier conversion to use the new ST_ calling convention.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3236 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-04 10:00:39 +00:00
Mark Cave-Ayland
f517878e4d
Alter loader Makefile to add liblwgeom.a dependency, so people who just want to build the shapefile loaders can do "make" within the loader subdirectory and liblwgeom.a will automagically get build first.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3235 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-04 09:57:03 +00:00
Mark Cave-Ayland
4135d821fd
Add missing ICONV_LDFLAGS variable to the loader Makefile. Thanks to Olivier Courtin for noticing.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3225 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-03 16:23:45 +00:00
Mark Cave-Ayland
34e9e3263c
Switch pgsql2shp over to using liblwgeom.
...
There are few commits that can be as satisfying as one which involves the removal of ~1200 lines of code. By using the liblwgeom parser instead of the in-built parser, we have now achieved the following:
i) all parsers within PostGIS, shp2pgsql and pgsql2shp are now the same which means they all follow the same rules. Also extended error reporting information including error text and position information is available.
ii) the complexity of the shp2pgsql/pgsql2shp is considerably reduced.
The slightly unfortunate cost is the overall executable size is larger, since we are linking with liblwgeom. However, from both a consistency and maintainability point of view, this is a big win. Note that while there may be a difference in behaviour in some corner cases, all regression tests pass here.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3224 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-03 16:17:57 +00:00
Mark Cave-Ayland
38babbcb8f
Some more shp2pgsql clearups; remove some dead commented code and switch over to use the LWDEBUG(F) debugging framework.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3222 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-31 10:04:58 +00:00
Mark Cave-Ayland
bfb072826b
Switch shp2pgsql over to use liblwgeom instead of its own internal parser. Some notes from looking at the code:
...
i) I've abstracted the I/O formatting functions into a new OutputGeometry() function since it allow the logic concerning output formatting to kept in one place, rather than sprinkled throughout all the other Insert* functions.
ii) InsertPoint() and InsertMultiPoint() have been combined, since it seems that the same code will work for both - all that is required is to know whether to produce a MULTIPOINT collecton or a POINT at the end.
iii) I've added additional comments within the Insert* functions to help clarify what is going on in places
iv) It appears some corner cases were missing within the conversion code with respect to Z/M coordinates, so in theory the new code should do a better job.
All in all, the source code is slightly reduced in size (although of course the binary is larger after linking with liblwgeom), and seems a lot more readable to my eyes. A quick TODO is to go through the file and replace the #if...#endif sections related to debugging with LWDEBUG(F) options.
NOTE: I've had to change the Makefile to allow linking against the maths library and liblwgeom.a, so some manual intervention on the automated build may be required ;)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3217 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-30 17:10:44 +00:00
Mark Cave-Ayland
e83d625fe1
After several discussions at PGDay, it seems that the only use-case for the PGXS PROGRAM clause is for programs that wish to link with the backend libraries. Hence create a new Makefile for the loader directory which uses the new autoconf infrastructure, based upon library and dependency lists from the original 1.3 branch.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3143 b70326c6-7e19-0410-871a-916f4a2858ee
2008-10-19 14:52:29 +00:00
Mark Cave-Ayland
244c935729
Alter the lwgeom Makefile so that liblwgeom.a is linked directly, rather than using the -L...-l options on the command line. This is to prevent problems on OSX where PGXSadds the PostgreSQL $libdir to the PostGIS link line, causing it to link to liblwgeom.so produced by older versions of PostGIS rather than the static liblwgeom.a.
...
Also change the PGXS CPP/LIB equivalent variables to use += so that extra compile/link options can be supplied. Per report from Robert Rainthorpe, with thanks to William Kyngesburye.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2918 b70326c6-7e19-0410-871a-916f4a2858ee
2008-08-21 08:45:07 +00:00
Mark Cave-Ayland
4eec27c992
Allow Makefile substitutions for PGCONFIG which are required if pg_config is not located in the path. Note that as part of this fix, we now need to generate topology/Makefile using autoconf. Thanks to Jorgen Austvik for the report and partial patch.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2885 b70326c6-7e19-0410-871a-916f4a2858ee
2008-07-28 10:03:31 +00:00
Mark Cave-Ayland
e3af7ccce5
Update new Makefile copyrights, also remove compat.h from the loader/ directory since it is now no longer needed.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2805 b70326c6-7e19-0410-871a-916f4a2858ee
2008-06-05 14:47:31 +00:00
Mark Cave-Ayland
efad7bcb9e
Remove PQunescapeBytea hack from pgsql2shp which is no longer needed, as it was only required for versions of PostgreSQL < 7.3
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2801 b70326c6-7e19-0410-871a-916f4a2858ee
2008-06-05 11:07:40 +00:00
Mark Cave-Ayland
020c2c5314
Remove extra warnings related to the shp2pgsql deleted records patch
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2785 b70326c6-7e19-0410-871a-916f4a2858ee
2008-05-27 15:08:20 +00:00
Mark Cave-Ayland
c8c98e13ab
Update new build system to include iconv detection for shp2pgsql
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2784 b70326c6-7e19-0410-871a-916f4a2858ee
2008-05-27 14:47:06 +00:00
Paul Ramsey
c003fcb382
Fix for DBF files with deleted records. ( #29 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2783 b70326c6-7e19-0410-871a-916f4a2858ee
2008-05-27 03:00:12 +00:00
Mark Cave-Ayland
cee1f271e5
Commit new build system based upon PGXS. Due to the large number of changes, please refer to http://postgis.refractions.net/pipermail/postgis-devel/2008-May/003010.html .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2774 b70326c6-7e19-0410-871a-916f4a2858ee
2008-05-14 17:10:19 +00:00
Paul Ramsey
dda4f481e0
New -n switch to support DBF-only loading of attributes without shapes.
...
Submitted by Regina Obe.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2764 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-12 16:44:55 +00:00
Paul Ramsey
15f227436b
Reduce FTDate field size to 8 bytes from 10. Matches other calls in the file
...
now, no good explanation in code why it was 10 to start with.
http://postgis.refractions.net/pipermail/postgis-users/2008-April/019169.html
git-svn-id: http://svn.osgeo.org/postgis/trunk@2762 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-10 14:44:26 +00:00
Paul Ramsey
479d0b8054
Change sr_id into an integer, per mca's suggestion.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2760 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-09 19:52:19 +00:00
Paul Ramsey
9a06f4b121
Fix string literal comparison warnings: "comparison with string literal results in
...
unspecified behaviour"
git-svn-id: http://svn.osgeo.org/postgis/trunk@2759 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-08 21:36:50 +00:00
Paul Ramsey
6c6a4e3bee
Rename all occurances of getopt to pgis_getopt to work around
...
OS/X 10.5 system function name collision.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2758 b70326c6-7e19-0410-871a-916f4a2858ee
2008-04-07 20:09:48 +00:00
Mark Cave-Ayland
55bb8de2d3
Rewrite the pgsql2shp connection string code so that it uses a connection string, rather than setting environment variables. MingW-compiled and MSVC-compiled apps seem to have great problems passing the variables to each other, causing regression to fail. With this fix (and a Makefile tweak), it is now possible to run a MingW-compiled PostGIS against an MSVC compiled PostgreSQL and pass all regression tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2726 b70326c6-7e19-0410-871a-916f4a2858ee
2008-01-11 15:04:05 +00:00
Mark Cave-Ayland
723938663d
Apply Tom Glancy's patch to shp2pgsql which corrects an off-by-one error in the field_width calculation when determining which SQL numeric type is required depending upon the length of the corresponding shapefile field. This should eliminate various out of range error messages that may have appeared when attempting to load a converted shapefile into PostgreSQL.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2717 b70326c6-7e19-0410-871a-916f4a2858ee
2007-11-23 10:42:09 +00:00
Mark Cave-Ayland
d6d58efee5
Apply parts of Charlie Savage's MSVC patch - mainly tidying up variable allocations so they appear at the start of functions, but also making better use of the pj_get_errno_ref() which gets rid of the auto-import warnings on MingW.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2715 b70326c6-7e19-0410-871a-916f4a2858ee
2007-10-29 16:29:58 +00:00
Mark Leslie
369b892a5a
Updated the loader to create the index after the data has been loaded.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2667 b70326c6-7e19-0410-871a-916f4a2858ee
2007-07-23 16:29:40 +00:00
Mark Leslie
c0f439fc1c
Upgraded the escaping of quotes from the deprecated backslashing to the doubling of quotes.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2662 b70326c6-7e19-0410-871a-916f4a2858ee
2007-07-16 18:06:32 +00:00
Mark Cave-Ayland
ec2bcb7231
Rollback experimental shp2pgsql escaping change that accidently got included in the last commit :(
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2657 b70326c6-7e19-0410-871a-916f4a2858ee
2007-07-13 05:48:32 +00:00
Mark Cave-Ayland
e03234e557
Correct previous commit for older PostgreSQL versions - the order of the methods in PROJ4SRSCacheContextMethods is not consistent between versions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2656 b70326c6-7e19-0410-871a-916f4a2858ee
2007-07-13 05:42:46 +00:00
Markus Schaber
80ec5d842c
sanitized usage info output on loader/dumper
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2513 b70326c6-7e19-0410-871a-916f4a2858ee
2006-10-14 14:22:10 +00:00
Markus Schaber
5d1e29cdc7
Cleaned up Version.config & co.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2512 b70326c6-7e19-0410-871a-916f4a2858ee
2006-10-14 09:26:13 +00:00
Markus Schaber
8a050ec60c
fix ARC regression test failures in loader
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2506 b70326c6-7e19-0410-871a-916f4a2858ee
2006-10-11 11:19:54 +00:00
Sandro Santilli
40750750a8
Fixed a bug in InsertLineStringWKT, also fixed some typos
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2504 b70326c6-7e19-0410-871a-916f4a2858ee
2006-10-11 10:00:24 +00:00
Markus Schaber
25a72ae95d
added -S option and updated README to loader/dumper
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2503 b70326c6-7e19-0410-871a-916f4a2858ee
2006-10-11 09:43:29 +00:00
Sandro Santilli
ad35244447
lower default verbosity level
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2485 b70326c6-7e19-0410-871a-916f4a2858ee
2006-09-27 08:23:40 +00:00
Sandro Santilli
1fdc2bacfe
Encode pgsql2shp process pid into temporary table name, to reduce likelyhood of name clashes.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2478 b70326c6-7e19-0410-871a-916f4a2858ee
2006-09-25 08:27:02 +00:00
Paul Ramsey
65bc16833f
Added fix for null dates that are encoded as '' instead of 00000000.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2472 b70326c6-7e19-0410-871a-916f4a2858ee
2006-09-09 16:32:57 +00:00
Sandro Santilli
7785157dfa
- BUGFIX in pgsql2shp successful return code.
...
- BUGFIX in shp2pgsql handling of MultiLine WKT.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2383 b70326c6-7e19-0410-871a-916f4a2858ee
2006-06-16 14:12:17 +00:00
Sandro Santilli
d1585244ce
Limited text field size to 255 (bug #84 ) [will eventually provide a switch to support wider fields ]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2334 b70326c6-7e19-0410-871a-916f4a2858ee
2006-04-18 14:09:28 +00:00
Sandro Santilli
eb41094120
Substituted bzero() use with memset()
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2328 b70326c6-7e19-0410-871a-916f4a2858ee
2006-04-18 09:16:26 +00:00
Sandro Santilli
f99fa349f3
Swapped stdint.h (unavailable on Solaris9) with inttypes.h
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2303 b70326c6-7e19-0410-871a-916f4a2858ee
2006-02-03 20:53:37 +00:00
Sandro Santilli
89cc24dc01
Added support for Bool and Date DBF<=>PGIS mapping
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2280 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-16 10:42:58 +00:00
Sandro Santilli
145bf17937
ISO C90 comments, signedness mismatch fixes
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2274 b70326c6-7e19-0410-871a-916f4a2858ee
2006-01-09 16:40:16 +00:00
Sandro Santilli
58a5c34a08
Added support for mixed libiconv/iconv
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2226 b70326c6-7e19-0410-871a-916f4a2858ee
2005-12-16 16:47:24 +00:00
Sandro Santilli
3d91194f92
Reworked NULL geometries handling code letting user specify policy (insert,skip,abort). Insert is the default.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2010 b70326c6-7e19-0410-871a-916f4a2858ee
2005-11-01 09:25:47 +00:00
Sandro Santilli
4fba191633
fixed wrong assumption about maximum size of integer attributes (width is maximum size of text representation)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1993 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-24 15:54:22 +00:00
Sandro Santilli
574f208bae
Fixed a bug in string attributes handling truncating values of maximum
...
allowed length, curtesy of Lars Roessiger.
Reworked integer attributes handling to be stricter in dbf->sql mapping
and to allow for big int8 values in sql->dbf conversion
git-svn-id: http://svn.osgeo.org/postgis/trunk@1987 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-24 11:30:59 +00:00
Sandro Santilli
647fccede9
Applied patch by Lars Roessiger handling numerical values with a trailing decima
...
l dot
git-svn-id: http://svn.osgeo.org/postgis/trunk@1982 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-21 11:33:55 +00:00
Sandro Santilli
5e4240a18d
Fixed return code from shp2pgsql
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1963 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-13 13:40:20 +00:00
Sandro Santilli
850f2134c2
Stricter string attributes lenght handling. DBF header will be used
...
to set varchar maxlenght, (var)char typmod will be used to set DBF header
len.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1957 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-03 18:08:55 +00:00
Sandro Santilli
3b31451ce0
Issued a warning when -W is specified and no UTF8 support has been compiled in.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1953 b70326c6-7e19-0410-871a-916f4a2858ee
2005-10-03 07:45:58 +00:00
Sandro Santilli
04a5f3105c
Fixed release of stack memory occurring when shp2pgsql is compiled with USE_ICONV defined, an attribute value needs to be escaped and no -W is used
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1949 b70326c6-7e19-0410-871a-916f4a2858ee
2005-09-30 08:59:29 +00:00
Sandro Santilli
421f400eef
Removed premature object destruction in InsertLineString{WKT,} causing segfault
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1879 b70326c6-7e19-0410-871a-916f4a2858ee
2005-08-29 22:36:25 +00:00
Sandro Santilli
8cdd5e76ce
Fixed sprintf() calls to avoid overlapping memory,
...
reworked not-null objects existance check to reduce startup costs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1872 b70326c6-7e19-0410-871a-916f4a2858ee
2005-08-29 11:48:33 +00:00
Sandro Santilli
433a22c0c6
Support for multibyte field names in loader
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1838 b70326c6-7e19-0410-871a-916f4a2858ee
2005-07-27 02:47:14 +00:00
Sandro Santilli
c29ad34714
Minor cleanups in loader
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1836 b70326c6-7e19-0410-871a-916f4a2858ee
2005-07-27 02:35:50 +00:00
Sandro Santilli
12b1f5be0f
Fixed handling of POINT types as WKT (-w) in loader
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1834 b70326c6-7e19-0410-871a-916f4a2858ee
2005-07-27 02:07:01 +00:00
Sandro Santilli
5aa418465e
Fixed bug in {get,pop}{int,double} for 64bit archs
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1825 b70326c6-7e19-0410-871a-916f4a2858ee
2005-07-22 19:15:28 +00:00
Sandro Santilli
7ee70575ca
Fixed bug in user query handling, reported by Andrew Seales
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1813 b70326c6-7e19-0410-871a-916f4a2858ee
2005-07-12 16:19:35 +00:00
Sandro Santilli
e7f9bc8722
Added conservative iconv detection code
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1808 b70326c6-7e19-0410-871a-916f4a2858ee
2005-07-04 09:47:03 +00:00
Sandro Santilli
b3f50e35ac
Added -I switch for GiST index creation in loader
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1764 b70326c6-7e19-0410-871a-916f4a2858ee
2005-06-16 17:55:58 +00:00
Sandro Santilli
ccd51c65b1
Applied Alex Bodnaru patch for pgsql source tree dependency drop.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1733 b70326c6-7e19-0410-871a-916f4a2858ee
2005-06-04 10:06:14 +00:00
Sandro Santilli
41da80c2d0
Fixed DBF field names handling as for clashes avoiding.
...
pgsql field renames are warned.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1708 b70326c6-7e19-0410-871a-916f4a2858ee
2005-05-16 17:22:43 +00:00
Sandro Santilli
5de62944ca
Applied patch from Obe, Regina to keep identifiers case.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1700 b70326c6-7e19-0410-871a-916f4a2858ee
2005-05-13 14:06:24 +00:00
Sandro Santilli
b9ff3fd328
Added initial custom support for MINGW
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1690 b70326c6-7e19-0410-871a-916f4a2858ee
2005-05-10 09:35:34 +00:00
Sandro Santilli
88f5865443
Applied patch from Ron Mayer fixing a segfault in string escaper funx
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1663 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-21 09:08:34 +00:00
Sandro Santilli
2d92302588
Improved autoconf script, dropped pgsql source dependency. EXPERIMENTAL.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1641 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-18 14:46:48 +00:00
Sandro Santilli
5664e14526
Applied patch by Gino Lucrezi fixing bug in string escaping code.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1617 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-14 12:58:59 +00:00
Sandro Santilli
bd2cd7843c
Added MINGW support as suggested by David Techer.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1610 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-13 14:24:34 +00:00
Sandro Santilli
a6581d22ac
Removed manual update of gid field.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1601 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-06 14:16:43 +00:00
Markus Schaber
a4b120b53a
added -p option (prepare mode) that spits out the table schema without
...
inserting any data.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1600 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-06 14:02:08 +00:00
Sandro Santilli
ed152bfe96
Bugfix in -w (hwgeom) handling of ZM shapefiles.
...
Big reorganizzation of code to easy maintainance.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1599 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-06 10:46:10 +00:00
Sandro Santilli
51b959f159
Added -w flag to output old (WKT/HWGEOM) sql.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1592 b70326c6-7e19-0410-871a-916f4a2858ee
2005-04-04 20:51:26 +00:00
Sandro Santilli
835f49dd3e
Fixed PQunescapeBytearea argument (might give problems on 64bit archs)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1574 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-25 18:43:07 +00:00
Sandro Santilli
daba9669b3
hole-in-ring detector made more readable
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1537 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-15 12:24:40 +00:00
Sandro Santilli
07abb11293
Fixed holes handling.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1535 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-14 22:02:31 +00:00
Sandro Santilli
118bb1eb86
modernized old-style parameter declarations
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1511 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-08 11:06:33 +00:00
Sandro Santilli
cb76e560e3
Fixed bug in multiline handling.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1482 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-04 14:54:03 +00:00
Sandro Santilli
a404fa004e
Applied patch from Jonne Savolainen fixing multilines handling
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1481 b70326c6-7e19-0410-871a-916f4a2858ee
2005-03-04 14:48:22 +00:00
Sandro Santilli
bc4515b303
Added -Wall to CFLAGS
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1391 b70326c6-7e19-0410-871a-916f4a2858ee
2005-02-10 16:34:26 +00:00
Sandro Santilli
236b958664
Added maintainer notice, to reduce Jeff-strk mail bounces
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1360 b70326c6-7e19-0410-871a-916f4a2858ee
2005-01-31 22:15:22 +00:00
Sandro Santilli
19d65be597
Added one more bytes for terminating NULL in utf8 encoder
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1307 b70326c6-7e19-0410-871a-916f4a2858ee
2005-01-17 09:21:13 +00:00
Sandro Santilli
ff97f9de9e
String escaping algorithm made simpler and more robust.
...
Removed escaped strings leaking.
Fixed UTF8 encoder to allocate enough space for 3bytes chars strings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1306 b70326c6-7e19-0410-871a-916f4a2858ee
2005-01-16 16:50:01 +00:00
Sandro Santilli
34c50dbef6
added USE_ICONV configuration
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1289 b70326c6-7e19-0410-871a-916f4a2858ee
2005-01-12 17:03:57 +00:00
Sandro Santilli
b95031e99a
Added optional UTF8 output support as suggested by IIDA Tetsushi
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1288 b70326c6-7e19-0410-871a-916f4a2858ee
2005-01-12 17:03:20 +00:00
Sandro Santilli
ae6099c4f5
Drop useless SRID from geometry when downloading EWKB format.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1176 b70326c6-7e19-0410-871a-916f4a2858ee
2004-12-22 10:29:09 +00:00
Sandro Santilli
e37575ff77
Fixed memory leaks depending on input size.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1145 b70326c6-7e19-0410-871a-916f4a2858ee
2004-12-15 08:46:47 +00:00
Sandro Santilli
6f6515401f
updated
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1103 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-18 18:16:11 +00:00
Sandro Santilli
356c91a09f
Added a copy of the PQunescapeBytea function found in libpq of PG>=73
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1102 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-18 18:14:19 +00:00
Sandro Santilli
3bc9355cfd
Fixed a bug in PIP invocation, added some debugging lines.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1094 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-15 10:51:35 +00:00
Sandro Santilli
69b22ea299
Initial local TODO
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1070 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 16:48:17 +00:00
Sandro Santilli
59c85e0348
removed USE_WKB partially-used define
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1030 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 13:25:44 +00:00
Sandro Santilli
b7af4320b1
HEXWKB polygon
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1029 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 13:24:44 +00:00
Sandro Santilli
bb1d53d998
HEXWKB multiline output
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1027 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 12:59:12 +00:00
Sandro Santilli
a9cbeab0c4
Point and MultiPoint loaded using HEXWKB.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1024 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 12:26:02 +00:00
Sandro Santilli
62644b9c45
fixed prototype for user query table
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1022 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 12:16:47 +00:00
Sandro Santilli
14edda2ba9
Bug fixed in multipoint4D creation
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1020 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 12:15:10 +00:00
Sandro Santilli
4651898edb
Initial WKB functionalities
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1018 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 22:01:35 +00:00
Sandro Santilli
9956cf1f3d
Fixed handling of mixed dimensioned geometries in source table.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@1004 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 08:26:03 +00:00
Sandro Santilli
eaa4467774
Added support for user query (replacing schema.table)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@999 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-14 09:59:51 +00:00
Sandro Santilli
df38f2882d
Added endiannes specification for postgis-1.0.0+
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@985 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 14:34:40 +00:00
Sandro Santilli
f03bb1cceb
Lots of rewriting/cleanup. TypeM/TypeZ supports.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@958 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 21:52:28 +00:00
Sandro Santilli
3f77cf5729
Fixed a bug in 4d handling
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@957 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 21:51:05 +00:00
Sandro Santilli
b30f0466c0
Fixed TYPEM handling.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@952 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 17:15:28 +00:00
Sandro Santilli
23e3949a1a
cleanups
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@950 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 06:54:24 +00:00
Sandro Santilli
3e092d28c7
ZM handling. Log trimmed.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@949 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-06 17:04:38 +00:00
Sandro Santilli
8c9c80a9ac
Other separator fixes
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@947 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-06 10:11:16 +00:00
Sandro Santilli
ce86bacb98
Handled 0-DBF-attributes corner case.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@944 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-06 09:40:27 +00:00
Sandro Santilli
403e2c6118
Added -m / -z switches to control output type: XYM,XYMZ.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@889 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-23 16:14:19 +00:00
Sandro Santilli
c6528bc2da
changed comments to better show shape type handling
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@857 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 17:13:31 +00:00
Sandro Santilli
9bd576c8a2
Added -d -d availability notice in help string.
...
Added user notice about output shape type.
git-svn-id: http://svn.osgeo.org/postgis/trunk@856 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 17:11:44 +00:00
Sandro Santilli
b3ccd35832
Added 4d geometries support.
...
Changelog section moved at bottom file.
git-svn-id: http://svn.osgeo.org/postgis/trunk@854 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 16:33:05 +00:00
Sandro Santilli
f93679560a
Fixed a bug in popbyte. Trapped WKB endiannes errors.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@852 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 14:14:43 +00:00
Sandro Santilli
ddbbc04a15
Postgis-1.x support (LWGEOM) added.
...
postgis version detected at runtime.
Endiannes unchecked ... TODO.
git-svn-id: http://svn.osgeo.org/postgis/trunk@850 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 13:49:27 +00:00
Sandro Santilli
5d1d72d034
Added missing 'uninstall' rules. Fixed existing install rules.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@845 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 10:08:18 +00:00
Sandro Santilli
cbbbfa301c
Configuration and common Makefile work moved to Makefile.config
...
Build is possible from each directory and from the root directory.
git-svn-id: http://svn.osgeo.org/postgis/trunk@844 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 09:58:26 +00:00
Sandro Santilli
08c1adad02
Whole output wrapped in transaction blocks.
...
Drops are out of transaction, and multiple transactions are used
for INSERT mode.
git-svn-id: http://svn.osgeo.org/postgis/trunk@705 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-20 08:14:37 +00:00
Sandro Santilli
9841281893
Fixed a bug in 'append-mode'.
...
Added -g switch to specify geometry column.
Added a note about -d mode conceptual bugs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@704 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-20 07:57:06 +00:00
Sandro Santilli
698551bb90
Another schema support bug from Mark
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@665 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-05 20:00:24 +00:00
Sandro Santilli
e295384583
schema support patches sent by Mark
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@663 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-05 16:53:29 +00:00
Sandro Santilli
e8d7a740d3
Unability to open a shapefile or dbffile reported more nicely.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@656 b70326c6-7e19-0410-871a-916f4a2858ee
2004-07-29 14:10:37 +00:00
Sandro Santilli
57b3d3ddde
Added -i switch
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@645 b70326c6-7e19-0410-871a-916f4a2858ee
2004-07-19 16:24:47 +00:00
Sandro Santilli
8134116e75
Handled empty strings in numeric fields as '0'es... pg_atoi() does
...
not do this (while atoi() does).
git-svn-id: http://svn.osgeo.org/postgis/trunk@635 b70326c6-7e19-0410-871a-916f4a2858ee
2004-06-22 11:05:46 +00:00
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