Commit graph

33 commits

Author SHA1 Message Date
Sandro Santilli 0acdc94202 Don't include liblwgeom.h from headers if not needed, document what is it needed for in implementation files [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7713 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 09:51:52 +00:00
Sandro Santilli 4f058f6f1b Include postgis_config.h to find POSTGIS_VERSION and stringbuffer.h when needed
git-svn-id: http://svn.osgeo.org/postgis/trunk@7705 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 18:42:28 +00:00
Mark Cave-Ayland baeeefeb22 Update loader regression test suite to add a simple test for shp2pgsql (much as we now do for pgsql2shp).
Note that these tests aren't completely comprehensive and should be expanded, with the long term aim
of moving the loader regression tests out of the main regression harness and into CUnit instead.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7551 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-02 13:43:35 +00:00
Paul Ramsey 359ab99a41 Jeff Adams: Increasing precision due to tests failing in automatic build.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6925 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 16:24:33 +00:00
Paul Ramsey a2c725a6fb Fixes the following shp2pgsql issues:
#229: A new "-r" command line parameter to specify a "from" SRID for reprojecting (the existing -s is the "to").
#779: -S now works for points, and -w is documented.
#864: MULTIPOINT shapefiles with single-vertex points now correctly load with all MULTIPOINTs.
#865: no longer crashes when both -g and -G are used.



git-svn-id: http://svn.osgeo.org/postgis/trunk@6922 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-18 15:40:31 +00:00
Paul Ramsey 2db8d4de0e Jeff Adams patch to add command line flag to not use a transaction. (#110)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6909 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 17:16:47 +00:00
Paul Ramsey eea9d3470a Jeff Adams patch to support tablespaces (#67)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6905 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-16 13:02:43 +00:00
Paul Ramsey 2a22e258a6 Change default shp2pgsql column to "geom" (#352)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6358 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-13 20:09:26 +00:00
Paul Ramsey 88f90fa704 First attempt at i18n for the loader/dumper.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6239 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-02 00:44:24 +00:00
Mark Leslie 3983aac02f Reverting the default geometry column name change. Got too excited... breathe deep...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6008 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-22 23:45:35 +00:00
Mark Leslie ad448d6d6a Changing the default geometry name from 'the_geom' to 'geom'
git-svn-id: http://svn.osgeo.org/postgis/trunk@5998 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-21 23:11:35 +00:00
Mark Leslie b2e8013c76 Clearing some compile warnings and fixing the issue where the test connection button always reported success.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5995 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-21 03:36:12 +00:00
Mark Cave-Ayland 261317349b Commit initial version of reworked pgsql2shp architecture that defines a common API within pgsql2shp-core that can be called from both the existing CLI and in the future a GUI interface.
This commit also includes a very comprehensive reworking of the old pgsql2shp code designed to make things better commented and maintainable in the long term, so please use on as many PostGIS tables as possible during testing.

This work was primarily sponsored by OpenGeo (http://opengeo.org) - thanks guys!


git-svn-id: http://svn.osgeo.org/postgis/trunk@5828 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 14:20:20 +00:00
Paul Ramsey c31cb1351c Fix utf8 to return *something* when it can, so that something can be reported in
the error string.


git-svn-id: http://svn.osgeo.org/postgis/trunk@5646 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-27 13:19:12 +00:00
Paul Ramsey a1e5b8a235 Change default back to UTF8 and improve error message on failure.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5643 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-26 17:26:58 +00:00
Paul Ramsey e9a496c4ec Back off from Win32 encoding to more generic ISO8859-1
git-svn-id: http://svn.osgeo.org/postgis/trunk@5638 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-25 18:44:41 +00:00
Paul Ramsey 77b245cb34 Rename vasbappend to stringbuffer_aprintf
git-svn-id: http://svn.osgeo.org/postgis/trunk@5623 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-17 23:38:04 +00:00
Paul Ramsey e1468a20ac Allow GUI to create partial connection strings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5622 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-17 23:33:31 +00:00
Paul Ramsey 1ca9049cde Some function renaming: lwgeom_typename => lwtype_name. The internal float/up/down functions get slightly better names. Make collection types re-sizable: added maxgeoms to all collections, and created lwcollection_add_lwgeom() function. Remove all *_add functions. Revized homogenize function to use the new _add_lwgeom and variants.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5439 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-16 03:13:33 +00:00
Paul Ramsey 147a101d25 Move stringbuffer from ./loader to ./liblwgeom for use in string emitter functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5284 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 15:30:10 +00:00
Paul Ramsey a636c8f718 Remove the ifdef/endif blocks for HAVE_ICONV (#367)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5098 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-04 05:47:04 +00:00
Paul Ramsey 2c514b1207 Make a few things more explicit in the handling of encoding.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5063 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-30 01:12:14 +00:00
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 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
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 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 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
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
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
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 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 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