Skip to content

Paste Features As -> New Vector Layer creates a vector layer with invalid CRS #60846

@agiudiceandrea

Description

@agiudiceandrea

What is the bug or the crash?

Using the Paste Features As -> New Vector Layer functionality, if the pasted features doesn't have CRS information, then the new vector layer's CRS is unknown / invalid even properly setting the CRS in the dialog window.

Steps to reproduce the issue

  1. copy the following text:
wkt_geom fid
Polygon ((602049.70009776263032109 4531463.99115845467895269, 621551.28105399641208351 4540522.10253156814724207, 619526.52674706501420587 4524643.76612458005547523, 604607.28448546538129449 4521127.08759148884564638, 602049.70009776263032109 4531463.99115845467895269)) 1
  1. in QGIS, select the Edit -> Paste Features As -> New Vector Layer menu
  2. in the "Save Vector Layer as..." dialog window set the format e.g. GeoPackage or ESRI Shapefile, set the path / filename of the output vector layer file, set the CRS as ESPG:32633, leave other options as default, then press the OK button.
  3. see the new vector layer created having no CRS information.

Versions

QGIS version3.40.4-Bratislava
QGIS code revision4dd7d7e969
 
Libraries
Qt version5.15.13
Python version3.12.9
GDAL version3.10.2
PROJ version9.5.1
EPSG Registry database versionv11.022 (2024-11-05)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.46.1
PDAL version2.8.3
PostgreSQL client versionunknown
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 10 Version 1903
 
Active Python plugins
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugEither a bug report, or a bug fix. Let's hope for the latter!GUI/UXRelated to QGIS application GUI or User Experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions