Skip to content

Instantly share code, notes, and snippets.

@chrispahm
Created October 22, 2021 11:04
Show Gist options
  • Save chrispahm/eb32d3a8990f879cc516ec4d4a356841 to your computer and use it in GitHub Desktop.
Save chrispahm/eb32d3a8990f879cc516ec4d4a356841 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 48,
"id": "cfd3a8b3",
"metadata": {},
"outputs": [],
"source": [
"import geopandas\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 49,
"id": "5c5e726b",
"metadata": {},
"outputs": [],
"source": [
"df = pd.DataFrame({\n",
" \"name\": [\"Point\"],\n",
" \"lng\": [-76.675801],\n",
" \"lat\": [38.935749]\n",
"})"
]
},
{
"cell_type": "code",
"execution_count": 50,
"id": "5d396a20",
"metadata": {},
"outputs": [],
"source": [
"gdf = geopandas.GeoDataFrame(\n",
" df, geometry=geopandas.points_from_xy(df.lng, df.lat))"
]
},
{
"cell_type": "code",
"execution_count": 51,
"id": "18ae3e8d",
"metadata": {},
"outputs": [],
"source": [
"gdf = gdf.set_crs(\"EPSG:4326\")"
]
},
{
"cell_type": "code",
"execution_count": 65,
"id": "31cade77",
"metadata": {},
"outputs": [],
"source": [
"gdf = gdf.to_crs('epsg:2248') "
]
},
{
"cell_type": "code",
"execution_count": 69,
"id": "ed9bdaaf",
"metadata": {},
"outputs": [],
"source": [
"# 10 miles to feet\n",
"gdf['buffer'] = gdf.geometry.buffer(5280 * 10)"
]
},
{
"cell_type": "code",
"execution_count": 70,
"id": "4f130c5f",
"metadata": {},
"outputs": [],
"source": [
"# reproject buffer to EPSG:4326\n",
"gdf[\"proj\"] = gdf['buffer'].to_crs(\"epsg:4326\")"
]
},
{
"cell_type": "code",
"execution_count": 71,
"id": "c8d372cf",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div style=\"width:100%;\"><div style=\"position:relative;width:100%;height:0;padding-bottom:60%;\"><span style=\"color:#565656\">Make this Notebook Trusted to load map: File -> Trust Notebook</span><iframe src=\"about:blank\" style=\"position:absolute;width:100%;height:100%;left:0;top:0;border:none !important;\" data-html=%3C%21DOCTYPE%20html%3E%0A%3Chead%3E%20%20%20%20%0A%20%20%20%20%3Cmeta%20http-equiv%3D%22content-type%22%20content%3D%22text/html%3B%20charset%3DUTF-8%22%20/%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%3Cscript%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20L_NO_TOUCH%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20L_DISABLE_3D%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20%3C/script%3E%0A%20%20%20%20%0A%20%20%20%20%3Cstyle%3Ehtml%2C%20body%20%7Bwidth%3A%20100%25%3Bheight%3A%20100%25%3Bmargin%3A%200%3Bpadding%3A%200%3B%7D%3C/style%3E%0A%20%20%20%20%3Cstyle%3E%23map%20%7Bposition%3Aabsolute%3Btop%3A0%3Bbottom%3A0%3Bright%3A0%3Bleft%3A0%3B%7D%3C/style%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//cdn.jsdelivr.net/npm/leaflet%401.6.0/dist/leaflet.js%22%3E%3C/script%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//code.jquery.com/jquery-1.12.4.min.js%22%3E%3C/script%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js%22%3E%3C/script%3E%0A%20%20%20%20%3Cscript%20src%3D%22https%3A//cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js%22%3E%3C/script%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//cdn.jsdelivr.net/npm/leaflet%401.6.0/dist/leaflet.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css%22/%3E%0A%20%20%20%20%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A//cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css%22/%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cmeta%20name%3D%22viewport%22%20content%3D%22width%3Ddevice-width%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20initial-scale%3D1.0%2C%20maximum-scale%3D1.0%2C%20user-scalable%3Dno%22%20/%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cstyle%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23map_98b25cc268034b9095f43b53dff50d5a%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20position%3A%20relative%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20width%3A%20100.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20height%3A%20100.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20left%3A%200.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20top%3A%200.0%25%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%3C/style%3E%0A%20%20%20%20%20%20%20%20%0A%3C/head%3E%0A%3Cbody%3E%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20class%3D%22folium-map%22%20id%3D%22map_98b25cc268034b9095f43b53dff50d5a%22%20%3E%3C/div%3E%0A%20%20%20%20%20%20%20%20%0A%3C/body%3E%0A%3Cscript%3E%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20map_98b25cc268034b9095f43b53dff50d5a%20%3D%20L.map%28%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22map_98b25cc268034b9095f43b53dff50d5a%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20center%3A%20%5B38.93574700234818%2C%20-76.6758023403923%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20crs%3A%20L.CRS.EPSG3857%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20zoom%3A%2010%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20zoomControl%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20preferCanvas%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%29%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20L.control.scale%28%29.addTo%28map_98b25cc268034b9095f43b53dff50d5a%29%3B%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%0A%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20tile_layer_23f721af04634bf68d87f4824961ad99%20%3D%20L.tileLayer%28%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22https%3A//%7Bs%7D.tile.openstreetmap.org/%7Bz%7D/%7Bx%7D/%7By%7D.png%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%22attribution%22%3A%20%22Data%20by%20%5Cu0026copy%3B%20%5Cu003ca%20href%3D%5C%22http%3A//openstreetmap.org%5C%22%5Cu003eOpenStreetMap%5Cu003c/a%5Cu003e%2C%20under%20%5Cu003ca%20href%3D%5C%22http%3A//www.openstreetmap.org/copyright%5C%22%5Cu003eODbL%5Cu003c/a%5Cu003e.%22%2C%20%22detectRetina%22%3A%20false%2C%20%22maxNativeZoom%22%3A%2018%2C%20%22maxZoom%22%3A%2018%2C%20%22minZoom%22%3A%200%2C%20%22noWrap%22%3A%20false%2C%20%22opacity%22%3A%201%2C%20%22subdomains%22%3A%20%22abc%22%2C%20%22tms%22%3A%20false%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%29.addTo%28map_98b25cc268034b9095f43b53dff50d5a%29%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20map_98b25cc268034b9095f43b53dff50d5a.fitBounds%28%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5B%5B38.79077326148708%2C%20-76.86142258851658%5D%2C%20%5B39.08072074320928%2C%20-76.490182092268%5D%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7B%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%29%3B%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%0A%20%20%20%20%20%20%20%20function%20geo_json_0864bab0da73473ba1277da9e82f347a_styler%28feature%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20switch%28feature.id%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20default%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20%7B%22fillOpacity%22%3A%200.5%2C%20%22weight%22%3A%202%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20function%20geo_json_0864bab0da73473ba1277da9e82f347a_highlighter%28feature%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20switch%28feature.id%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20default%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20return%20%7B%22fillOpacity%22%3A%200.75%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20function%20geo_json_0864bab0da73473ba1277da9e82f347a_pointToLayer%28feature%2C%20latlng%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20opts%20%3D%20%7B%22bubblingMouseEvents%22%3A%20true%2C%20%22color%22%3A%20%22%233388ff%22%2C%20%22dashArray%22%3A%20null%2C%20%22dashOffset%22%3A%20null%2C%20%22fill%22%3A%20true%2C%20%22fillColor%22%3A%20%22%233388ff%22%2C%20%22fillOpacity%22%3A%200.2%2C%20%22fillRule%22%3A%20%22evenodd%22%2C%20%22lineCap%22%3A%20%22round%22%2C%20%22lineJoin%22%3A%20%22round%22%2C%20%22opacity%22%3A%201.0%2C%20%22radius%22%3A%202%2C%20%22stroke%22%3A%20true%2C%20%22weight%22%3A%203%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20let%20style%20%3D%20geo_json_0864bab0da73473ba1277da9e82f347a_styler%28feature%29%0A%20%20%20%20%20%20%20%20%20%20%20%20Object.assign%28opts%2C%20style%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20new%20L.CircleMarker%28latlng%2C%20opts%29%0A%20%20%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%20%20function%20geo_json_0864bab0da73473ba1277da9e82f347a_onEachFeature%28feature%2C%20layer%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20layer.on%28%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mouseout%3A%20function%28e%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%28typeof%20e.target.setStyle%20%3D%3D%3D%20%22function%22%29%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20geo_json_0864bab0da73473ba1277da9e82f347a.resetStyle%28e.target%29%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mouseover%3A%20function%28e%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if%28typeof%20e.target.setStyle%20%3D%3D%3D%20%22function%22%29%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20const%20highlightStyle%20%3D%20geo_json_0864bab0da73473ba1277da9e82f347a_highlighter%28e.target.feature%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20e.target.setStyle%28highlightStyle%29%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%29%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20var%20geo_json_0864bab0da73473ba1277da9e82f347a%20%3D%20L.geoJson%28null%2C%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20onEachFeature%3A%20geo_json_0864bab0da73473ba1277da9e82f347a_onEachFeature%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20style%3A%20geo_json_0864bab0da73473ba1277da9e82f347a_styler%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20pointToLayer%3A%20geo_json_0864bab0da73473ba1277da9e82f347a_pointToLayer%0A%20%20%20%20%20%20%20%20%7D%29%3B%0A%0A%20%20%20%20%20%20%20%20function%20geo_json_0864bab0da73473ba1277da9e82f347a_add%20%28data%29%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20geo_json_0864bab0da73473ba1277da9e82f347a%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.addData%28data%29%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20.addTo%28map_98b25cc268034b9095f43b53dff50d5a%29%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20geo_json_0864bab0da73473ba1277da9e82f347a_add%28%7B%22bbox%22%3A%20%5B-76.86142258851658%2C%2038.79077326148708%2C%20-76.490182092268%2C%2039.08072074320928%5D%2C%20%22features%22%3A%20%5B%7B%22bbox%22%3A%20%5B-76.86142258851658%2C%2038.79077326148708%2C%20-76.490182092268%2C%2039.08072074320928%5D%2C%20%22geometry%22%3A%20%7B%22coordinates%22%3A%20%5B%5B%5B-76.490182092268%2C%2038.935086753818325%5D%2C%20%5B-76.49117729779071%2C%2038.920880832710566%5D%2C%20%5B-76.49394941373137%2C%2038.906819430462875%5D%2C%20%5B-76.49847072830927%2C%2038.89303784343044%5D%2C%20%5B-76.50469676668463%2C%2038.87966859921486%5D%2C%20%5B-76.51256675490865%2C%2038.86684018793399%5D%2C%20%5B-76.52200423624667%2C%2038.85467583491825%5D%2C%20%5B-76.53291783276698%2C%2038.84329232626186%5D%2C%20%5B-76.54520214391191%2C%2038.8327988980669%5D%2C%20%5B-76.55873877270852%2C%2038.823296199541396%5D%2C%20%5B-76.57339746932902%2C%2038.814875339358174%5D%2C%20%5B-76.58903738087818%2C%2038.80761702385843%5D%2C%20%5B-76.60550839556164%2C%2038.80159079480145%5D%2C%20%5B-76.62265256877077%2C%2038.796854373428445%5D%2C%20%5B-76.64030561810313%2C%2038.793453116630445%5D%2C%20%5B-76.65829847391653%2C%2038.79141958999786%5D%2C%20%5B-76.67645887168523%2C%2038.79077326148708%5D%2C%20%5B-76.69461297218425%2C%2038.79152031837615%5D%2C%20%5B-76.71258699536908%2C%2038.79365360910311%5D%2C%20%5B-76.73020885374117%2C%2038.79715271049283%5D%2C%20%5B-76.74730977099158%2C%2038.80198411978722%5D%2C%20%5B-76.76372587179942%2C%2038.80810156980777%5D%2C%20%5B-76.7792997288256%2C%2038.81544646450009%5D%2C%20%5B-76.79388185319111%2C%2038.82394843104903%5D%2C%20%5B-76.8073321150653%2C%2038.8335259837128%5D%2C%20%5B-76.8195210814175%2C%2038.84408729351379%5D%2C%20%5B-76.83033125850852%2C%2038.855531056948955%5D%2C%20%5B-76.83965822732503%2C%2038.86774745595321%5D%2C%20%5B-76.84741166089022%2C%2038.880619200469496%5D%2C%20%5B-76.85351621322621%2C%2038.89402264416234%5D%2C%20%5B-76.8579122706976%2C%2038.90782896306188%5D%2C%20%5B-76.86055655753444%2C%2038.921905386254764%5D%2C%20%5B-76.86142258851658%2C%2038.93611646715394%5D%2C%20%5B-76.8605009630951%2C%2038.950325383390485%5D%2C%20%5B-76.85779949662789%2C%2038.96439525298609%5D%2C%20%5B-76.85334318590449%2C%2038.97819045419138%5D%2C%20%5B-76.84717400772186%2C%2038.991577936221745%5D%2C%20%5B-76.8393505509298%2C%2039.00442850809262%5D%2C%20%5B-76.8299474840788%2C%2039.016618092856795%5D%2C%20%5B-76.81905486255158%2C%2039.028028934780046%5D%2C%20%5B-76.80677728081947%2C%2039.038550747359466%5D%2C%20%5B-76.79323287721375%2C%2039.04808179059146%5D%2C%20%5B-76.77855220030992%2C%2039.05652986653154%5D%2C%20%5B-76.7628769476646%2C%2039.063813222950905%5D%2C%20%5B-76.74635858919183%2C%2039.069861355779814%5D%2C%20%5B-76.72915688888924%2C%2039.07461570202509%5D%2C%20%5B-76.71143833990047%2C%2039.07803021595065%5D%2C%20%5B-76.69337452900241%2C%2039.08007182250015%5D%2C%20%5B-76.67514044751398%2C%2039.08072074320928%5D%2C%20%5B-76.6569127663183%2C%2039.07997069118286%5D%2C%20%5B-76.63886809315862%2C%2039.0778289330847%5D%2C%20%5B-76.62118123060097%2C%2039.07431621748773%5D%2C%20%5B-76.60402345304755%2C%2039.06946657033821%5D%2C%20%5B-76.58756082093501%2C%2039.06332695968754%5D%2C%20%5B-76.5719525497672%2C%2039.055956833212996%5D%2C%20%5B-76.55734945091965%2C%2039.04742753337487%5D%2C%20%5B-76.54389246023145%2C%2039.037821596319205%5D%2C%20%5B-76.53171126928378%2C%2039.02723194182031%5D%2C%20%5B-76.5209230729775%2C%2039.015760962651584%5D%2C%20%5B-76.51163144558821%2C%2039.00351952276212%5D%2C%20%5B-76.50392535592262%2C%2038.99062587451426%5D%2C%20%5B-76.49787833055281%2C%2038.97720450598923%5D%2C%20%5B-76.49354777239242%2C%2038.96338492999592%5D%2C%20%5B-76.49097444012922%2C%2038.94930042690842%5D%2C%20%5B-76.490182092268%2C%2038.935086753818325%5D%2C%20%5B-76.490182092268%2C%2038.935086753818325%5D%5D%5D%2C%20%22type%22%3A%20%22Polygon%22%7D%2C%20%22id%22%3A%20%220%22%2C%20%22properties%22%3A%20%7B%7D%2C%20%22type%22%3A%20%22Feature%22%7D%5D%2C%20%22type%22%3A%20%22FeatureCollection%22%7D%29%3B%0A%0A%20%20%20%20%20%20%20%20%0A%3C/script%3E onload=\"this.contentDocument.open();this.contentDocument.write( decodeURIComponent(this.getAttribute('data-html')));this.contentDocument.close();\" allowfullscreen webkitallowfullscreen mozallowfullscreen></iframe></div></div>"
],
"text/plain": [
"<folium.folium.Map at 0x7f8e3bf7e8e0>"
]
},
"execution_count": 71,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"gdf[\"proj\"].explore()"
]
},
{
"cell_type": "code",
"execution_count": 72,
"id": "a121d906",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'{\"type\": \"FeatureCollection\", \"features\": [{\"id\": \"0\", \"type\": \"Feature\", \"properties\": {}, \"geometry\": {\"type\": \"Polygon\", \"coordinates\": [[[-76.490182092268, 38.935086753818325], [-76.49117729779071, 38.920880832710566], [-76.49394941373137, 38.906819430462875], [-76.49847072830927, 38.89303784343044], [-76.50469676668463, 38.87966859921486], [-76.51256675490865, 38.86684018793399], [-76.52200423624667, 38.85467583491825], [-76.53291783276698, 38.84329232626186], [-76.54520214391191, 38.8327988980669], [-76.55873877270852, 38.823296199541396], [-76.57339746932902, 38.814875339358174], [-76.58903738087818, 38.80761702385843], [-76.60550839556164, 38.80159079480145], [-76.62265256877077, 38.796854373428445], [-76.64030561810313, 38.793453116630445], [-76.65829847391653, 38.79141958999786], [-76.67645887168523, 38.79077326148708], [-76.69461297218425, 38.79152031837615], [-76.71258699536908, 38.79365360910311], [-76.73020885374117, 38.79715271049283], [-76.74730977099158, 38.80198411978722], [-76.76372587179942, 38.80810156980777], [-76.7792997288256, 38.81544646450009], [-76.79388185319111, 38.82394843104903], [-76.8073321150653, 38.8335259837128], [-76.8195210814175, 38.84408729351379], [-76.83033125850852, 38.855531056948955], [-76.83965822732503, 38.86774745595321], [-76.84741166089022, 38.880619200469496], [-76.85351621322621, 38.89402264416234], [-76.8579122706976, 38.90782896306188], [-76.86055655753444, 38.921905386254764], [-76.86142258851658, 38.93611646715394], [-76.8605009630951, 38.950325383390485], [-76.85779949662789, 38.96439525298609], [-76.85334318590449, 38.97819045419138], [-76.84717400772186, 38.991577936221745], [-76.8393505509298, 39.00442850809262], [-76.8299474840788, 39.016618092856795], [-76.81905486255158, 39.028028934780046], [-76.80677728081947, 39.038550747359466], [-76.79323287721375, 39.04808179059146], [-76.77855220030992, 39.05652986653154], [-76.7628769476646, 39.063813222950905], [-76.74635858919183, 39.069861355779814], [-76.72915688888924, 39.07461570202509], [-76.71143833990047, 39.07803021595065], [-76.69337452900241, 39.08007182250015], [-76.67514044751398, 39.08072074320928], [-76.6569127663183, 39.07997069118286], [-76.63886809315862, 39.0778289330847], [-76.62118123060097, 39.07431621748773], [-76.60402345304755, 39.06946657033821], [-76.58756082093501, 39.06332695968754], [-76.5719525497672, 39.055956833212996], [-76.55734945091965, 39.04742753337487], [-76.54389246023145, 39.037821596319205], [-76.53171126928378, 39.02723194182031], [-76.5209230729775, 39.015760962651584], [-76.51163144558821, 39.00351952276212], [-76.50392535592262, 38.99062587451426], [-76.49787833055281, 38.97720450598923], [-76.49354777239242, 38.96338492999592], [-76.49097444012922, 38.94930042690842], [-76.490182092268, 38.935086753818325], [-76.490182092268, 38.935086753818325]]]}, \"bbox\": [-76.86142258851658, 38.79077326148708, -76.490182092268, 39.08072074320928]}], \"bbox\": [-76.86142258851658, 38.79077326148708, -76.490182092268, 39.08072074320928]}'"
]
},
"execution_count": 72,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"gdf[\"proj\"].to_json()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.1"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment