Coder Social home page Coder Social logo

ogc-api's Introduction

OGC API with Node.js, Express, and PostgreSQL

Generic implementation of OGC API with Node.js, Express and PostgreSQL

Step #1

Run cp env.sample .env and adapt the content of the .env file to your environment.

It must at least have the following environment variables:

DB_NAME='<db_name>'
DB_HOST='<host_name>'
DB_PORT=<port_number>
DB_USER='<user_name>'
DB_PASSWORD='<user_password>'
APP_HOST_PORT=<application_port_on_the_host>

Step #2

Create a config.yml file with the informations you want to display for each collection. You can take example on config.example.yml.

Step #3

Install the dependencies running the following command:

npm ci

Step #4

Start the server running the following command:

node index.js

Note: For development purposes, you can use nodemon to automatically restart the server when a file is changed. To do so, run the following command:

nodemon index.js

Step 5

If you want to have geopose information, add the entries is_azimuth (in case you have an azimuth instead of a yaw, the boolean must be true. In this case, we convert your azimuth to yaw), yaw_field, roll_field and pitch_field to your configuration file, as in the following example:

    providers:
      - type: feature
        name: PostgreSQL
        data:
          schema: public
          id_field: id
          table: images
          geom_field: location
          is_azimuth: true
          yaw_field: azimuth
          roll_field: roll
          pitch_field: tilt

ogc-api's People

Contributors

nicolas-heigvd avatar gdozot2 avatar maxcollombin avatar slecorne 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.