[Qgis-user] writing vector data for QGIS input from a python script using osgeo ogr

Etienne Trimaille etienne.trimaille at gmail.com
Mon Jan 21 20:03:05 PST 2019


QGIS is using OGR in the background to read vector data. So every format
supported by OGR is fine for QGIS. You can write geojson, geopackage,
sqlite, shapefile, it's fine for OGR API(write) and QGIS Desktop (read).
But are you sure you want to use the OGR API to write your file? IMHO, QGIS
API is easier.

Le lun. 21 janv. 2019 à 23:49, Nicolas Cadieux <nicolas.cadieux at archeotec.ca>
a écrit :

> QGIS can read wkt. This could help.
> https://en.m.wikipedia.org/wiki/Well-known_text
> Nicolas
>
> Le 21 janv. 2019 à 20:26, Lee Eddington <lee.w.eddington at gmail.com> a
> écrit :
>
> I’d like to write vector line data in lat/lon coordinates to a file that
> QGIS can read and display.  I have the osgeo ogr module, but can’t see to
> find the right documentation on how to use it for this simple task.
>
> Thanks,
> Lee
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190122/a143b894/attachment.html>


More information about the Qgis-user mailing list