{"id":17218487,"url":"https://github.com/perliedman/geojson2obj","last_synced_at":"2025-04-13T23:37:09.256Z","repository":{"id":49653243,"uuid":"43248963","full_name":"perliedman/geojson2obj","owner":"perliedman","description":"Convert GeoJSON into Wavefront OBJ format","archived":false,"fork":false,"pushed_at":"2021-06-11T11:42:13.000Z","size":25,"stargazers_count":19,"open_issues_count":9,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:46:22.350Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perliedman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-27T14:10:17.000Z","updated_at":"2024-06-21T09:44:12.000Z","dependencies_parsed_at":"2022-09-17T03:12:09.235Z","dependency_job_id":null,"html_url":"https://github.com/perliedman/geojson2obj","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fgeojson2obj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fgeojson2obj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fgeojson2obj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perliedman%2Fgeojson2obj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perliedman","download_url":"https://codeload.github.com/perliedman/geojson2obj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799047,"owners_count":21163396,"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-10-15T03:46:57.200Z","updated_at":"2025-04-13T23:37:09.222Z","avatar_url":"https://github.com/perliedman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"GeoJSON to OBJ\n==============\n\nA converter from [GeoJSON](http://geojson.org) to \n[Wavefront OBJ](https://en.wikipedia.org/wiki/Wavefront_.obj_file) format.\n\n## Unmaintained\n\nThis project has been archived and is not maintained, since it's been a long time since I had reason to work on it.\n\n![hildedal-render](https://cloud.githubusercontent.com/assets/1246614/10125338/8c915d0e-6570-11e5-84da-4ac7ea0963a6.png)\n\n## Trying it out\n\nThere's a small command line example in the `examples` directory, which you can use to try out the library.\n\nSample command line:\n\n```\ncd examples\n./cli.js norway-coastline.geo.json\n```\n\nIt should write an OBJ file to your stdout.\n\n## API\n\n### toObj(geojson, stream, callback, options)\n\nConverts the `geojson` to an OBJ, that is written to the `stream`.\nWhen done, the callback is called; `callback` is a normal Node.js callback\naccepting an error as the first argument.\n\nNote that the `geojson` must be a `Feature` or `FeatureCollection`.\n\nAvailable options:\n\n* `featureBase`: function `f(feature, callback)` that returns the height of\n  a feature's base; by default, a function that always returns 0.\n* `featureHeight`: function `f(feature, callback)` that returns the height of\n  a feature; by default, a function that returns 10 for polygons and\n  0.3 for linestrings.\n* `lineWidth`: for line geometries, returns the width of the generated\n  geometry; defaults to 2.\n* `featureName`: a function `f(feature, callback)` that returns the OBJ group\n  name used for a feature; by default a function that numbers the\n  features\n* `featureMaterial`: a function `f(feature, callback)` that returns the name\n  of the material for a feature; if undefined, the material is\n  not changed for this feature; see `mtllib` option below\n* `coordToPoint` a function `f(coordinate)` that returns the\n  OBJ vertex point (X and Z) for a GeoJSON coordinate, needed to\n  convert from GeoJSON's WGS84 coordinates to a cartesian coordinate;\n  see the `findLocalProj` method below\n* `mtllib` a string or array of paths that will be added as material\n  libraries to the resulting OBJ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperliedman%2Fgeojson2obj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperliedman%2Fgeojson2obj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperliedman%2Fgeojson2obj/lists"}