{"id":21819997,"url":"https://github.com/ngageoint/simple-features-geojson-js","last_synced_at":"2026-04-11T01:50:59.631Z","repository":{"id":65526013,"uuid":"514393788","full_name":"ngageoint/simple-features-geojson-js","owner":"ngageoint","description":"Simple Features GeoJSON Javascript","archived":false,"fork":false,"pushed_at":"2022-11-28T17:49:30.000Z","size":482,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-04-29T03:21:04.200Z","etag":null,"topics":["geojson","javascript","simple-features"],"latest_commit_sha":null,"homepage":"http://ngageoint.github.io/simple-features-geojson-js","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngageoint.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}},"created_at":"2022-07-15T20:14:05.000Z","updated_at":"2022-10-31T16:01:03.000Z","dependencies_parsed_at":"2023-01-27T08:45:20.439Z","dependency_job_id":null,"html_url":"https://github.com/ngageoint/simple-features-geojson-js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngageoint%2Fsimple-features-geojson-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngageoint","download_url":"https://codeload.github.com/ngageoint/simple-features-geojson-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244782360,"owners_count":20509805,"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":["geojson","javascript","simple-features"],"created_at":"2024-11-27T16:27:52.545Z","updated_at":"2025-10-28T18:14:31.997Z","avatar_url":"https://github.com/ngageoint.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Features GeoJSON Javascript\n\n#### Simple Features GeoJSON Lib ####\n\nThe Simple Features Libraries were developed at the [National Geospatial-Intelligence Agency (NGA)](http://www.nga.mil/) in collaboration with [BIT Systems](https://www.caci.com/bit-systems/). The government has \"unlimited rights\" and is releasing this software to increase the impact of government investments by providing developers with the opportunity to take things in new directions. The software use, modification, and distribution rights are stipulated within the [MIT license](http://choosealicense.com/licenses/mit/).\n\n### Pull Requests ###\nIf you'd like to contribute to this project, please make a pull request. We'll review the pull request and discuss the changes. All pull request contributions to this project will be released under the MIT license.\n\nSoftware source code previously released under an open source license and then modified by NGA staff is considered a \"joint work\" (see 17 USC § 101); it is partially copyrighted, partially public domain, and as a whole is protected by the copyrights of the non-government authors and must be released according to the terms of the original open source license.\n\n### About ###\n\n[Simple Features GeoJSON](http://ngageoint.github.io/simple-features-geojson-js/) is a Javascript library for converting between [Simple Feature](https://github.com/ngageoint/simple-features-js) Geometries and GeoJSON.\n\n\n### Usage ###\n\nView the latest [JS Docs](http://ngageoint.github.io/simple-features-geojson-js)\n\n\n#### Browser Usage ####\n```html\n\u003cscript src=\"/path/to/simple-features-geojson-js/dist/sf-geojson.min.js\"\u003e\u003c/script\u003e\n```\n##### - Read\n```javascript\nconst { FeatureConverter } = window.SimpleFeaturesGeoJSON;\n\n//const geoJson = ...\nconst geometry = FeatureConverter.toSimpleFeaturesGeometry(geoJson);\nconst geometryType = geometry.getGeometryType();\n```\n##### - Write\n```javascript\nconst { FeatureConverter } = window.SimpleFeaturesGeoJSON;\n// const geometry = ...\n\nconst geoJson = FeatureConverter.toFeature(geometry);\n```\n\n#### Node Usage ####\n[![NPM](https://img.shields.io/npm/v/@ngageoint/simple-features-geojson-js.svg)](https://www.npmjs.com/package/@ngageoint/simple-features-geojson-js)\n\nPull from [NPM](https://www.npmjs.com/package/@ngageoint/simple-features-geojson-js)\n\n```install\nnpm install --save simple-features-geojson-js\n```\n##### - Read\n```javascript\nconst { FeatureConverter } = require(\"@ngageoint/simple-features-geojson-js\");\n\n// const geoJson = ...\n// const featureCollection = ...\nconst geometry = FeatureConverter.toSimpleFeaturesGeometry(geoJson);\nconst geometryType = geometry.geometryType;\n\nconst geometries = FeatureConverter.toSimpleFeaturesGeometryArray(featureCollection);\n\n```\n##### - Write\n```javascript\nconst { FeatureConverter } = require(\"@ngageoint/simple-features-geojson-js\");\n\n// const geometry = ...\nconst text = FeatureConverter.toFeature(geometry);\n```\n\n### Build ###\n\n![Build \u0026 Test](https://github.com/ngageoint/simple-features-geojson-js/actions/workflows/run-tests.yml/badge.svg)\n\nBuild this repository using Node.js:\n   \n    npm install\n    npm run build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fsimple-features-geojson-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngageoint%2Fsimple-features-geojson-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngageoint%2Fsimple-features-geojson-js/lists"}