Let's say I have some metadata about a layer stored in some custom application, and I would like to open or view the layer in QGIS.
What, if any, are my options?
Edit: formats include shp, wms, wfs, geotiff.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
I would suggest to call a python script to open QGIS and add a layer, the general code logic would go something like this:
import os, time from qgis.core import * os.startfile('C:/Program Files/QGIS Brighton/bin/qgis.bat') time.sleep(30) # sleep script for 30sec to wait for QGIS to open vlayer = QgsVectorLayer("C:/path/to/shapefile/file.shp", "layer_name_you_like", "ogr") QgsMapLayerRegistry.instance().addMapLayer(vlayer)
Call QGIS and pass the layer
that will load QGIS and load the layer.