{"id":13527708,"url":"https://github.com/Esri/terraformer","last_synced_at":"2025-04-01T09:32:01.257Z","repository":{"id":54131761,"uuid":"6515095","full_name":"Esri/terraformer","owner":"Esri","description":"A geographic toolkit for dealing with geometry, geography, formats, and building geo databases","archived":true,"fork":false,"pushed_at":"2021-03-08T18:09:40.000Z","size":56762,"stargazers_count":671,"open_issues_count":0,"forks_count":154,"subscribers_count":69,"default_branch":"master","last_synced_at":"2024-04-27T11:02:37.339Z","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/Esri.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2012-11-03T01:18:27.000Z","updated_at":"2024-04-22T16:04:11.000Z","dependencies_parsed_at":"2022-08-13T07:10:34.386Z","dependency_job_id":null,"html_url":"https://github.com/Esri/terraformer","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esri%2Fterraformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esri%2Fterraformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esri%2Fterraformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Esri%2Fterraformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Esri","download_url":"https://codeload.github.com/Esri/terraformer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246616347,"owners_count":20806115,"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-01T06:01:57.889Z","updated_at":"2025-04-01T09:32:00.314Z","avatar_url":"https://github.com/Esri.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# IMPORTANT!\n\nTerraformer is now depreacted and this repo is marked as read-only. Development activity has moved to https://github.com/terraformer-js/terraformer.\n\n# Terraformer\n\n[![Build Status](https://travis-ci.org/Esri/terraformer.svg?branch=master)](https://travis-ci.org/Esri/terraformer)\n\n\u003e A modular toolkit for working with geographic data.\n\n## Modules\n\nThe Terraformer project is broken up into a series of smaller modules.\n\n- [Terraformer Core](./docs/core.md) - Contains methods and objects for working with GeoJSON. This also contains common methods used by other modules.\n- [WKT Parser](./docs/wkt-parser.md) - Parse Well Known Text into GeoJSON and vice versa.\n- [ArcGIS Geometry Parser](./docs/arcgis-parser.md) - Parse the [ArcGIS Geometry Format](http://resources.arcgis.com/en/help/arcgis-rest-api/#/Geometry_Objects/02r3000000n1000000/) into GeoJSON and vice versa.\n- [GeoStore](./docs/glossary.md) - A framework for persisting and querying GeoJSON features with pluggable indexes and persistent stores.\n\n## Features\n\n- Designed to work in Node and the browser\n- No dependencies on other tools or libraries\n\n## Getting Started\n\nCheck out the getting [started guide](docs/getting-started.md) which will give you an overview of core concepts and methods in Terraformer.\n\n### Node.js\n\nInstall the core module with npm and then require it in your Node program.\n\n```\n$ npm install terraformer\n```\n\n```js\nvar Terraformer = require(\"terraformer\");\n```\n\nIf needed, supporting packages can be added too.\n\n```js\nrequire(\"terraformer-arcgis-parser\");\nrequire(\"terraformer-wkt-parser\");\nrequire(\"terraformer-geostore\");\n```\n\n### Browser\n\n```html\n\u003cscript src=\"https://unpkg.com/terraformer@1.0.8\"\u003e\u003c/script\u003e\n```\n\nTo utilize supporting packages, you must load their source as well.\n\n```html\n\u003cscript src=\"https://unpkg.com/terraformer-arcgis-parser@1.0.5\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/terraformer-wkt-parser@1.1.2\"\u003e\u003c/script\u003e\n```\n\n## Documentation\n\n- [Terraformer Core](docs/core.md) - Contains methods and objects for working with GeoJSON. This also contains common methods used by other modules.\n- [WKT Parser](docs/wkt-parser.md) - Parse Well Known Text into GeoJSON and vice versa.\n- [ArcGIS Geometry Parser](docs/arcgis-parser.md) - Parse the [ArcGIS Geometry Format](http://resources.arcgis.com/en/help/arcgis-rest-api/#/Geometry_Objects/02r3000000n1000000/) into GeoJSON and vice versa.\n- [GeoStore](docs/glossary.md) - A framework for persisting and querying GeoJSON features with pluggable indexes and persistent stores.\n\n```js\nvar polygon = new Terraformer.Primitive({\n  type: \"Polygon\",\n  coordinates: [\n    [\n      [-122.665894, 45.5229015],\n      [-122.669263, 45.5229165],\n      [-122.671151, 45.5184062],\n      [-122.673254, 45.5140008],\n      [-122.668426, 45.5127378],\n      [-122.667654, 45.5169478],\n      [-122.665894, 45.5229015],\n    ],\n  ],\n});\n\nvar point = new Terraformer.Primitive({\n  type: \"Point\",\n  coordinates: [-122.669477, 45.51776],\n});\n```\n\nNow that you have a point and a polygon primitive you can use the primitive helper methods.\n\n```js\n// add a new vertex to our polygon\npolygon.insertVertex([-122.670851, 45.513189], 2);\n\n// figure out if our point is within our polygon\npoint.within(polygon); // returns true\n```\n\nYou can also have Terraformer perform many geometric operations like convex hulls and bounding boxes.\n\n```js\nvar convexHull = polygon.convexHull();\n\npoint.within(convexHull); // returns true\n\nvar boundingBox = polygon.bbox(); // returns the geojson bounding box for this object.\n```\n\n## Contributing\n\nEsri welcomes contributions from anyone and everyone. Please see our [guidelines for contributing](https://github.com/esri/contributing).\n\n## Licensing\n\nA copy of the license is available in the repository's [LICENSE](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEsri%2Fterraformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEsri%2Fterraformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEsri%2Fterraformer/lists"}