v0.9 of the d3MapRenderer plugin to QGIS released.
Please visit the plugin homepage for details on how to install the pre-requisites of Node.js and the topojson package.
Change log:
- Additional projections
- Better support for Conic Conformal projection (and Albers)
- Support for no brush and no pen
- Fix for binding of first SVG path element
Additional projections
All but the more funky D3 extended projections now supported. These others will be supported in a future release, but you can always alter the JavaScript to experiment with them yourself. For details of which projections are supported see the full list at the bottom of this post.
Better support for Conic Conformal projection (and Albers)
The Conic Projections parallels, center and rotation are calculated from the binding box of the main layer. In the example below the rotation looks slightly off. This is because the center for the map is taken from the British Trust for Ornithology (BTO) Barnacle Geese Migration Zones, not the United Kingdom outline. If the results of an export do not match expectations simply adjust the angle of rotation:
var projection = d3.geo.albers() .center([0, 58]) .rotate([4, 0]) .parallels([51, 66]) .scale(1000) .translate([width / 2, height / 2]);
Support for no brush and no pen
Support for use of no brush and no pen added, which respectively cause the export to create transparent fill to a polygon or a transparent border.
Fix for binding of first SVG path element
The binding of the topojson data to the path element has now been fixed so that all features are displayed. Previously, the first feature was missing from the visualisation. For example, with a shapefile created by buffering features in another layer often contain only a single feature. Exporting the buffer layer resulted in nothing being displayed. This has now been fixed.
Just to test out the transparency, pen and border changes Migration Zone Shapefiles for Geese were downloaded from the BTO site, and combined with the data from the Migration timing in Barnacle Geese used in studies by Kölzsch et al. published by the Movebank Data Repository with DOI 10.5441/001/1.ps244r11. See www.datarepository.movebank.org/handle/10255/move.385.
Current list of supported projections
Aitoff | d3.geo.aitoff | |
Albers | d3.geo.albers | |
Albers Usa | d3.geo.albersUsa | |
August | d3.geo.august | |
Baker Dinomic | d3.geo.baker | |
Boggs Eumorphic | d3.geo.boggs | |
Bromley | d3.geo.bromley | |
Collignon | d3.geo.collignon | |
Conic Equi-distant | d3.geo.conicEquidistant | |
Craster Parabolic | d3.geo.craster | |
Cylindrical Equal Area | d3.geo.cylindricalEqualArea | |
Eckert I | d3.geo.eckert1 | |
Eckert II | d3.geo.eckert2 | |
Eckert III | d3.geo.eckert3 | |
Eckert IV | d3.geo.eckert4 | |
Eckert V | d3.geo.eckert5 | |
Eckert VI | d3.geo.eckert6 | |
Eisenlohr | d3.geo.eisenlohr | |
Equi Rectangular (Plate Carrée) | d3.geo.equirectangular | |
Fahey | d3.geo.fahey | |
Flat-Polar Parabolic | d3.geo.mtFlatPolarParabolic | |
Flat-Polar Quartic | d3.geo.mtFlatPolarQuartic | |
Flat-Polar Sinusoidal | d3.geo.mtFlatPolarSinusoidal | |
Ginzburg IV | d3.geo.ginzburg4 | |
Ginzburg V | d3.geo.ginzburg5 | |
Ginzburg VI | d3.geo.ginzburg6 | |
Ginzburg VIII | d3.geo.ginzburg8 | |
Ginzburg IX | d3.geo.ginzburg9 | |
Goode Homolosine | d3.geo.homolosine | |
Gringorten Equal-Area | d3.geo.gringorten | |
Guyou | d3.geo.guyou | |
Hammer | d3.geo.hammer | |
HEALPix | d3.geo.healpix | |
Hill Eucyclic | d3.geo.hill | |
Kavrayskiy VII | d3.geo.kavrayskiy7 | |
Lagrange | d3.geo.lagrange | |
Lambert Conic Conformal | d3.geo.conicConformal | |
Larrivée | d3.geo.larrivee | |
Laskowski Tri-Optimal | d3.geo.laskowski | |
Loximuthal | d3.geo.loximuthal | |
Mercator | d3.geo.mercator | |
Miller | d3.geo.miller | |
Mollweide | d3.geo.mollweide | |
Natural Earth | d3.geo.naturalEarth | |
Nell–Hammer | d3.geo.nellHammer | |
Patterson Cylindrical | d3.geo.patterson | |
Polyconic | d3.geo.polyconic | |
Robinson | d3.geo.robinson | |
Sinusoidal | d3.geo.sinusoidal | |
Times | d3.geo.times | |
Van der Grinten I | d3.geo.vanDerGrinten | |
Van der Grinten II | d3.geo.vanDerGrinten2 | |
Van der Grinten III | d3.geo.vanDerGrinten3 | |
Van der Grinten IV | d3.geo.vanDerGrinten4 | |
Wagner IV | d3.geo.wagner4 | |
Wagner VI | d3.geo.wagner6 | |
Wagner VII | d3.geo.wagner7 | |
Winkel Tripel | d3.geo.winkel3 |