Opened 14 years ago

Closed 13 years ago

#1379 closed defect (fixed)

v.out.ogr incorrect output

Reported by: jkr Owned by: grass-dev@…
Priority: blocker Milestone: 6.4.2
Component: Vector Version: svn-releasebranch64
Keywords: v.out.ogr Cc:
CPU: x86-64 Platform: Unspecified

Description

v.out.ogr in 6.4.2-svn produces incorrect ESRI_Shapefile output while the output is correct in 6.4.1:

  • the geometry is correct
  • the associated values (Value column) are incorrect.

Sample code (with North Carolina data):

REPO="/tmp/test"
r.in.gdal -o input="/tmp/test/ncrast/elev_lid792_1m.tif" output="elev_lid792_1m"
r.mapcalc 'alt_class = if((elev_lid792_1m > 0),0,null())'
r.mapcalc 'alt_class = if(((elev_lid792_1m > 100) && (elev_lid792_1m <= 110)),1,alt_class)'
r.mapcalc 'alt_class = if(((elev_lid792_1m > 110) && (elev_lid792_1m <= 120)),2,alt_class)'
r.mapcalc 'alt_class = if(((elev_lid792_1m > 120) && (elev_lid792_1m <= 130)),3,alt_class)'
r.mapcalc 'alt_class = if((elev_lid792_1m > 130),4,alt_class)'
# export alt
r.to.vect --overwrite --verbose input=alt_class output=alt_class_v feature=area
# run with grass-6.4.2
v.out.ogr -c --verbose input=alt_class_v type=area dsn=${REPO}/alt_class-642 layer=1 format=ESRI_Shapefile
# run with grass-6.4.
v.out.ogr -c --verbose input=alt_class_v type=area dsn=${REPO}/alt_class-641 layer=1 format=ESRI_Shapefile

The values associated to the areas are incorrect for 'alt_class-642'.

Please let me know if you need more informations.

Cheers,

Julien

Change History (3)

comment:1 by mmetz, 14 years ago

Should be fixed in r46482. Actually, I fixed it a month ago for 6.5, but forgot to backport. Sorry for the inconvenience!

Markus M

comment:2 by martinl, 14 years ago

Component: DefaultVector
Keywords: v.out.ogr added
Milestone: 6.4.2
Priority: normalblocker

comment:3 by martinl, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.