Skip to content

Commit

Permalink
Merge pull request #1 from lixun910/new-geoarrow-sample
Browse files Browse the repository at this point in the history
[Sample] new geoarrow sample
  • Loading branch information
ibgreen authored Dec 18, 2023
2 parents bdfbbe3 + f4b2c60 commit 88e707c
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 21 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ The data provided in this repo is public and located at the following URLs:
- [2017 Unemployment Rates for U.S. Counties](./county_unemployment)

This dataset contains 2017 labor force information from the [Bureau of Labor Statistics](https://www.bls.gov/lau/#tables) joined with county shapefiles from the [Census Bureau](https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html).

- [Block-level Earnings New York City (GeoArrow)](./nyc_earnings)

This GeoArrow dataset contains block-level earnings data of New York City from 2002 to 2014. The map is a Quantile map based on the total number of jobs in year 2000-2002. Data is prepared by [the Center for Spatial Data Science at University of Chicago](https://spatial.uchicago.edu). Data source: [CSDS](https://geodacenter.github.io/data-and-lab/LEHD_Data/).
146 changes: 146 additions & 0 deletions nyc_earnings/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"version": "v1",
"config": {
"visState": {
"filters": [],
"layers": [
{
"id": "hkc2hq",
"type": "geojson",
"config": {
"dataId": "-svoeb1",
"label": "nyc",
"color": [255, 203, 153],
"highlightColor": [252, 242, 26, 255],
"columns": { "geojson": "geometry" },
"isVisible": true,
"visConfig": {
"opacity": 0.8,
"strokeOpacity": 0.8,
"thickness": 0.1,
"strokeColor": [241, 241, 241],
"colorRange": {
"name": "UberPool 6",
"type": "diverging",
"category": "Uber",
"colors": [
"#213E9A",
"#551EAD",
"#C019BD",
"#D31256",
"#E6470A",
"#F9E200"
]
},
"strokeColorRange": {
"name": "Global Warming",
"type": "sequential",
"category": "Uber",
"colors": [
"#5A1846",
"#900C3F",
"#C70039",
"#E3611C",
"#F1920E",
"#FFC300"
]
},
"radius": 10,
"sizeRange": [0, 10],
"radiusRange": [0, 50],
"heightRange": [0, 500],
"elevationScale": 5,
"enableElevationZoomFactor": true,
"stroked": true,
"filled": true,
"enable3d": false,
"wireframe": false
},
"hidden": false,
"textLabel": [
{
"field": null,
"color": [255, 255, 255],
"size": 18,
"offset": [0, 0],
"anchor": "start",
"alignment": "center",
"outlineWidth": 0,
"outlineColor": [255, 0, 0, 255],
"background": false,
"backgroundColor": [0, 0, 200, 255]
}
]
},
"visualChannels": {
"colorField": { "name": "C000_02", "type": "integer" },
"colorScale": "quantile",
"strokeColorField": null,
"strokeColorScale": "quantile",
"sizeField": null,
"sizeScale": "linear",
"heightField": null,
"heightScale": "linear",
"radiusField": null,
"radiusScale": "linear"
}
}
],
"effects": [],
"interactionConfig": {
"tooltip": {
"fieldsToShow": {
"-svoeb1": [
{ "name": "STATEFP10", "format": null },
{ "name": "COUNTYFP10", "format": null },
{ "name": "TRACTCE10", "format": null },
{ "name": "BLOCKCE10", "format": null },
{ "name": "GEOID10", "format": null }
]
},
"compareMode": false,
"compareType": "absolute",
"enabled": true
},
"brush": { "size": 0.5, "enabled": false },
"geocoder": { "enabled": false },
"coordinate": { "enabled": false }
},
"layerBlending": "normal",
"overlayBlending": "normal",
"splitMaps": [],
"animationConfig": { "currentTime": null, "speed": 1 },
"editor": { "features": [], "visible": true }
},
"mapState": {
"bearing": 0,
"dragRotate": false,
"latitude": 40.94962909781395,
"longitude": -73.09033390902026,
"pitch": 0,
"zoom": 8.828968302163942,
"isSplit": false,
"isViewportSynced": true,
"isZoomLocked": false,
"splitMapViewports": []
},
"mapStyle": {
"styleType": "dark",
"topLayerGroups": { "label": true },
"visibleLayerGroups": {
"label": true,
"road": true,
"border": false,
"building": true,
"water": true,
"land": true,
"3d building": false
},
"threeDBuildingColor": [
9.665468314072013, 17.18305478057247, 31.1442867897876
],
"backgroundColor": [255, 255, 255],
"mapStyles": {}
}
}
}
Binary file added nyc_earnings/data.arrow
Binary file not shown.
Binary file added nyc_earnings/nyc-earnings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 33 additions & 21 deletions samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"detail": "The dataset contains two hours of flight data collected using the live API of [OpenSky Network](https://opensky-network.org). The color of the flights is based on country of origin. 18 thousands flights are recorded during the two hour period. The path drops over the seas due to lack of satellite coverage. Airline info is added to each flight by joining with data from [airlinecodes.co.uk](http://www.airlinecodes.co.uk/callsignres.asp?callsign=&submit=Submit)",
"size": 12938,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/world_flights/world_flights_soei4h.json",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/world_flights/config_soei4h.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/world_flights/world_flights_soei4h.json",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/world_flights/config_soei4h.json"
},
{
"id": "earthquakes",
Expand All @@ -20,8 +20,8 @@
"detail": "The dataset contains a list of 2.5+ magnitude earthquakes in california. Information was generated using USGS website and contains multiple properties (location, magnitude, magtype) for each single entry. Data source: [USGS](https://earthquake.usgs.gov/data/data.php)",
"size": 54936,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/earthquakes/data.csv",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/earthquakes/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/earthquakes/data.csv",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/earthquakes/config.json"
},
{
"id": "nyctrips",
Expand All @@ -32,8 +32,8 @@
"detail": "The yellow and green taxi trip records include fields capturing pick-up and drop-off dates/times, pick-up and drop-off locations, trip distances, itemized fares, rate types, payment types, and driver-reported passenger counts. Data is downloaded from [NYC Taxi and Limousine Commission (TLC)](https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page) website.",
"size": 97986,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/nyctrips/data.csv",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/nyctrips/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/nyctrips/data.csv",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/nyctrips/config.json"
},
{
"id": "sfcontour",
Expand All @@ -44,8 +44,8 @@
"detail": "This dataset contains elevation contours for San Francisco mainland and Treasure Island/Yerba Island. Based on San Francisco Elevation Datum. Data source: [DataSF](https://data.sfgov.org/City-Infrastructure/Street-Tree-List/tkzw-k3nq/data).",
"size": 13598,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/sfcontour/data.json",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/sfcontour/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/sfcontour/data.json",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/sfcontour/config.json"
},
{
"id": "nyc_census",
Expand All @@ -55,8 +55,8 @@
"description": "This dataset contains the 2010 Census tract population data of NYC.",
"detail": "This dataset contains the 2010 Census tract map from [NYC Open Data](https://data.cityofnewyork.us/City-Government/2010-Census-Tracts/fxpq-c8ku/data), joined with [population](https://data.cityofnewyork.us/City-Government/New-York-City-Population-By-Census-Tracts/37cg-gxjd).",
"size": 2166,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/nyc_census/data.json",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/nyc_census/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/nyc_census/data.json",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/nyc_census/config.json"
},
{
"id": "sftrees",
Expand All @@ -67,8 +67,8 @@
"detail": "This dataset contains a list of dpw maintained street trees including planting date, species and location. Data source: [DataSF](https://data.sfgov.org/City-Infrastructure/Street-Tree-List/tkzw-k3nq/data).",
"size": 65499,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/sftrees/data.csv",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/sftrees/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/sftrees/data.csv",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/sftrees/config.json"
},
{
"id": "ukcommute",
Expand All @@ -79,8 +79,8 @@
"detail": "This dataset shows location of residence and place of work, based on 2011 Census of residence of England and Wales. The data classifies people currently resident in each middle layer super output area, or higher area and shows the movement between their area of residence and workplace. Data source: [Nomis](https://www.nomisweb.co.uk/census/2011/wu03uk/chart)",
"size": 679643,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/ukcommute/data.csv",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/ukcommute/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/ukcommute/data.csv",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/ukcommute/config.json"
},
{
"id": "la_assessorparcels",
Expand All @@ -91,8 +91,8 @@
"detail": "This dataset contains Valuation and property description for parcels on the Assessor's annual secured assessment rolls 2006 through 2017. This dataset excludes Cross Reference Rolls (89xx-series AssessorID). Data source: [County of Los Angeles Open Data](https://data.lacounty.gov/Parcel-/Assessor-Parcels-Data-2006-thru-2019/9trm-uz8i)",
"size": 284554,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/la_assessorparcels/data.csv",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/la_assessorparcels/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/la_assessorparcels/data.csv",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/la_assessorparcels/config.json"
},
{
"id": "movement_pittsburgh",
Expand All @@ -103,8 +103,8 @@
"detail": "Uber Movement provides free and public access to travel times data derived from billions of Uber trips. Data is available under a Creative Commons Noncommercial Attribution License. Data source: [Uber Movement](https://movement.uber.com)",
"size": 793,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/movement_pittsburgh/data.csv",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/movement_pittsburgh/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/movement_pittsburgh/data.csv",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/movement_pittsburgh/config.json"
},
{
"id": "county_unemployment",
Expand All @@ -115,8 +115,8 @@
"detail": " This dataset contains 2017 labor force information from the [Bureau of Labor Statistics](https://www.bls.gov/lau/#tables) joined with county shapefiles from the [Census Bureau](https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html).",
"size": 3220,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/county_unemployment/data.geojson",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/county_unemployment/config.json"
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/county_unemployment/data.geojson",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/county_unemployment/config.json"
},
{
"id": "usdot",
Expand All @@ -125,6 +125,18 @@
"imageUrl": "https://s3.amazonaws.com/uber-static/kepler.gl/usdot/counties-unemployment.png",
"description": "2017 Labor force information for U.S. Counties",
"visible": false,
"keplergl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/usdot/keplergl.json"
"keplergl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/usdot/keplergl.json"
},
{
"id": "nyc_earnings",
"label": "Block-level Earnings New York City (GeoArrow)",
"queryType": "sample",
"imageUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/nyc_earnings/nyc-earnings.png",
"description": "Block-level Earnings New York City (2002-14) from Longitudinal Employer-Household Dynamics (LEHD). Geographic units: 2010 Census blocks.",
"detail": " This GeoArrow dataset contains block-level earnings data of New York City from 2002 to 2014. The map is a Quantile map based on the total number of jobs in year 2000-2002. Data is prepared by [the Center for Spatial Data Science at University of Chicago](https://spatial.uchicago.edu). Data source [page](https://geodacenter.github.io/data-and-lab/LEHD_Data/).",
"size": 108487,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/nyc_earnings/data.arrow",
"configUrl": "https://raw.githubusercontent.com/keplergl/kepler.gl-data/master/nyc_earnings/config.json"
}
]

0 comments on commit 88e707c

Please sign in to comment.