Tuesday, September 27, 2016
Friday, September 23, 2016
d3 v2 to v3: replacing geo projection origin() with rotate()
d3 v3 took away the origin() method for GIS projections and replaced it with the rotate() method which works just slightly differently. This all took me way to long to figure this out. The docs suck on this subject and Mike Bostock seems more concerned with snark.
d3.js v2 example:
var projection = d3.geo.azimuthal()
.scale(380)
.origin([-71.03, 42.37])
.mode("orthographic")
.translate([640, 400]);
d3.js. v3 example:
var projection = d3.geoAzimuthalEquidistant()
.scale(380)
.rotate([71.03, -42.37]) // Note the flipped signs
.translate([640, 400]);
It's almost a 1:1 but note the reversed signed-ness; you normal lon/lat becomes a relative offset instead of an absolute position.
Tuesday, January 7, 2014
How to Make QSO Maps from your Ham Radio Logs Part 5/5
Finally lets make a nice PDF suitable for printing or sharing with
our friends. Go to the "Project" menu and select "Composer Manager". If
necessary expand the "New from template" area. Change "empty composer"
to "specific". Click on the "..." and select the "print composer
template.qpt" file included with the project. You should see something
like this:

Click "Add", then click "OK". Your new composer window should open. You may close the composer manager.
Your composer window should look like this

Lets update the legend. Click on the legend and then click "Item Properties". Under "Legend Items" click the "+" icon. Select the "qso countries" layer and click "OK". Now you should see

Thats it! Go to the "Composer" menu to print, export as PDF, or export as an image file.
Click "Add", then click "OK". Your new composer window should open. You may close the composer manager.
Your composer window should look like this
Lets update the legend. Click on the legend and then click "Item Properties". Under "Legend Items" click the "+" icon. Select the "qso countries" layer and click "OK". Now you should see
Thats it! Go to the "Composer" menu to print, export as PDF, or export as an image file.
Subscribe to:
Posts (Atom)