mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
** fixed GRASS provider
git-svn-id: http://svn.osgeo.org/qgis/trunk@1149 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
5882dc102e
commit
22c4cce5bd
@ -1,8 +1,11 @@
|
||||
QGIS Change Log
|
||||
ChangeLog,v 1.52 2004/04/03 11:05:34 timlinux Exp
|
||||
ChangeLog,v 1.53 2004/04/04 15:27:33 jobi Exp
|
||||
------------------------------------------------------------------------------
|
||||
Version 0.2 'Pumpkin' .... development version
|
||||
|
||||
2004-04-04 [jobi] 0.1.0devel29
|
||||
** fixed GRASS provider
|
||||
|
||||
2004-04-03 [ts] 0.1.0devel28
|
||||
** Bug fix (still unconfirmed if it cures the bug!) for raster layer rendering
|
||||
artifacts.
|
||||
|
@ -1,5 +1,5 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
dnl configure.in,v 1.51 2004/04/03 11:05:34 timlinux Exp
|
||||
dnl configure.in,v 1.52 2004/04/04 15:27:33 jobi Exp
|
||||
|
||||
AC_INIT
|
||||
|
||||
@ -23,7 +23,7 @@ dnl ---------------------------------------------------------------------------
|
||||
MAJOR_VERSION=0
|
||||
MINOR_VERSION=1
|
||||
MICRO_VERSION=0
|
||||
EXTRA_VERSION=28
|
||||
EXTRA_VERSION=29
|
||||
if test $EXTRA_VERSION -eq 0; then
|
||||
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}
|
||||
else
|
||||
|
@ -236,6 +236,7 @@ QgsFeature *QgsGrassProvider::getNextFeature(bool fetchAttributes)
|
||||
{
|
||||
int cat, type, id, idx;
|
||||
unsigned char *wkb;
|
||||
int wkbsize;
|
||||
|
||||
#ifdef QGISDEBUG
|
||||
std::cout << "QgsGrassProvider::getNextFeature() mNextCidx = " << mNextCidx
|
||||
@ -264,7 +265,6 @@ QgsFeature *QgsGrassProvider::getNextFeature(bool fetchAttributes)
|
||||
|
||||
// TODO int may be 64 bits (memcpy)
|
||||
if ( type & (GV_POINTS | GV_LINES) ) { /* points or lines */
|
||||
int wkbsize;
|
||||
|
||||
Vect_read_line ( mMap, mPoints, mCats, id);
|
||||
int npoints = mPoints->n_points;
|
||||
@ -298,7 +298,7 @@ QgsFeature *QgsGrassProvider::getNextFeature(bool fetchAttributes)
|
||||
Vect_get_area_points ( mMap, id, mPoints );
|
||||
int npoints = mPoints->n_points;
|
||||
|
||||
int wkbsize = 1+4+4+4+npoints*2*8; // size without islands
|
||||
wkbsize = 1+4+4+4+npoints*2*8; // size without islands
|
||||
wkb = new unsigned char[wkbsize];
|
||||
wkb[0] = (unsigned char) mEndian;
|
||||
int offset = 1;
|
||||
@ -341,7 +341,7 @@ QgsFeature *QgsGrassProvider::getNextFeature(bool fetchAttributes)
|
||||
}
|
||||
}
|
||||
|
||||
f->setGeometry(wkb);
|
||||
f->setGeometry(wkb, wkbsize);
|
||||
|
||||
if ( fetchAttributes ) {
|
||||
QgsGrassProvider::setFeatureAttributes( mLayerId, cat, f );
|
||||
|
Loading…
x
Reference in New Issue
Block a user