[GRASS-dev] Re: [GRASS GIS] #344: TODO: move high priority
incubated modules into main
GRASS GIS
trac at osgeo.org
Wed Dec 17 16:08:38 EST 2008
#344: TODO: move high priority incubated modules into main
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: task | Status: new
Priority: blocker | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
Platform: All | Cpu: All
----------------------+-----------------------------------------------------
Comment (by mlennert):
Replying to [comment:14 martinl]:
> Replying to [comment:13 hamish]:
> > remaining TODO for this ticket:
> > - v.out.ascii.db -> v.out.ascii C code
>
> done in r34917. Please test it out...
In trunk, I get the following error during compile:
{{{
VERSION_NUMBER=7.0.svn
/home/mlennert/SRC/GRASS/grass_trunk/tools/g.html2man/g.html2man.py
/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-
gnu/docs/html/v.out.ascii.html /home/mlennert/SRC/GRASS/grass_trunk/dist.
i486-pc-linux-gnu/man/man1/v.out.ascii.1
/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-
gnu/docs/html/v.out.ascii.html:90:0: Error ({'args': ()}): <o>
make: *** [/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-
gnu/man/man1/v.out.ascii.1] Erreur 1
rm v.out.ascii.tmp.html
}}}
In devel6, I can compile, but I get a segmentation fault using NC demo
data and running:
{{{
v.out.ascii in=hospitals out=hospitals.ascii colu=NAME
}}}
but not with
{{{
v.out.ascii in=hospitals out=hospitals.ascii colu=PHONE
}}}
{{{
GRASS 6.4.svn (nc_spm_06):~ > v.info -c hospitals
Displaying column types/names for database connection of layer 1:
INTEGER|cat
INTEGER|OBJECTID
DOUBLE PRECISION|AREA
DOUBLE PRECISION|PERIMETER
INTEGER|HLS_
INTEGER|HLS_ID
CHARACTER|NAME
CHARACTER|ADDRESS
CHARACTER|CITY
CHARACTER|ZIP
CHARACTER|COUNTY
CHARACTER|PHONE
CHARACTER|CANCER
INTEGER|POLYGONID
DOUBLE PRECISION|SCALE
DOUBLE PRECISION|ANGLE
GRASS 6.4.svn (nc_spm_06):~ > v.db.connect -p hospitals
Vector map <hospitals at PERMANENT> is connected by:
layer <1> table <hospitals> in database
</home/mlennert/GRASS/DATA/nc_spm_06/PERMANENT/dbf/> through driver <dbf>
with key <cat>
}}}
Running
{{{
for col in `v.info -c hospitals | awk -F"|" '{print $2}'`; do echo $col;
v.out.ascii in=hospitals out=hospitals_$col colu=$col; done
}}}
gives segfaults with NAME and ADDRESS and "Illegal instruction" with CITY.
The same script on comm_colleges causes seg faults for the columns
ADDRESS1 and "Illegal instruction" on CC_NAME and ADDRESS2.
Moritz
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/344#comment:15>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list