And a new video showing how to use a vector layer as a data source for variables https://vimeo.com/141546964
Cheers, Michaël 2015-10-06 16:40 GMT+02:00 kimaidou <[email protected]>: > Hi all, > > I have just released the plugin Dynamic Layers which let you > > * configure a "dynamic datasource" for any layer with variables. You can > use a syntax like {$myvar} > * Configure a table of variable values to use as replacements > * Use a vector layer as a source for this variables ( fields name must > correspond to variable names > * Define a layer as "extent layer" on which to zoom to full extent when > aplying variables > > Then you can apply the variables on the configured layers to see the > changes in you project, and save the project if you want. > > Use cases : > * You have some PostGIS layers with subqueries such as > table=(SELECT * FROM mytable WHERE country = 'France') > > and you have data for the whole world. You can use the plugin to configure > a datasource such as > table=(SELECT * FROM mytable WHERE country = '{$COUNTRY}') > > And then set the variable COUNTRY to 'Spain' or wichever country. > > You can also change the path to shapefiles, such as > "/my/folder/mydata_{$COUNTRY}.shp" > > A video is sometimes better than a description : > https://vimeo.com/141541813 > > Source code here: > https://vimeo.com/141541813 > > Documentation in progress... > > > Any feedback welcome > > Regards > Michaël >
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
