Created
August 30, 2012 19:00
-
-
Save fgregg/3537693 to your computer and use it in GitHub Desktop.
Extract shapes for pdf of map
This file contains 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
# Requires pstoedit (http://www.pstoedit.net/) and gdal ( http://www.gdal.org/ ) | |
# Convert PDF to DXF format, assign each color to a different layer, and only write the layer that corresponds to | |
# hex color #B8B9BA | |
pstoedit -f 'dxf: -ctl -dumplayernames -layers CB8-B9-BA' map_housing_stock_north.pdf parcels.dxf | |
# Convert DXF to KML | |
ogr2ogr -f "KML" parcels.kml parcels.dxf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment