QGIS 1.9 breaks some plugins (for now)

As part of the beta process QGIS 1.9 has started to implement the API changes that will lead to QGIS 2.0.  These changes to the low level guts of the program have broken a few plugins.  Personally I’ve come across two:  OpenLayers and Points2One.

OpenLayers allows you to use outside map sources such as Google Maps and Bing Maps as backdrops to your maps.  Currently it crashes when the plugin tries to load.  Points2One takes point layers and makes lines or polygons from them.  It loads, but crashes when you try to create the new data set.

Other plugins work just fine, for example, Statist is currently running perfectly.  When the API changes are locked in the plugins that aren’t working will be able to be re-written to work with the new version.  Until then, if you have a plugin you rely avoid the beta builds and stay with QGIS 1.8.

EDIT:  OpenLayers has been updated to work with the new API.  Just upgrade the plugin through Fetch Python Plugins menu and it will work just fine.

Advertisements
  1. I suspect the issue with both plugins is the lack of the addMapLayer method. It has been changed to addMapLayers and now takes a list of layers. It’s a quick fix but we will have to wait for plugin authors to change it.

    • Kudos to the developers for not just leaving the old version in the API. If you’re going to break it, break it and move on. Backwards compatibility is nice, but you end up with a lot of dead weight in your code. That said, I’m not a plugin developer who now has to deal with the headache of maintaining two separate versions.

      • Yeah it’s one of those issues. You leave it and it hurts you in the future, remove it and deal with the pain for a little while.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: