bool QgsLineStringV2::convertTo( QgsWKBTypes::Type type ) { if ( type == mWkbType ) return true; if ( type == QgsWKBTypes::LineString25D ) { //special handling required for conversion to LineString25D dropMValue(); addZValue(); mWkbType = QgsWKBTypes::LineString25D; return true; } else { return QgsCurveV2::convertTo( type ); } }
bool QgsLineString::convertTo( QgsWkbTypes::Type type ) { if ( type == mWkbType ) return true; clearCache(); if ( type == QgsWkbTypes::LineString25D ) { //special handling required for conversion to LineString25D dropMValue(); addZValue( std::numeric_limits<double>::quiet_NaN() ); mWkbType = QgsWkbTypes::LineString25D; return true; } else { return QgsCurve::convertTo( type ); } }