{"id":23196417,"url":"https://github.com/cspanring/flatlands","last_synced_at":"2025-04-05T08:25:44.229Z","repository":{"id":17924138,"uuid":"20894325","full_name":"cspanring/flatlands","owner":"cspanring","description":"Transforms a 3D GeoJSON feature geometry to 2D.","archived":false,"fork":false,"pushed_at":"2014-06-16T17:53:30.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T04:16:46.258Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cspanring.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-16T17:48:34.000Z","updated_at":"2021-05-21T02:12:22.000Z","dependencies_parsed_at":"2022-08-04T21:30:25.801Z","dependency_job_id":null,"html_url":"https://github.com/cspanring/flatlands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspanring%2Fflatlands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspanring%2Fflatlands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspanring%2Fflatlands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspanring%2Fflatlands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cspanring","download_url":"https://codeload.github.com/cspanring/flatlands/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247308266,"owners_count":20917668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-12-18T14:18:25.599Z","updated_at":"2025-04-05T08:25:44.188Z","avatar_url":"https://github.com/cspanring.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flatlands\n\n[![Build Status](https://travis-ci.org/cspanring/flatlands.svg)](https://travis-ci.org/cspanring/flatlands)\n\nTransforms a 3D GeoJSON feature geometry to 2D.\n\n## Usage\n\n    var flatlands = require('flatlands');\n\n    var multipolygon = {\n      \"type\": \"MultiPolygon\",\n      \"coordinates\": [\n        [\n          [\n            [102.0, 2.0, 0],\n            [103.0, 2.0, 0],\n            [103.0, 3.0, 0],\n            [102.0, 3.0, 0],\n            [102.0, 2.0, 0]\n          ]\n        ],\n        [\n          [\n            [100.0, 0.0, 0],\n            [101.0, 0.0, 0],\n            [101.0, 1.0, 0],\n            [100.0, 1.0, 0],\n            [100.0, 0.0, 0]\n          ],\n          [\n            [100.2, 0.2, 0],\n            [100.8, 0.2, 0],\n            [100.8, 0.8, 0],\n            [100.2, 0.8, 0],\n            [100.2, 0.2, 0]\n          ]\n        ]\n      ]\n    };\n\n    var feature = flatlands(multipolygon);\n\nReturns:\n\n    {\n      \"type\": \"MultiPolygon\",\n      \"coordinates\": [\n        [\n          [\n            [102, 2],\n            [103, 2],\n            [103, 3],\n            [102, 3],\n            [102, 2]\n          ]\n        ],\n        [\n          [\n            [100, 0],\n            [101, 0],\n            [101, 1],\n            [100, 1],\n            [100, 0]\n          ],\n          [\n            [100.2, 0.2],\n            [100.8, 0.2],\n            [100.8, 0.8],\n            [100.2, 0.8],\n            [100.2, 0.2]\n          ]\n        ]\n      ]\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcspanring%2Fflatlands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcspanring%2Fflatlands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcspanring%2Fflatlands/lists"}