Making Sense of Modern Monetary Theory Part 2

In Part 1 we took a look at Modern Monetary Theory’s historical precedents, and illustrated the ideological basis of MMT’s disagreement with various components of present-day fiscal and monetary…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Block Equivalency to Shapefile Conversion

Block Equivalency Files: A Concise Format for Redistricting Plans

top 5 lines of a block equivalency file for a redistricting plan

Note: on rare occasions, census blocks will be split in a redistricting plan. In these instances, the Census Bureau requests the block be designated to one district for tabulation purposes.

Let’s say you receive a block equivalency file and you want to view it as a map. As shown above, the file does not include the geographic shape information for each block to render it in GIS or another mapping program. So you will need to find the geometry files for the corresponding blocks, and then join the block equivalency files to them, using the unique block identifier (“BLOCKID” in the sample file shown above) as the key field for the join.

DYK: you can directly upload a Block Equivalency File to DistrictBuilder to view a redistricting plan. Check out this blog for the easy steps:

Once you have the block-level geography file for your location, you can perform the join operation with the block equivalency file. The key field for the join will be the unique block identifier (census FIPS code).

First, make sure Python’s GeoPandas library is installed on your system.

Next, implement the following steps in a Python script to produce a zipped shapefile with each Census block assigned its corresponding district from the block equivalency file.

Now that you have merged the block equivalency file to the block geometry, you can view the districts from the original redistricting plan in GIS or a similar tool. Here is a quick way to inspect your new file in QGIS: Select your layer (this will be the file you created in the previous steps) and select properties to open the layer properties menu.

Settings in the layer properties menu of QGIS to view map data categorically by the assigned district.

In this window, select the symbology tab, and at the top of the central menu change the map layer to show categorized data. Working down the menu, change the value to the field showing the unique district identifiers (in our example this was “SLDL” column for the North Carolina House State Legislative Districts), and then we suggest setting the color ramp to random colors unless you have a different visual display in mind. Finally, click classify and you should see all the unique district identifiers values assigned a color. Then click apply to close the properties window and see the district's colors onto the original map.

A redistricting plan for the North Carolina House of Representatives rendered in GIS after merging the block equivalency file with a shapefile of the census blocks.

Add a comment

Related posts:

10 Beginner Friedly Proofreading Companies That Hire Newbies

Online proofreading could be the solution you’re looking for. Even if you have no prior experience, you can work full-time, part-time, or as a freelancer. There is a high demand for freelance…

Nectar of The Heavens

Guide me to my paradise A place where I see With fresh new eyes A place where I learn To walk in tandem with thee Set me to sail With anchor pulled I will not fail To blaze through winds Through…

A Resolution for Participation

America Votes President Greg Speed challenges the progressive community to keep the energy, engagement, passion and dedication of the past two years alive in 2019.