[GRASS-dev] [GRASS GIS] #1633: Unable to display shapefile attribute table due to pipe characters in dbf field
GRASS GIS
trac at osgeo.org
Sun Jun 9 22:48:15 PDT 2013
#1633: Unable to display shapefile attribute table due to pipe characters in dbf
field
--------------------------+-------------------------------------------------
Reporter: richardc | Owner: grass-dev@…
Type: defect | Status: reopened
Priority: critical | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: database, separator
Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment(by hamish):
maybe replicate what `find -print0` + `xargs -0` does and support fs=null
for v.db.select?
sample data:
{{{
#easting,northing,text string
599490,4920855,foo
599590,4920755,bar
599690,4920655,baz|qux
599790,4920555,qux
599890,4920455,foo
}}}
v.in.ascii in=test_pipe.csv out=test_pipe fs=, x=1 y=2
another less definitive but more probable to work with standard python
string functions idea is to take advantage of the fact that v.db.select's
fs= option can take an unlikely string, not just a single char:
v.db.select test_pipe fs='{_sep_}'
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1633#comment:14>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list