niiyz / japancitygeojson Goto Github PK
View Code? Open in Web Editor NEWGeoJson of Japanese cities. and TopoJson.
Home Page: http://geojson.niiyz.com/
GeoJson of Japanese cities. and TopoJson.
Home Page: http://geojson.niiyz.com/
{
"type": "FeatureCollection",
"features": [],
"features": [{
"type": "Feature",
"id": "札幌市**区",
……
例えば、北海道.jsonファイルに
一つ空の"features"があって
それ以外、名前のところはすべてidを書いていますが、idとしては文字はよくない感じがありますね。
それは、adviceです。
変更してよろしいかどうかを確認しますか?
topojsonコマンドで。
大変有用なコンテンツありがとうございます。
数値ごとに色分けするコロプレス図ですが、Pythonのfoliumというライブラリと組み合わせて利用すると、数値いかんに関わらずダークグレーとして表示されます。回避方法としてtokyo23.jsonの書き換えが下記提案されております。("MultiPolygon" についての修正)
https://teratail.com/questions/195732
可能であればtokyo23.jsonの修正をお願いしたいと思います。
json読み込んでファイル名とjson内のid(行政区分コード)が合っているかくらいの簡単なの。
市区町村コードのバージョンアップが必要です。
403059 那珂川町 -> 402311 那珂川市
044237 富谷町 -> 042161 富谷市
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
どうやらこのようなエラーがでました
$(npm bin)/topojson -q 1e4 -o japan.topojson ./geojson/japan.json
if (error) throw error;
^
Error: "toString()" failed
at Buffer.toString (buffer.js:495:11)
at Object.fs.readFileSync (fs.js:552:33)
at module.exports (/Users/tetsuya/Project/JapanCityGeoJson/node_modules/rw/lib/rw/read-file-sync.js:6:15)
at Object.readFileSync (/Users/tetsuya/Project/JapanCityGeoJson/node_modules/rw/lib/rw/dash.js:7:19)
at inputJson (/Users/tetsuya/Project/JapanCityGeoJson/node_modules/topojson/bin/topojson:245:30)
at start (/Users/tetsuya/Project/JapanCityGeoJson/node_modules/d3-queue/build/d3-queue.js:68:13)
at poke (/Users/tetsuya/Project/JapanCityGeoJson/node_modules/d3-queue/build/d3-queue.js:56:26)
at Queue.defer (/Users/tetsuya/Project/JapanCityGeoJson/node_modules/d3-queue/build/d3-queue.js:34:7)
at /Users/tetsuya/Project/JapanCityGeoJson/node_modules/topojson/bin/topojson:196:5
at Array.forEach (native)
testConversion(
"Empty geometries",
"test/topojson/empty.json",
"-- multilinestring=test/geojson/empty-multilinestring.json"
" multipoint=test/geojson/empty-multipoint.json"
" multipolygon=test/geojson/empty-multipolygon.json"
" multipolygon2=test/geojson/empty-multipolygon2.json"
" polygon=test/geojson/empty-polygon.json"
);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.