All Projects → mablab → rpostgis

mablab / rpostgis

Licence: other
rpostgis: R Interface to a 'PostGIS' Database

Programming Languages

r
7636 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to rpostgis

mytek
Django e-commerce web application with advanced features
Stars: ✭ 27 (-55%)
Mutual labels:  postgresql-database
kanban-board
Single-click full-stack application (Postgres, Spring Boot & Angular) using Docker Compose
Stars: ✭ 138 (+130%)
Mutual labels:  postgresql-database
tilenol
Scalable, multi-backend geo vector tile server
Stars: ✭ 16 (-73.33%)
Mutual labels:  postgis
django-vectortiles
Mapbox VectorTiles for django, with PostGIS or Python
Stars: ✭ 22 (-63.33%)
Mutual labels:  postgis
lopocs
Migrated to: https://gitlab.com/Oslandia/lopocs
Stars: ✭ 78 (+30%)
Mutual labels:  postgis
mergin-db-sync
A tool for two-way synchronization between Mergin and a PostGIS database
Stars: ✭ 29 (-51.67%)
Mutual labels:  postgis
osmot
Preprocessor for make public transit maps from Openstreetmap data
Stars: ✭ 14 (-76.67%)
Mutual labels:  postgis
coronabr
Pacote para fazer o download dos casos diários de coronavirus no Brasil desde diferentes fontes
Stars: ✭ 50 (-16.67%)
Mutual labels:  rstats-package
Pisces
Pisces is a time series database, desktop application, command line tool, and webapp. Pisces is designed to organize, graph, and analyze natural resource data that varies with time: gauge height, river flow, water temperature, etc.
Stars: ✭ 35 (-41.67%)
Mutual labels:  postgresql-database
ercole-agent
Proactive Software Asset Management. Agent component
Stars: ✭ 24 (-60%)
Mutual labels:  postgresql-database
mapserver-docker
Mapserver OGR GDAL PostGIS WMS WCS WFS with Lighttpd in Docker
Stars: ✭ 18 (-70%)
Mutual labels:  postgis
psycopgr
A Python wrapper of pgRouting for routing from nodes to nodes on real map.
Stars: ✭ 24 (-60%)
Mutual labels:  postgis
mock-data
Mock data in PostgreSQL/Greenplum databases
Stars: ✭ 115 (+91.67%)
Mutual labels:  postgresql-database
GeoNature
Application de saisie et de synthèse des observations faune et flore
Stars: ✭ 81 (+35%)
Mutual labels:  postgis
twkb
A small GO parser for the TWKB format
Stars: ✭ 17 (-71.67%)
Mutual labels:  postgis
DoReMIFaSol
Téléchargement des données sur le site de l'Insee
Stars: ✭ 25 (-58.33%)
Mutual labels:  rstats-package
Geotrek-admin
Paths management for National Parks and Tourism organizations
Stars: ✭ 103 (+71.67%)
Mutual labels:  postgis
GeoNature-atlas
Application WEB permettant de générer des fiches espèces publiques à partir d'observations faune/flore
Stars: ✭ 40 (-33.33%)
Mutual labels:  postgis
pagespeedParseR
pagespeedParseR is an R wrapper for Google Pagespeed Insights API, that also enables convenient parsing
Stars: ✭ 20 (-66.67%)
Mutual labels:  rstats-package
djprojman
A project management tool in django. Intents to be a simple quick tool for manaing projects, tasks and team, most suitable for small companies.
Stars: ✭ 40 (-33.33%)
Mutual labels:  postgresql-database

rpostgis

CRAN Status Project Status: Active - The project has reached a stable, usable state and is being actively developed.

The rpostgis package provides an interface between R and PostGIS-enabled PostgreSQL databases to transparently transfer spatial data. Both vector (points, lines, polygons) and raster data are supported in read and write modes. Also provides convenience functions to execute common procedures in PostgreSQL/PostGIS.

Installation of the released versions

You can install the latest released version from CRAN:

install.packages("rpostgis")

You can then use update.packages() to update to the latest CRAN version.

Installation of the development versions

A stable version of the package is always available on the project's GitHub page, and may be ahead of the CRAN version. To install it, use the remotes:

remotes::install_github("mablab/rpostgis")

For the latest (possibly unstable) development version, use:

remotes::install_github("mablab/rpostgis", ref = "dev")

Getting started

rpostgis relies on a working connection provided by the RPostgreSQL package to a PostgreSQL database, e.g.:

conn <- RPostgreSQL::dbConnect("PostgreSQL", host = "localhost",
    dbname = "<DB_NAME>", user = "<USER>", password = "<PASSWORD>")

Note: as of rpostgis 1.4.3 the RPostgres::Postgres() driver is also allowed for connection objects; however, this should be considered experimental and is not recommended for most use cases.

Once the connection is established, the first step is to check if the database has PostGIS already installed (and install it if it's not the case):

pgPostGIS(conn)

If the function returns TRUE, the database is ready and functional. You can check the geometries and rasters present in the database with:

pgListGeom(conn, geog = TRUE)
pgListRast(conn)

To terminate the session, close and clear the connection with:

RPostgreSQL::dbDisconnect(conn)

Documentation

Full documentation with the complete list of functions of the package can be found on rpostgis homepage.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].