Have look to https://github.com/qgis/QGIS/blob/master/tests/src/python/provider_python.py
Hope this helps On Wed, Sep 7, 2022 at 4:59 PM Martijn Reening via QGIS-Developer <qgis-developer@lists.osgeo.org> wrote: > > Hi QGIS community, > > I am currently working with a custom file format that contains geometry > information. The format contains mixed geometry types and some style and meta > information. > > The geometry is simple to map onto WKT and I have a parser for Python. I > would like to integrate this into a QGIS plugin. It seems however that > writing drivers for file formats is not really documented in the PyQGIS > Developer Cookbook. > > My questions are therefore: > > Is it possible to introduce support for a custom file format through a plugin? > At what level should I integrate this? It seems that most formats are handled > through GDAL, which has its own plugin system. I would rather have it > installable through the QGIS interface > > Are there any examples of similar formats (KML/GML) that are handled this way? > > Kind regards, > > Martijn Reening > _______________________________________________ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer -- Alessandro Pasotti QCooperative: www.qcooperative.net ItOpen: www.itopen.it _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer