{"id":19747630,"url":"https://github.com/codingmiao/giscat-js","last_synced_at":"2026-06-25T13:31:09.969Z","repository":{"id":105453999,"uuid":"560324328","full_name":"codingmiao/giscat-js","owner":"codingmiao","description":"js util for giscat","archived":false,"fork":false,"pushed_at":"2023-03-18T03:53:23.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T08:02:33.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codingmiao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-01T08:27:32.000Z","updated_at":"2022-11-01T08:30:15.000Z","dependencies_parsed_at":"2024-03-30T16:01:25.492Z","dependency_job_id":null,"html_url":"https://github.com/codingmiao/giscat-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codingmiao/giscat-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingmiao%2Fgiscat-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingmiao%2Fgiscat-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingmiao%2Fgiscat-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingmiao%2Fgiscat-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codingmiao","download_url":"https://codeload.github.com/codingmiao/giscat-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codingmiao%2Fgiscat-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34778079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T02:18:23.029Z","updated_at":"2026-06-25T13:31:09.963Z","avatar_url":"https://github.com/codingmiao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# insert\n\n```shell\nnpm i giscatjs\n```\n\nor\n\n```html\n\n\u003cscript src=\"../dist/giscat-js.js\" type=\"text/javascript\" charset=\"utf-8\"\u003e\u003c/script\u003e\n```\n\n# ProtoFeature bytes to geojson object\n\n```js\nfunction sendGet() {\n    const req = new XMLHttpRequest();\n    req.open(\"GET\", \"./data/testbytes.pbf\", true);\n    req.responseType = \"arraybuffer\";\n\n    req.onload = () =\u003e {\n        const arrayBuffer = req.response;\n        if (arrayBuffer) {\n            const bytes = new Uint8Array(arrayBuffer);// ProtoFeature bytes\n            const fc = giscat.pojo.ProtoFeatureConverter.proto2featureCollection(bytes);\n            console.log(fc) // obj\n            console.log(JSON.stringify(fc)) // string\n        }\n    };\n    req.send();\n}\n\nsendGet()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingmiao%2Fgiscat-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodingmiao%2Fgiscat-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodingmiao%2Fgiscat-js/lists"}