Skip to content

Instantly share code, notes, and snippets.

View rveciana's full-sized avatar
🐢

Roger Veciana i Rovira rveciana

🐢
View GitHub Profile
@rveciana
rveciana / README.md
Last active May 15, 2019 15:36
Congressional representatives dataset

Based on this data, contains a Shapefile and two topojson with the US congressional Districts.

The atlas-make project has a better maintained version of this data.

The difference from the data is based on, is that the American Samoa, Guam and Northern Marianas are included from the Natural Earth dataset. The Congress Representative data is included too.

get_areas.py is a script to calculate the area paoperties for the new objects. The name of the Congressional Representatives in the added territories has been taken from the Wikipedia.

The topojson has been calculated using the command: topojson -o us_congressional_district.json cgd114p010g.shp -p

@rveciana
rveciana / README.md
Last active September 25, 2016 21:39
conicConformalFrance linked directly example
@rveciana
rveciana / README.md
Last active September 23, 2016 22:42
geoTransverseMercatorChile

This file shows how to use the geoTransverseMercatorChile projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js| uglifyjs > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson

@rveciana
rveciana / README.md
Last active September 23, 2016 22:33
geoMercatorEcuador example

This file shows how to use the geoMercatorEcuador projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js| uglifyjs > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson

@rveciana
rveciana / README.md
Last active September 23, 2016 22:29
geoConicEquidistantJapan example

This file shows how to use the geoConicEquidistantJapan projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js| uglifyjs > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson

@rveciana
rveciana / README.md
Last active September 23, 2016 22:24
geoConicConformalEurope example

This file shows how to use the geoConicConformalEurope projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js| uglifyjs > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson

@rveciana
rveciana / README.md
Last active August 25, 2023 11:27
conicConformalSpain example

This file shows how to use the geoConicConformalSpain projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js| uglifyjs > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson

@rveciana
rveciana / README.md
Last active September 23, 2016 22:14
geoConicConformalPortugal example

This file shows how to use the geoConicConformalPortugal projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson

@rveciana
rveciana / README.md
Last active September 23, 2016 22:08
conicConformalFrance example

This file shows how to use the geoConicConformalFrance projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson

@rveciana
rveciana / README.md
Last active September 23, 2016 22:02
geoAlbersUsa

This file shows how to use the geoAlbers projection from d3-composite-projections.

To change the file, edit draw.js and run

browserify draw.js > bundle.js

The dependencies are installed with:

npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson