Spatial Galaxy

Posts

  • Mar 13, 2015

    QGIS data providers are written in C++, however it is possible to simulate a data provider in Python using a memory layer and some code to interface with your data.

    Why would you want to do this? Typically you should use the QGIS data providers, but here are some reasons why you may want to give it a go:

    • There is no QGIS data provider
    • The generic access available through OGR doesn't provide all the features you need
    • You have no desire to write a provider in C++
    • No one will write a C++ provider for you, for any amount of money

    If you go this route you are essentially creating a bridge that connects QGIS and your data store, be it flat file, database, or some other binary format. If Python can "talk" to your data store, you can write a pseudo-provider.

    To illustrate the concept, we'll create a provider for CSV files that allows you to create a layer and have full editing capabilities using QGIS and the Python csv module.

    Read More
  • Feb 23, 2015

    This minor update to the Plugin Builder allows you to choose where your plugin menu will be located.

    Read More
  • Feb 20, 2015

    Plugin Builder 2.8 is now available. This is a minor update that adds:

    • Suggestion for setting up an issue tracker and creating a code repository
    • Suggestion for a home page
    • Tag selection from a list of current tags
    • Documentation update, including information about using pb_tool to compile, deploy, and package your plugin
    • New URLs for Plugin Builder's home page and bug tracking
    Read More
  • Oct 18, 2014

    Here is a short list of resources available when writing Python code in QGIS. If you know of others, please leave a comment.

    Read More
  • Oct 9, 2014

    Getting started with Python and QGIS can be a bit overwhelming. In this post we give you a quick start to get you up and running and maybe make your PyQGIS life a little easier.

    There are likely many ways to setup a working PyQGIS development environment---this one works pretty well.

    Read More

Previous Page: 1 of 19