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
Sandro Santilli
d3c94a56c6
Fix compiler warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10894 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-21 10:01:39 +00:00
Sandro Santilli
ec4425d172
Revert "Move JSON input test where it belons ( #2156 )"
...
Accidentally committed an unrelated patch..
git-svn-id: http://svn.osgeo.org/postgis/trunk@10860 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 18:06:17 +00:00
Sandro Santilli
701c3bc5eb
Move JSON input test where it belons ( #2156 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10859 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-19 18:01:19 +00:00
Sandro Santilli
4e5f296562
Fix broken shp2pgsql help string suggesting -r to reproject
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10798 b70326c6-7e19-0410-871a-916f4a2858ee
2012-12-05 10:28:43 +00:00
Sandro Santilli
c3dee3684e
Exit with non-zero code when commandline is malformed
...
It still exists with zero code when user explictly asks for the
help screen (with -? as documented and with no switch as popular
habit [well, mine])
git-svn-id: http://svn.osgeo.org/postgis/trunk@10418 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-12 15:20:44 +00:00
Sandro Santilli
2aa734127c
Fix pgsql2shp for big-endian systems ( #1900 )
...
Submitted By: Ryan Oliver <ryan.oliver@dse.vic.gov.au>
git-svn-id: http://svn.osgeo.org/postgis/trunk@10034 b70326c6-7e19-0410-871a-916f4a2858ee
2012-07-04 13:12:58 +00:00
Mark Cave-Ayland
19cc966af5
Remove auto-resizing columns from text fields in shp2pgsql-gui as they seem to be the cause of #1881 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9971 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-21 22:24:00 +00:00
Regina Obe
7ef42668cb
#1759 : ST_Transform fix for geography
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9965 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-21 11:02:49 +00:00
Mark Cave-Ayland
259bd1f502
Rename references to -r to -s in shp2pgsql-cli.c and also move argument combination validation to a separate phase.
...
This is based upon a report from Lauri Kajan who was having issues using -D and -s TO_SRID on Windows.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9868 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-08 14:04:26 +00:00
Paul Ramsey
1366436bb1
Revert #1830
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9760 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-21 08:05:57 +00:00
Paul Ramsey
1086a51e98
loader dumper / gui About have version correct credits ( #1743 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9759 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-20 09:27:37 +00:00
Paul Ramsey
8864ed9558
the pgsql2shp tool should qualify its query against pg_class to ensure it gets the correct table to dump ( #1814 ) <chander>
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9758 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-20 09:17:08 +00:00
Paul Ramsey
e4ed4b745a
pgsql2shp fix for "XInvalid endian flag value encountered" on PostgreSQL 9.2 ( #1830 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9756 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-20 08:20:41 +00:00
Mark Cave-Ayland
40f83bf1b8
Fix #1468 : shp2pgsql-gui table column schema get shifted
...
A couple of copy/paste errors meant that the update handler was being invoked
a second time on the loader shapefile column name, rather than just once on
the schema column.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9644 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-15 15:47:41 +00:00
Mark Cave-Ayland
6bfba6a7e3
shp2pgsql-gui: don't allow the user to edit the schema name in the listview.
...
This brings the behaviour in line with that of the table name, and since
these entries are generated from the table selector there should be no
need to do this.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9643 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-15 15:46:44 +00:00
Regina Obe
9937bba86b
#1759 transform functionality doesn't work if you have raster installed.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9621 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-10 00:20:05 +00:00
Mark Cave-Ayland
052dc11269
Make sure that we clear any previously selected files when (re)opening the import file selector in the shapefile GUI.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9583 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-30 14:17:42 +00:00
Mark Cave-Ayland
93993c7e76
Fix #1741 : Build error --with-gui, gtk problem.
...
Older versions of GTK (< 2.14.0) don't have gtk_dialog_get_content_area(). Work
around this by providing a compatibility #define for these older GTK versions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9582 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-30 14:17:34 +00:00
Sandro Santilli
4fc1af8d55
80 cols wrap for pgsql2shp help screen ( #1722 )
...
Patch by Mike Toews
git-svn-id: http://svn.osgeo.org/postgis/trunk@9553 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-27 10:51:20 +00:00
Mark Cave-Ayland
cfb86ebcc9
Rework code from r9204 (bug #900 : shp2pgsql: a switch to drop M from 4d imports) to fix bug #1710 : shp2pgsql -t option is not working properly.
...
The original implementation set the has_z/has_m flags directly based upon the -t parameter; however this lost the information
as to how many dimensions were specified. Resolve this by specifying a new force_output configuration variable and setting
it to an enumerated constant, so that we can then implement a simple switch() to set both the output dimension and output
flags correctly.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9548 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-26 16:23:58 +00:00
Mark Cave-Ayland
c6e1f9be52
Remove istypeM state variable from loader as it isn't used anymore.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9547 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-26 16:23:45 +00:00
Mark Cave-Ayland
2effc2c1b3
Improve readability in the loader by fixing various whitespace issues.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9546 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-26 16:23:38 +00:00
Paul Ramsey
29e2d6a299
Change @rm to rm for visibility
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9523 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 21:36:59 +00:00
Paul Ramsey
cf8753bd36
Make distclean should remove all the Makefile's generated by ./configure
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9522 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 20:32:29 +00:00
Sandro Santilli
e3be619046
Drop .cvsignore files
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9429 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-08 10:36:15 +00:00
Paul Ramsey
cb9d0d586a
I'm not sure this "fix" was actually a fix so I'm removing it.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9410 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-06 16:19:25 +00:00
Paul Ramsey
13946af983
Rename LOADER_OBJS to the more direct SHPLIB_OBJS
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9403 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 23:09:24 +00:00
Paul Ramsey
5fc8d7ffc4
Add static link directive to libtool ( #1644 ) allows build on Debian Wheezy
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9401 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-05 22:51:52 +00:00
Paul Ramsey
72f0ad5143
Minor update to comments.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9302 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 20:35:26 +00:00
Paul Ramsey
914623e6b1
Simplify table/schema copying, hopefully fix windows.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9301 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 20:30:42 +00:00
Paul Ramsey
9f5a1a94d0
Fix up the revision info in the usage lines
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9291 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 22:41:09 +00:00
Sandro Santilli
d1057b7c09
Print SRID in decimal form, not hex ( #1593 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9245 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-21 11:07:44 +00:00
Paul Ramsey
64b48284cb
shp2pgsql: a switch to drop M from 4d imports ( #900 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9204 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-15 21:37:41 +00:00
Mark Cave-Ayland
bb161f08e2
Fix a couple of compiler warnings in shp2pgsql-gui caused by uninitialised variables.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9064 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 13:12:31 +00:00
Mark Cave-Ayland
3e3a9833d2
Change encoding reference URL to that used for libiconv rather than PostgreSQL since that's what we are using to do the encoding conversion (as per #1303 ).
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9033 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-05 00:30:36 +00:00
Mark Cave-Ayland
3059b1a9e8
Fix for #1540 : Fix segfault in shp2pgsql-gui when no port is specified. Prevent dereferencing a NULL pointer if the string is empty.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9032 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-05 00:30:28 +00:00
Mark Cave-Ayland
3fa2e70ebe
Fix an issue in the shapefile GUI caused by saving the original shapefile name before processing.
...
This was a bug caused by having two separate passes during export; we were saving the original
export shapefile name during the first loop, and so when we came to free() the temporary name
at the end of export it would only free the shapefile name from the last iteration, and do it
multiple times causing random crashes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9030 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-04 02:36:44 +00:00
Mark Cave-Ayland
9200acf3f2
Alter the shapefile GUI so that multiple shapefiles can be selected in the import file chooser.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9028 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-04 01:17:33 +00:00
Mark Cave-Ayland
b193b38c7a
Add GUI support for the shp2pgsql -S (simple geometries) switch. This closes #660 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9027 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-04 00:39:38 +00:00
Mark Cave-Ayland
92e6ba3da9
Update shapefile GUI "About" text and window title to reflect that it now handles export as well as import.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9026 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-04 00:39:31 +00:00
Mark Cave-Ayland
80f9c1e00c
Add shapefile dumper (table export) to the shp2pgsql GUI. This closes ticket #1480 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9025 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-04 00:39:24 +00:00
Mark Cave-Ayland
4d4cd0ce7b
Fix pgsql2shp crash when dumping a table without a geo column.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9021 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-03 21:04:08 +00:00
Mark Cave-Ayland
f2fff943f5
Fix construction of pgsql2shp's main retrieval query in ShpDumperOpenTable().
...
This fixes a regression which caused pgsql2shp to generate an incorrect SQL query
for tables without any geo columns.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9020 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-03 21:04:01 +00:00
Mark Cave-Ayland
f4262f4d48
Move initialisation of pgsql2shp state endian flag to the same location all the other initialisers.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9019 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-03 21:03:54 +00:00
Paul Ramsey
402f405698
Remove some compile warnings.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8984 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-31 20:46:18 +00:00
Paul Ramsey
4b4fb19341
Pgsql2shp: Dumping: XWKB structure does not match expected size! ( #1479 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8972 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-31 05:50:08 +00:00
Paul Ramsey
9dd9cd1b73
( #393 ) shp2pgsql returns "fseek(-xxx) failed on DBF file." for large (>2GB) DBF files
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8967 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-30 02:47:34 +00:00