[postgis-tickets] [PostGIS] #4705: pgsql2shp - Pg field column in mapping file incorrectly compared with the name of the dbf field name
PostGIS
trac at osgeo.org
Tue Jun 16 15:04:22 PDT 2020
#4705: pgsql2shp - Pg field column in mapping file incorrectly compared with the
name of the dbf field name
----------------------------+-------------------
Reporter: zezzagio | Owner: robe
Type: defect | Status: new
Priority: medium | Milestone:
Component: loader/dumper | Version: 3.0.x
Resolution: | Keywords:
----------------------------+-------------------
Comment (by zezzagio):
No, the content of regress/loader/mfile.select.sql has to be changed
accorderly too, in order to all tests to succed (or fail... well, succed
to fail):
--- mfile_mapping.txt
address add
some_very_long_name short
--- mfile.select.sql
select address, some_very_long_name, color from loadedshp order by 1;
---
And this is for the loader (shp2pgsl); I suspect the dumper (pgsql2shp)
isn't tested at all for the mapping options.
I'm not entirely sure yet; run_test.pl is perl, after all (I'm familiar
with perl, but this is really... perl; with some residual bash idiotisms,
just in case), but I don't seem to see pgsql2shp called with options
readed from mfile_mapping.txt.
I will try to check better and see what I can do, if necessary.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4705#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list