]> granicus.if.org Git - postgis/commit
Rework code from r9204 (bug #900: shp2pgsql: a switch to drop M from 4d imports)...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 26 Mar 2012 16:23:58 +0000 (16:23 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Mon, 26 Mar 2012 16:23:58 +0000 (16:23 +0000)
commitcfb86ebcc9976c6e864ee4d7de728e27ea51ee37
tree4657b7c0e0931bdbc543bd6c7e7d0c997978b183
parentc6e1f9be5248020e6ab4625ee8cb6e677460502e
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
loader/shp2pgsql-cli.c
loader/shp2pgsql-core.c
loader/shp2pgsql-core.h