November, 2024
github url: https://github.com/huiwu005/vmac_highcharts
This app includes How to use QGIS? to filter by feature, edit feature, split by layer, join attributes by location, merge layers, finally export feature to desired map based on zipcode information.
https://www.highcharts.com/demo
https://code.highcharts.com/mapdata/
https://www.census.gov/geographies/mapping-files/time-series/geo/tiger-line-file.html
*Due to large file size, downloaded files are not included. Below files are suggested to download and used in two examples of this application.
- Counties (and equivalent)
tl_2023_us_county
- ZIP Code Tabulation Areas
tl_2023_us_zcta520
- For e.g. 2 Landmarks → Area Landmark (Tennessee)
tl_2023_47_arealm
- For e.g. 2 Roads → All Roads (Tennessee → Davidson County 47037)
tl_2023_47037_roads
- For e.g. 2 Water → Area Hydrography (Tennessee → Davidson County 47037)
tl_2023_47037_areawater
- Import shapefiles downloaded from Census to QGIS.
- Save splitted, joined, merged files, export and saved as .geojson at
assets/maps/qgis/
- Other used file uszips_hc-key.csv
- Due to
tl_2023_us_zcta520
lack of information of state, county and city name, in order to splittl_2023_us_zcta520
by county or state, filterZCTA5CE20
equals tozip
s ofstate_id = "TN"
for Tennessee orcounty_name = "Davidson"
for Davidson County in uszips_hc-key.csv file. - To present correct city name in e.g. 1 Davidson Multi-layer, modify
NAME
feature or add new feature likeCITY
intl_2023_47_county_join_zcta520_{ZCTA5CE20}
bycity
in uszips_hc-key.csv file.
- Due to
zip,lat,lng,city,state_id,state_name,zcta,parent_zcta,population,density,county_fips,county_name,county_weights,county_names_all,county_fips_all,imprecise,military,timezone,hc-key
00601,18.18027,-66.75266,Adjuntas,PR,Puerto Rico,TRUE,,16773,100.5,72001,Adjuntas,"{""72001"": 98.76, ""72141"": 1.24}",Adjuntas|Utuado,72001|72141,FALSE,FALSE,America/Puerto_Rico,us-pr-001
00606,18.16585,-66.93716,Maricao,PR,Puerto Rico,TRUE,,6231,54.3,72093,Maricao,"{""72093"": 82.28, ""72153"": 11.67, ""72121"": 6.05}",Maricao|Yauco|Sabana Grande,72093|72153|72121,FALSE,FALSE,America/Puerto_Rico,us-pr-093
Davidson Multi-layer Example use below files
- Layer 1: assets/maps/qgis/tl_2023_47_county/GEOID_47037.geojson
- Layer 2: assets/maps/qgis/tl_2023_47_county_join_zcta520/tl_2023_47_county_join_zcta520_47037.geojson
- Layer 3: assets/maps/qgis/tl_2023_47037_roads_IUS.geojson
- Layer 4: assets/maps/qgis/tl_2023_47037_arealm_areawater.geojson
Refer Kei Saito How to Reduce your GeoJSON File Size Smaller for Better Performance
- Upload your map file to https://mapshaper.org/
Drop, paste or
select
files to import. Shapefile, GeoJSON, TopoJSON, KML and CSV formats are supported. Files can be zipped or gzipped. - Simplify and Adjust the Settings
- Export
php -S localhost:3000
Then visit http://localhost:3000 on browser