Coder Social home page Coder Social logo

Comments (5)

rouault avatar rouault commented on June 15, 2024 2

you need to use the curl brackets { }

ogrinfo "/vsizip/{c:\data\myproject.qgz}/myproject.gpkg"

from sozip-spec.

rouault avatar rouault commented on June 15, 2024 1

/vsizip/ refuses to open the datasource, if the file extension is different than .zip.

actually, you can open a zip file with any extension. Cf https://gdal.org/user/virtual_file_systems.html#vsizip-zip-archives :
"an alternate syntax is available so as to enable chaining and not being dependent on .zip extension, e.g.: /vsizip/{/path/to/the/archive}/path/inside/the/zip/file. Note that /path/to/the/archive may also itself use this alternate syntax."

from sozip-spec.

cxcandid avatar cxcandid commented on June 15, 2024

Wow Even, I have never received such a quick response! thanx a lot 😀

from sozip-spec.

cxcandid avatar cxcandid commented on June 15, 2024

Unfortunately ogrinfo and QGIS refuse to open a SOZIP datasource inside a .qgz file (Windows 10).
If I rename the file extension to .zip everything works like expected.

ogrinfo "/vsizip/c:\data\myproject.qgz\myproject.gpkg"

QGIS ogr datasource URI:

/vsizip/c:/data/myproject.qgz/myproject.gpkg|layername=test

from sozip-spec.

cxcandid avatar cxcandid commented on June 15, 2024

Arrgg ... totally missed the brackets ... thanx again!

This is really cool ... even works with relative paths (i.e. "/vsizip/{./myproject.qgz}/myproject.gpkg|layername=test")

from sozip-spec.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.