File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -817,19 +817,16 @@ void QgsGPSInformationWidget::on_mBtnCloseFeature_clicked()
817
817
{
818
818
QgsFeature* f = new QgsFeature ( 0 );
819
819
820
- int size = 0 ;
821
- int wkbtype = 0 ;
822
-
823
820
QgsCoordinateTransform t ( mWgs84CRS , vlayer->crs () );
824
821
QgsPoint myPoint = t.transform ( mLastGpsPosition );
825
822
double x = myPoint.x ();
826
823
double y = myPoint.y ();
827
824
828
- size = 1 + sizeof ( int ) + 2 * sizeof ( double );
825
+ int size = 1 + sizeof ( int ) + 2 * sizeof ( double );
829
826
unsigned char *buf = new unsigned char [size];
830
827
831
828
QgsWkbPtr wkbPtr ( buf, size );
832
- wkbPtr << ( char ) QgsApplication::endian () << wkbtype << x << y;
829
+ wkbPtr << ( char ) QgsApplication::endian () << QGis::WKBPoint << x << y;
833
830
834
831
QgsGeometry *g = new QgsGeometry ();
835
832
g->fromWkb ( buf, size );
You can’t perform that action at this time.
0 commit comments