GithubHelp home page GithubHelp logo

andreasscherbaum / pg_arcgis Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 160 KB

Reach out to ArcGIS web service from PostgreSQL or Greenplum

License: BSD 2-Clause "Simplified" License

Makefile 2.16% PLpgSQL 97.84%
postgresql greenplum arcgis geocoordinates lookup reversegeocode resolve-geocoordinates greenplum-database sql

pg_arcgis's Introduction

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('<address');

Example: SELECT arcgis.find('380 New York Street Redlands CA 92373'); Example: SELECT * FROM arcgis.find('380 New York Street Redlands CA 92373');

  • resolve address to geocoordinates, return address as one string

SELECT arcgis.find_return_point('

');

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');

pg_arcgis's People

Contributors

andreasscherbaum avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.