{"id":13505567,"url":"https://github.com/terraformer-js/terraformer","last_synced_at":"2025-03-30T00:31:08.212Z","repository":{"id":36476361,"uuid":"163339072","full_name":"terraformer-js/terraformer","owner":"terraformer-js","description":"A geographic toolkit for dealing with geometry, geography, formats, and building geodatabases","archived":false,"fork":false,"pushed_at":"2025-03-07T20:47:07.000Z","size":1921,"stargazers_count":203,"open_issues_count":5,"forks_count":29,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-24T05:42:20.634Z","etag":null,"topics":["arcgis","data-management","geojson","javascript"],"latest_commit_sha":null,"homepage":"","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/terraformer-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2018-12-27T21:53:17.000Z","updated_at":"2025-03-22T00:13:57.000Z","dependencies_parsed_at":"2024-05-02T18:51:55.021Z","dependency_job_id":"0fc26821-829b-40dc-8d63-544464c9c1b6","html_url":"https://github.com/terraformer-js/terraformer","commit_stats":{"total_commits":121,"total_committers":12,"mean_commits":"10.083333333333334","dds":0.5123966942148761,"last_synced_commit":"ff005ec4b12ebff5a12a6c11e694129f06181b45"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraformer-js%2Fterraformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraformer-js%2Fterraformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraformer-js%2Fterraformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraformer-js%2Fterraformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraformer-js","download_url":"https://codeload.github.com/terraformer-js/terraformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262490,"owners_count":20749170,"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":["arcgis","data-management","geojson","javascript"],"created_at":"2024-08-01T00:01:09.905Z","updated_at":"2025-03-30T00:31:03.204Z","avatar_url":"https://github.com/terraformer-js.png","language":"JavaScript","funding_links":[],"categories":["Data conversion tools"],"sub_categories":[],"readme":"# @terraformer\n\n[![npm][npm-image]][npm-url]\n[![travis][travis-image]][travis-url]\n[![standard][standard-image]][standard-url]\n\n[npm-image]: https://img.shields.io/npm/v/@terraformer/arcgis.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/@terraformer/arcgis\n[travis-image]: https://app.travis-ci.com/terraformer-js/terraformer.svg?branch=main\n[travis-url]: https://app.travis-ci.com/terraformer-js/terraformer\n[standard-image]: https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square\n[standard-url]: http://npm.im/semistandard\n\n\u003e A geographic toolkit for dealing with geometry, geography, formats, and building geodatabases.\n\n## Packages\n\n* [`@terraformer/spatial`](./packages/spatial/README.md) - Spatial predicates for [GeoJSON](https://tools.ietf.org/html/rfc7946).\n* [`@terraformer/arcgis`](./packages/arcgis/README.md)  -  Convert ArcGIS JSON geometries to GeoJSON geometries and vice versa.\n* [`@terraformer/wkt`](./packages/wkt/README.md) - Convert WKT geometries to GeoJSON geometries and vice versa.\n\n## FAQ\n\n\u003cdetails\u003e\n  \u003csummary\u003eWhat's the difference between this and \u003ca href=\"https://github.com/Esri/Terraformer\"\u003eEsri/Terraformer\u003c/a\u003e?\u003c/summary\u003e\n\n  Very little!\n\n  This project is a standalone [ES Module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) port of the original Terraformer project _without_ the [Primitives](https://terraformer-js.github.io/core/#terraformerprimitive).\n\n  If you found instantiating Primitives tedious or you'd like to [cut down on your bundle size](https://github.com/zakjan/leaflet-lasso/issues/10) by importing only the code from Terraformer that you're actually using, you should consider upgrading.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eI'm already using \u003ccode\u003eterraformer\u003c/code\u003e. How do I upgrade?\u003c/summary\u003e\n\n  Previously it was necessary to instantiate a Terraformer Primitive in order to execute spatial operations\n  ```bash\n  npm install terraformer\n  ```\n\n  ```js\n  const Terraformer = require('terraformer')\n\n  const polygon = new Terraformer.Primitive({\n    type: \"LineString\",\n    coordinates: [\n      [ 100, 0 ], [ -45, 122 ], [ 80, -60 ]\n    ]\n  })\n\n  polygon.convexHull()\n  ```\n\n  Now you'll work directly with raw [GeoJSON](https://tools.ietf.org/html/rfc7946)\n  ```\n  npm install @terraformer/spatial\n  ```\n  ```js\n  import { convexHull } from '@terraformer/spatial'\n\n  convexHull({\n    type: \"LineString\",\n    coordinates: [\n      [ 100, 0 ], [ -45, 122 ], [ 80, -60 ]\n    ]\n  })\n  ```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eI'm already using \u003ccode\u003eterraformer-wkt-parser\u003c/code\u003e. How do I upgrade?\u003c/summary\u003e\n\n  Instead of this:\n  ```bash\n  npm install terraformer-wkt-parser\n  ```\n\n  ```js\n  var wkt = require('terraformer-wkt-parser')\n\n  // parse a WKT file and turn it into GeoJSON\n  wkt.parse('LINESTRING (30 10, 10 30, 40 40)')\n  wkt.convert(/* ... */)\n  ```\n\n  You'll do this:\n  ```\n  npm install @terraformer/wkt\n  ```\n  ```js\n  import { wktToGeoJSON, geojsonToWkt } from '@terraformer/wkt'\n\n  wktToGeoJSON(/* ... */)\n  geojsonToWKT(/* ... */)\n  ```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eI'm already using \u003ccode\u003eterraformer-arcgis-parser\u003c/code\u003e. How do I upgrade?\u003c/summary\u003e\n\n  Instead of this:\n  ```bash\n  npm install terraformer-arcgis-parser\n  ```\n\n  ```js\n  var ArcGIS = require('terraformer-arcgis-parser')\n\n  // parse ArcGIS JSON and turn it into GeoJSON\n  ArcGIS.parse()\n  ArcGIS.convert()\n  ```\n\n  You'll do this:\n  ```\n  npm install @terraformer/arcgis\n  ```\n  ```js\n  const { arcgisToGeoJSON, geojsonToArcGIS } from '@terraformer/arcgis'\n\n  arcgisToGeoJSON(/* ... */)\n  geojsonToArcGIS(/* ... */)\n  ```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eWhat about \u003ccode\u003eterraformer-geostore\u003c/code\u003e?\u003c/summary\u003e\n\n  This repo does **not** include a port of https://github.com/Esri/terraformer-geostore and there is no plan to tackle it in the future.\n\n  Since \u003ccode\u003eterraformer-geostore\u003c/code\u003e ingests plain ol' [GeoJSON](https://tools.ietf.org/html/rfc7946), you're welcome to keep on using the original code.\n\u003c/details\u003e\n\n## Contributing\n\n```shell\nnpm install \u0026\u0026 npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraformer-js%2Fterraformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraformer-js%2Fterraformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraformer-js%2Fterraformer/lists"}