NodeJS

Access

A web application, PostGIS Preview, employing NodeJS is enabled upon installation.

The application is an Open Source application created by:

https://github.com/NYCPlanning/labs-postgis-preview

It can be access via the NodeJS tab on the home page:

../_images/nodejs-tab.png

It can also be access directly via url at:

http://domain.com:4000

Usage

Once accessed using above, the app will appear as shown below:

../_images/nodejs-app-gis.png

Enter a query and click submit. For example:

select * from states_states;

The layer will now appear as shown below:

../_images/nodejs-app.png

To view the underlying data, click the data tab as shown below.

../_images/nodejs-app2.png

Structure

The app is located at:

/opt/pg_preview