{"id":13556840,"url":"https://github.com/springmeyer/couchdb-mapnik","last_synced_at":"2026-01-30T19:31:30.005Z","repository":{"id":1527743,"uuid":"1803093","full_name":"springmeyer/couchdb-mapnik","owner":"springmeyer","description":"sample setup for rendering geojson polygons out of couchdb","archived":false,"fork":false,"pushed_at":"2011-05-26T07:23:12.000Z","size":436,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-07T05:38:36.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"substack/node-browserify","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/springmeyer.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":"2011-05-26T06:45:32.000Z","updated_at":"2014-01-14T05:07:08.000Z","dependencies_parsed_at":"2022-07-08T05:02:34.137Z","dependency_job_id":null,"html_url":"https://github.com/springmeyer/couchdb-mapnik","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/springmeyer/couchdb-mapnik","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fcouchdb-mapnik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fcouchdb-mapnik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fcouchdb-mapnik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fcouchdb-mapnik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/springmeyer","download_url":"https://codeload.github.com/springmeyer/couchdb-mapnik/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fcouchdb-mapnik/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28918209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T19:10:10.838Z","status":"ssl_error","status_checked_at":"2026-01-30T19:06:40.573Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08-01T12:04:02.915Z","updated_at":"2026-01-30T19:31:29.988Z","avatar_url":"https://github.com/springmeyer.png","language":null,"readme":"# CouchDB \u0026 Mapnik\n\n\n## Requirements\n\n * Couchdb - I tested with CouchDBI Version 1.0.2.0.\n \n * GDAL trunk (\u003e= 1.9.0) with couch support (http://www.gdal.org/ogr/drv_couchdb.html)\n\n * Mapnik trunk (\u003e= 2.0.0) with OGR plugin (http://trac.mapnik.org/wiki/OGR)\n \n * nik2img.py - optionally for easy rendering via command line (http://trac.mapnik.org/wiki/Nik2Img)\n\n\n## TODO\n\n * Track down the cause of this warning:\n\n```\nERROR 1: FetchNextRowsSpatialFilter() failed : not_found, missing handler: _spatial\n```\n\n * Add support for geocouch (which will likely remove the above warning)\n\n\n## Usage\n\nCreate a couch document for a given shapefile:\n\n    ogr2ogr -lco UPDATE_PERMISSIONS=ALL -f couchdb couchdb:http://127.0.0.1:5984 world_merc.shp\n\n\nThen query the document to make sure the geojson is in there:\n\n    ogrinfo couchdb:http://127.0.0.1:5984/ -so -al world_merc\n\nYou should get:\n\n```\n$ ogrinfo couchdb:http://127.0.0.1:5984/ -so -al world_merc\nINFO: Open of `couchdb:http://127.0.0.1:5984/'\n      using driver `CouchDB' successful.\n\nLayer name: world_merc\nGeometry: Polygon\nFeature Count: 245\nExtent: (-20037508.342789, -8283343.693883) - (20037508.342789, 18365151.363070)\nLayer SRS WKT:\nPROJCS[\"Google Maps Global Mercator\",\n    GEOGCS[\"GCS_WGS_1984\",\n        DATUM[\"WGS_1984\",\n            SPHEROID[\"WGS_84\",6378137,298.257223563]],\n        PRIMEM[\"Greenwich\",0],\n        UNIT[\"Degree\",0.017453292519943295]],\n    PROJECTION[\"Mercator_2SP\"],\n    PARAMETER[\"standard_parallel_1\",0],\n    PARAMETER[\"latitude_of_origin\",0],\n    PARAMETER[\"central_meridian\",0],\n    PARAMETER[\"false_easting\",0],\n    PARAMETER[\"false_northing\",0],\n    UNIT[\"Meter\",1]]\n_id: String (0.0)\n_rev: String (0.0)\nFIPS: String (0.0)\nISO2: String (0.0)\nISO3: String (0.0)\nUN: Integer (0.0)\nNAME: String (0.0)\nAREA: Integer (0.0)\nPOP2005: Integer (0.0)\nREGION: Integer (0.0)\nSUBREGION: Integer (0.0)\nLON: Real (0.0)\nLAT: Real (0.0)\n```\n\nThen try rendering with nik2img:\n\n    # install first\n    sudo easy_install nik2img\n    \n    # then render\n    nik2img.py couchmap.xml world.png\n\n\n# Thanks\n\n[Even](http://even.rouault.free.fr/) is the humble but brilliant fellow who added couch support to OGR virtually overnight.","funding_links":[],"categories":["Others","others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmeyer%2Fcouchdb-mapnik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringmeyer%2Fcouchdb-mapnik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmeyer%2Fcouchdb-mapnik/lists"}