File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed
Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,13 @@ bool QgsNewGeoPackageLayerDialog::apply()
349349 OGRwkbGeometryType wkbType = static_cast <OGRwkbGeometryType>
350350 ( mGeometryTypeBox ->currentData ( Qt::UserRole ).toInt () );
351351
352+ // z-coordinate & m-value.
353+ if (mGeometryWithZCheckBox ->isChecked ())
354+ {
355+ wkbType = OGR_GT_SetZ (wkbType);
356+ wkbType = OGR_GT_SetM (wkbType);
357+ }
358+
352359 OGRSpatialReferenceH hSRS = nullptr ;
353360 // consider spatial reference system of the layer
354361 QgsCoordinateReferenceSystem srs = mCrsSelector ->crs ();
Original file line number Diff line number Diff line change 6161 <rect >
6262 <x >0</x >
6363 <y >0</y >
64- <width >530 </width >
65- <height >635 </height >
64+ <width >514 </width >
65+ <height >644 </height >
6666 </rect >
6767 </property >
6868 <layout class =" QGridLayout" name =" gridLayout_5" >
69- <item row =" 4 " column =" 0" >
69+ <item row =" 5 " column =" 0" >
7070 <widget class =" QCheckBox" name =" mCheckBoxCreateSpatialIndex" >
7171 <property name =" toolTip" >
7272 <string >Add an integer id field as the primary key for the new layer</string >
7979 <item row =" 0" column =" 0" >
8080 <layout class =" QHBoxLayout" name =" horizontalLayout_6" />
8181 </item >
82- <item row =" 5 " column =" 0" >
82+ <item row =" 6 " column =" 0" >
8383 <widget class =" QGroupBox" name =" groupBox_3" >
8484 <property name =" title" >
8585 <string >New field</string >
342342 </item >
343343 </layout >
344344 </item >
345- <item row =" 6 " column =" 0" >
345+ <item row =" 7 " column =" 0" >
346346 <widget class =" QGroupBox" name =" groupBox_2" >
347347 <property name =" title" >
348348 <string >Fields list</string >
421421 </layout >
422422 </widget >
423423 </item >
424- <item row =" 2 " column =" 0" >
424+ <item row =" 3 " column =" 0" >
425425 <widget class =" QgsProjectionSelectionWidget" name =" mCrsSelector" native =" true" >
426426 <property name =" focusPolicy" >
427427 <enum >Qt::StrongFocus</enum >
428428 </property >
429429 </widget >
430430 </item >
431+ <item row =" 2" column =" 0" >
432+ <widget class =" QCheckBox" name =" mGeometryWithZCheckBox" >
433+ <property name =" text" >
434+ <string >Geometries with Z/M coordinate</string >
435+ </property >
436+ </widget >
437+ </item >
431438 </layout >
432439 </widget >
433440 </widget >
You can’t perform that action at this time.
0 commit comments