Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Add VPC as a pointcloud layer via the Add Layer dialog - only by drag-dropping onto the UI #59944

Open
2 tasks done
jo-chemla opened this issue Dec 17, 2024 · 0 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Point Clouds

Comments

@jo-chemla
Copy link

jo-chemla commented Dec 17, 2024

What is the bug or the crash?

Loading vpc via the Add Layer UI dialog is not possible and throws error that only ept.json and COPC are supported. Loading the same VPC by drag-dropping it into the QGIS UI works great.

The bug probably originates from this too-conservative check which only verifies whether the input file or http url ends with ept.json or .copc.laz

if ( fileName.compare( QLatin1String( "ept.json" ), Qt::CaseInsensitive ) != 0 && !fileName.endsWith( QLatin1String( ".copc.laz" ), Qt::CaseInsensitive ) )
{
QMessageBox::information( this, tr( "Add Point Cloud Layers" ), tr( "Invalid point cloud URL \"%1\", please make sure your URL ends with /ept.json or .copc.laz" ).arg( mPath ) );
return;
}

Maybe the question is addressed towards Lutra, eg @saberraz

Steps to reproduce the issue

  1. Go to Layer - Add Layer - Add Pointcloud Layer
  2. Either use the url or downloaded vpc file https://www.lutraconsulting.co.uk/downloads/ign-chambery.vpc
  3. Results in Invalid point cloud URL "https://www.lutraconsulting.co.uk/downloads/ign-chambery.vpc", please make sure your URL ends with /ept.json or .copc.laz
  4. If you drag-and-drop the vpc file instead, then Qgis loads it perfectly fine.

Versions

QGIS version3.40.1-Bratislava
QGIS code revision989853a7
 
Libraries
Qt version5.15.13
Python version3.12.7
GDAL/OGR version3.9.3
PROJ version9.5.0
EPSG Registry database versionv11.016 (2024-08-31)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.46.1
PDAL version2.8.1
PostgreSQL client version16.2
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 11 Version 2009
 
Active Python plugins
FreehandRasterGeoreferencer0.8.3
JSONEater-master0.3
latlontools3.6.19
menu_from_project2.1.0
qgis-maptiler-plugin3.3.2
QuickOSM2.2.3
quick_map_services0.19.34
db_manager0.1.20
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

@jo-chemla jo-chemla added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Point Clouds
Projects
None yet
Development

No branches or pull requests

2 participants