Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreasscherbaum/pg_arcgis
Reach out to ArcGIS web service from PostgreSQL or Greenplum
https://github.com/andreasscherbaum/pg_arcgis
arcgis geocoordinates greenplum greenplum-database lookup postgresql resolve-geocoordinates reversegeocode sql
Last synced: about 1 month ago
JSON representation
Reach out to ArcGIS web service from PostgreSQL or Greenplum
- Host: GitHub
- URL: https://github.com/andreasscherbaum/pg_arcgis
- Owner: andreasscherbaum
- License: bsd-2-clause
- Created: 2015-01-15T00:29:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T22:54:51.000Z (about 9 years ago)
- Last Synced: 2023-04-03T18:27:35.595Z (over 1 year ago)
- Topics: arcgis, geocoordinates, greenplum, greenplum-database, lookup, postgresql, resolve-geocoordinates, reversegeocode, sql
- Language: PLpgSQL
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PostgreSQL/Greenplum & ArcGIS
#######################################################################
Abstract:This plugin provides functionality to reach out from a PostgreSQL or
Pivotal Greenplum Database to an ArcGIS system, to request and enrich data.#######################################################################
Installation:make install
#######################################################################
Deinstallation:make remove
#######################################################################
Requirements:You need: ArcGIS "Client ID" & "Client Secret". You can create this by
logging in into the ArcGIS website with your account and create an application.
Basic lookups and reverse lookups are free and don't require account details.#######################################################################
Configuration:- verify configuration
SELECT arcgis.check_configuration();
- set ArcGIS client ID
SELECT arcgis.set_client_id('');
- set ArcGIS client secret
SELECT arcgis.set_client_secret('');
- set ArcGIS authentication URL
SELECT arcgis.set_auth_url('');
- set ArcGIS geocode URL
SELECT arcgis.set_geocode_url('');
- remove existing configuration
SELECT arcgis.remove_configuration();
#######################################################################
Usage:- resolve address to geocoordinates
SELECT arcgis.find('
');Example: SELECT arcgis.find_return_point('380 New York Street Redlands CA 92373');
- resolve address to geocoordinates, return x (longitude) and y (latitude) as array
SELECT arcgis.find_xy('
');Example: SELECT arcgis.find_xy('380 New York Street Redlands CA 92373');
- resolve address to geocoordinates, return y and x as array, suitable for services like Google Maps
SELECT arcgis.find_xy('
');Example: SELECT arcgis.find_xy('380 New York Street Redlands CA 92373');
- resolve geocoordinates to closest address
SELECT arcgis.reverseGeocode('', '');
Example: SELECT arcgis.reverseGeocode('-122.148659529', '37.3939849106');
Example: SELECT * FROM arcgis.reverseGeocode('-122.148659529', '37.3939849106');- resolve geocoordinates to closest address, return address as string
SELECT arcgis.reverseGeocode_string('', '');
Example: SELECT arcgis.reverseGeocode_string('-122.148659529', '37.3939849106');