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

Lee Eddington lee.w.eddington at gmail.com
Tue Jan 22 09:13:53 PST 2019


Etienne,

Being a newer user I don’t know about the QGIS API.  I will take a look.

Thank you,
Lee


> On Jan 21, 2019, at 9:03 PM, Etienne Trimaille <etienne.trimaille at gmail.com> wrote:
> 
> 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 <mailto:nicolas.cadieux at archeotec.ca>> a écrit :
> QGIS can read wkt. This could help. https://en.m.wikipedia.org/wiki/Well-known_text <https://en.m.wikipedia.org/wiki/Well-known_text>
> Nicolas
> 
> Le 21 janv. 2019 à 20:26, Lee Eddington <lee.w.eddington at gmail.com <mailto: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 <mailto:Qgis-user at lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user <https://lists.osgeo.org/mailman/listinfo/qgis-user>_______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user <https://lists.osgeo.org/mailman/listinfo/qgis-user>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user <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/a6d42666/attachment.html>


More information about the Qgis-user mailing list