The Commonwealth shall be divided into fifty senatorial and two hundred three representative districts, which shall be composed of compact and contiguous territory as nearly equal in population as practicable. Each senatorial district shall elect one Senator, and each representative district one Representative. Unless absolutely necessary no county, city, incorporated town, borough, township or ward shall be divided in forming either a senatorial or representative district.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (data[0] >= 1) { | |
context.fillStyle = '#45bae8'; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canvas | |
.pngStream() | |
.pipe(fs.createWriteStream('map_' + name + '.png')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function framedProjection(feature, mapWidth, mapHeight) { | |
var projection = d3.geoAlbers(); | |
var centroid = d3.geoCentroid(feature); | |
projection.rotate([-1 * centroid[0]]).scale(1).translate([0, 0]); | |
var path = d3.geoPath().projection(projection); | |
var bounds = path.bounds(feature); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shp2geojson() { | |
ogr2ogr -f GeoJSON -s_srs EPSG:4269 -t_srs EPSG:4326 "../../$1.geojson" "$1.shp" | |
} | |
for i in ./*/*.zip; do | |
directory=${i%*.zip} | |
mkdir "$directory" | |
cd "$directory" | |
filename=${directory##*/} | |
unzip "../${filename}.zip" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name | FIPS | Abbr | |
---|---|---|---|
Alabama | 01 | AL | |
Alaska | 02 | AK | |
Arizona | 04 | AZ | |
Arkansas | 05 | AR | |
California | 06 | CA | |
Colorado | 08 | CO | |
Connecticut | 09 | CT | |
Delaware | 10 | DE | |
District of Columbia | 11 | DC |
- Find ESRI FeatureServer or MapServer
- example ESRI web map: Birmingham, AL
- open developer tools
Ctrl
+Shift
+i
- under "Network" tab, watch for objects with URLs that include
arcgis/rest/services
- follow those URLS, and navigate back to the "Services Directory" (ex: https://gisweb.birminghamal.gov/arcgis/rest/services/)
- then navigate to the FeatureServer or MapServer layer (ex: https://gisweb.birminghamal.gov/arcgis/rest/services/CouncilDistrict/MapServer/0)
- this is the FeatureServer or MapServer endpoint we'll use. it should end in a number.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
image=0 | |
number_of_images=23 | |
until [ $image -gt $number_of_images ] | |
do | |
echo $image | |
convert $image.png -crop 1008x1003+775+297 $image.cropped.png | |
a=`expr $a + 1` |
NewerOlder