{"id":14066361,"url":"https://github.com/Cidree/rpostgis","last_synced_at":"2025-07-29T23:30:57.858Z","repository":{"id":94863875,"uuid":"48241427","full_name":"Cidree/rpostgis","owner":"Cidree","description":"rpostgis: R Interface to a 'PostGIS' Database","archived":false,"fork":false,"pushed_at":"2024-12-08T16:00:57.000Z","size":27300,"stargazers_count":81,"open_issues_count":3,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-14T16:30:26.009Z","etag":null,"topics":["postgis","postgresql-database","rstats-package"],"latest_commit_sha":null,"homepage":"http://cidree.github.io/rpostgis/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cidree.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-18T15:10:29.000Z","updated_at":"2025-04-21T00:53:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"9fa43dc2-4393-4a60-8590-3628f1e08771","html_url":"https://github.com/Cidree/rpostgis","commit_stats":null,"previous_names":["cidree/rpostgis","mablab/rpostgis"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/Cidree/rpostgis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cidree%2Frpostgis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cidree%2Frpostgis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cidree%2Frpostgis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cidree%2Frpostgis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cidree","download_url":"https://codeload.github.com/Cidree/rpostgis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cidree%2Frpostgis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267779960,"owners_count":24143199,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["postgis","postgresql-database","rstats-package"],"created_at":"2024-08-13T07:05:03.752Z","updated_at":"2025-07-29T23:30:57.850Z","avatar_url":"https://github.com/Cidree.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n## rpostgis \u003ca href=\"https://CRAN.R-project.org/package=rpostgis\"\u003e\u003cimg src=\"man/figures/logo.png\" align=\"right\" height=\"138\" alt=\"rpostgis website\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![CRAN\nstatus](https://www.r-pkg.org/badges/version/rpostgis)](https://CRAN.R-project.org/package=rpostgis)\n[![Project Status: Active – The project has reached a stable, usable\nstate and is being actively\ndeveloped.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![Total\nDownloads](https://cranlogs.r-pkg.org/badges/grand-total/rpostgis?color=blue)](https://CRAN.R-project.org/package=rpostgis)\n[![Last Month\nDownloads](https://cranlogs.r-pkg.org/badges/last-month/rpostgis?color=green)](https://CRAN.R-project.org/package=rpostgis)\n\u003c!-- badges: end --\u003e\n\nThe `rpostgis` package provides an interface between R and\n[`PostGIS`](https://postgis.net/)-enabled\n[`PostgreSQL`](https://www.postgresql.org/) databases to transparently\ntransfer spatial data. Both vector (points, lines, polygons) and raster\ndata are supported in read and write modes. Also provides convenience\nfunctions to execute common procedures in `PostgreSQL`/`PostGIS`.\n\n## Installation of the released versions\n\nYou can install the latest released version from CRAN:\n\n``` r\npak::pak(\"rpostgis\")\n```\n\n## Installation of the development versions\n\nA stable version of the package is always available on the project’s\n[GitHub page](https://github.com/Cidree/rpostgis), and may be ahead of\nthe CRAN version. To install it, use the following command:\n\n``` r\npak::pak(\"Cidree/rpostgis\")\n```\n\nFor the latest (possibly unstable) development version, use:\n\n``` r\nremotes::install_github(\"Cidree/rpostgis\", ref = \"dev\")\n```\n\n## Getting started\n\n`rpostgis` relies on a working connection provided by the `RPostgreSQL`\npackage to a PostgreSQL database, e.g.:\n\n``` r\nconn \u003c- RPostgreSQL::dbConnect(\n  drv      = \"PostgreSQL\", \n  host     = \"localhost\",\n  dbname   = \"\u003cDB_NAME\u003e\", \n  user     = \"\u003cUSER\u003e\", \n  password = \"\u003cPASSWORD\u003e\"\n)\n```\n\n\u003e Note: as of `rpostgis 1.4.3` the `RPostgres::Postgres()` driver is\n\u003e also allowed for connection objects; however, this should be\n\u003e considered experimental and is not recommended for most use cases.\n\nOnce the connection is established, the first step is to check if the\ndatabase has `PostGIS` already installed (and install it if it’s not the\ncase):\n\n``` r\npgPostGIS(conn)\n```\n\nIf the function returns `TRUE`, the database is ready and functional.\nYou can check the geometries and rasters present in the database with:\n\n``` r\npgListGeom(conn, geog = TRUE)\npgListRast(conn)\n```\n\nTo terminate the session, close and clear the connection with:\n\n``` r\nRPostgreSQL::dbDisconnect(conn)\n```\n\n## Documentation\n\nFull documentation with the complete list of functions of the package\ncan be found on `rpostgis`\n[homepage](http://cidree.github.io/rpostgis/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCidree%2Frpostgis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCidree%2Frpostgis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCidree%2Frpostgis/lists"}