Commit graph

579 commits

Author SHA1 Message Date
Sandro Santilli ac88738293 Drop postgis_config.h include from header file (#2303)
It's better to only include build config header from C files.

git-svn-id: http://svn.osgeo.org/postgis/trunk@14176 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-03 06:12:01 +00:00
Paul Ramsey fd21864ac7 Update emails, #3309
git-svn-id: http://svn.osgeo.org/postgis/trunk@14175 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-02 23:05:23 +00:00
Paul Ramsey 17b48d5484 #2473, only create spatial index if there's a shape file
git-svn-id: http://svn.osgeo.org/postgis/trunk@14132 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-29 12:54:22 +00:00
Sandro Santilli f6ff297f88 Honor build flags in liblwgeom and loader dirs (#3291)
Patch by Markus Wanner <markus@bluegap.ch>

git-svn-id: http://svn.osgeo.org/postgis/trunk@14128 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-29 11:43:58 +00:00
Sandro Santilli ea6f8a59d5 Strip BOM out of manpage (#3292)
Thanks Markus Wanner <markus@bluegap.ch>

git-svn-id: http://svn.osgeo.org/postgis/trunk@14127 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-29 11:38:31 +00:00
Regina Obe 987a97e193 #3289 - spelling mistakes -- apply remainder shplib provided by sebastic
git-svn-id: http://svn.osgeo.org/postgis/trunk@14115 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-26 14:30:47 +00:00
Paul Ramsey 32f2ea28aa #2220, write the encoding down when exporting a shape file
git-svn-id: http://svn.osgeo.org/postgis/trunk@14090 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-23 21:04:09 +00:00
Paul Ramsey b7e1a876eb #2283, shp2pgsql may be parsing shp's multipolygon incorrectly
git-svn-id: http://svn.osgeo.org/postgis/trunk@13933 b70326c6-7e19-0410-871a-916f4a2858ee
2015-08-18 13:40:02 +00:00
Paul Ramsey ef5c3e4b69 #2562, ANALYZE tables after shp2pgsql load
git-svn-id: http://svn.osgeo.org/postgis/trunk@13832 b70326c6-7e19-0410-871a-916f4a2858ee
2015-07-22 16:14:54 +00:00
Paul Ramsey e2f4403eb5 Quiet warnings: unsigned ints can't be negative
git-svn-id: http://svn.osgeo.org/postgis/trunk@13822 b70326c6-7e19-0410-871a-916f4a2858ee
2015-07-22 12:35:40 +00:00
Sandro Santilli 9a8fe23919 Drop unused lw_vasprintf / lw_asprintf functions from liblwgeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@13651 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-11 10:13:23 +00:00
Paul Ramsey 8d2ed97250 Add back some $Id tags and files missing in TWKB commit
git-svn-id: http://svn.osgeo.org/postgis/trunk@13497 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-13 18:29:52 +00:00
Paul Ramsey 870eaef414 Remove the many and unloved $Id$ tags that clutter the code base
git-svn-id: http://svn.osgeo.org/postgis/trunk@13496 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-13 18:13:18 +00:00
Sandro Santilli d7ac463494 C++ style comments are not allowed in ISO C90
git-svn-id: http://svn.osgeo.org/postgis/trunk@13473 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-04 08:36:28 +00:00
Regina Obe bff824ec25 #3102 - add include <locale.h> to fix mingw-64 compile issue
git-svn-id: http://svn.osgeo.org/postgis/trunk@13445 b70326c6-7e19-0410-871a-916f4a2858ee
2015-04-26 00:43:05 +00:00
Paul Ramsey 7f96b4d20e #3048, shp2pgsql - illegal number format when specific system locale set
git-svn-id: http://svn.osgeo.org/postgis/trunk@13439 b70326c6-7e19-0410-871a-916f4a2858ee
2015-04-23 19:36:10 +00:00
Sandro Santilli d1d939a09f Libtoolize build of loader unit tester, fixing build for me
git-svn-id: http://svn.osgeo.org/postgis/trunk@13344 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-17 09:03:20 +00:00
Sandro Santilli 267dcbd32f Fix warning about unchecked return code
The code path is actually never hit as far as I can tell

git-svn-id: http://svn.osgeo.org/postgis/trunk@13227 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-17 11:22:04 +00:00
Sandro Santilli 9c2823af82 Drop use of lw_asprintf
Also removes a memory leak

git-svn-id: http://svn.osgeo.org/postgis/trunk@13226 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-17 11:06:33 +00:00
Sandro Santilli f0d8e9934a Fix another typo in recent rewrite of message handlers
git-svn-id: http://svn.osgeo.org/postgis/trunk@13225 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-17 10:42:51 +00:00
Sandro Santilli fc4a5f4307 Fix typo in recent rewrite of message handlers
git-svn-id: http://svn.osgeo.org/postgis/trunk@13224 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-17 10:29:26 +00:00
Sandro Santilli 35363430c5 Remove use of lw_vasprintf from loader GUI
git-svn-id: http://svn.osgeo.org/postgis/trunk@13223 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-17 10:23:18 +00:00
Sandro Santilli d0a0122c53 Remove unused vasbappend function from shp2pgsql core
git-svn-id: http://svn.osgeo.org/postgis/trunk@13221 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-17 10:03:53 +00:00
Paul Ramsey 94f57513ea Replace final reference to 'make' with $(MAKE)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13135 b70326c6-7e19-0410-871a-916f4a2858ee
2014-12-02 00:33:33 +00:00
Paul Ramsey 143ef0abc8 Quiet warnings from clang
git-svn-id: http://svn.osgeo.org/postgis/trunk@12987 b70326c6-7e19-0410-871a-916f4a2858ee
2014-09-18 18:27:12 +00:00
Sandro Santilli 8f6a146181 Simplify mapping file parsing
git-svn-id: http://svn.osgeo.org/postgis/trunk@12827 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-25 15:25:54 +00:00
Sandro Santilli dbc1396941 Share code handling field name mapping between loader and dumper
git-svn-id: http://svn.osgeo.org/postgis/trunk@12826 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-25 12:14:23 +00:00
Regina Obe 2ee85feaa4 #899 shp2pgsql attribute names mapping (including test
git-svn-id: http://svn.osgeo.org/postgis/trunk@12821 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-24 17:37:10 +00:00
Sandro Santilli 91968348ee Fix index creation in loaders
The bug was introduced with previous commit (typo)
See #2811

git-svn-id: http://svn.osgeo.org/postgis/trunk@12749 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-07 08:58:17 +00:00
Sandro Santilli 510b07c24a Do not explicitly name indexes loading rasters/shapefiles (#2811)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12746 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-07 08:10:48 +00:00
Paul Ramsey b55193f5c3 Quiet LLVM warnings and remove old ignores from properties
git-svn-id: http://svn.osgeo.org/postgis/trunk@12448 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-09 20:10:13 +00:00
Mateusz Loskot 2230901574 Handle error condition from fputs
git-svn-id: http://svn.osgeo.org/postgis/trunk@12432 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-07 14:51:51 +00:00
Sandro Santilli 9ffdd8c09f Re-add printing return from puts with POSTGIS_DEBUG_LEVEL defined
git-svn-id: http://svn.osgeo.org/postgis/trunk@12429 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-07 14:39:56 +00:00
Mateusz Loskot 7d0c8196a6 Update r12421: Remove use of no longer existent fputs result
git-svn-id: http://svn.osgeo.org/postgis/trunk@12427 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-07 13:31:30 +00:00
Sandro Santilli 957e183503 Fix type detection in tables with null geometries (#2700)
Includes testcase

git-svn-id: http://svn.osgeo.org/postgis/trunk@12421 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-04 11:47:12 +00:00
Paul Ramsey bf2901b473 #2622, Update links to PostGIS website in source file headers
git-svn-id: http://svn.osgeo.org/postgis/trunk@12198 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-29 17:49:35 +00:00
Sandro Santilli 28cd1779ad Fix segfault on bogus pgsql2shp call (#2504)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12017 b70326c6-7e19-0410-871a-916f4a2858ee
2013-10-09 14:36:46 +00:00
Paul Ramsey f4c7dbc439 (#2397) read LDID/CPG where appropriate
git-svn-id: http://svn.osgeo.org/postgis/trunk@11713 b70326c6-7e19-0410-871a-916f4a2858ee
2013-07-31 18:30:11 +00:00
Regina Obe 0ea20de660 #2230 can't dump on windows 64 if schema qualified. Fix by replacing with more modern code (follow same pattern and standardiz naming of variable as shp2pgsql) (should probably apply astyle but will do later)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11710 b70326c6-7e19-0410-871a-916f4a2858ee
2013-07-20 03:44:03 +00:00
Regina Obe 4f2a80d234 man page for shp2pgsql-gui provided by Mònica Ramírez Arceda and mwanner
git-svn-id: http://svn.osgeo.org/postgis/trunk@11705 b70326c6-7e19-0410-871a-916f4a2858ee
2013-07-20 01:40:16 +00:00
Regina Obe c6c8cb8f3c #1898, #2322 move geos functions in lwtin.c to lwgeom_geos.c to prevent unhealthy dependency on geos (for loader tools and also image generator), roll back change to cunit for loader (the geos includes). bump up version number to beta2dev
git-svn-id: http://svn.osgeo.org/postgis/trunk@11438 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-12 02:27:58 +00:00
Sandro Santilli fbe19a6590 Ensure local liblwgeom dir is added first to include path in loader/
git-svn-id: http://svn.osgeo.org/postgis/trunk@11364 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-06 08:30:51 +00:00
Regina Obe 3b2279c22b Add GEOS to compile cunit flags of shp2pgsql to prevent error in #1898
git-svn-id: http://svn.osgeo.org/postgis/trunk@11363 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-06 07:58:11 +00:00
Paul Ramsey 4762b673c7 Change PGCONFIG to PG_CONFIG
git-svn-id: http://svn.osgeo.org/postgis/trunk@11301 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-16 15:21:42 +00:00
Mark Cave-Ayland 27cedd5015 Associated CLI fix for #2272: shp2pgsql-gui crashes when given filenames with dots.
After some experimentation, the best solution seems to be to use a separate scan to
remove the extension before finding the non-path section when deriving the table
name.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11294 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-13 18:26:44 +00:00
Mark Cave-Ayland 96bcfdc656 Fix for bug #2272: shp2pgsql-gui crashes when given filenames with dots.
This was a combination of two bugs: firstly, we weren't initialising the
state variable field_names to NULL, and so if the variable happened to
be filled with junk and we were unable to import a shape file, we would
end up freeing a random pointer.

Secondly, shapelib tries to be clever and strip off any file extension
by searching for a "." character from the end of the filename, hence
causing the truncation of the filename. Resolve this by leaving the
.shp/.dbf extension from the file selector in the filename string so
that shapelib does the right thing.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11292 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-13 17:36:22 +00:00
Bborie Park a1a3e50c63 Set CFLAGS in loader cunit tests so that mingw can run tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@11226 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-29 20:37:55 +00:00
Paul Ramsey 838096c92d #2186, gui progress bar update is slowing loads
git-svn-id: http://svn.osgeo.org/postgis/trunk@11209 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-26 13:12:54 +00:00
Regina Obe f892ba56fd change to about link to show new website link
git-svn-id: http://svn.osgeo.org/postgis/trunk@10982 b70326c6-7e19-0410-871a-916f4a2858ee
2013-01-16 14:24:35 +00:00
Sandro Santilli e4f2312d2d Drop "lwgeom_init_allocators" need, add "lwgeom_set_handlers"
This change allows using liblwgeom from clients which cannot define
C-level methods for link-back (e.g. python ctypes). See #2089.

NOTE: existing clients should take care of calling the new function
      because their "lwgeom_init_allocators" won't be called anymore.
      Failure to do so will result in default allocators / reporters
      being used.

Thanks Giuseppe Sucameli for the base work on this

git-svn-id: http://svn.osgeo.org/postgis/trunk@10937 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-27 12:56:59 +00:00