Exercises

Components and Services

Hint, if bash-completion is installed, try <TAB><TAB> to get completions.

  1. start/stop services
    $ sudo service apache2
    $ sudo service apache2 reload
    $ sudo service tomcat7
    $ sudo service postgresql
    
  2. basic psql interactions
    $ sudo su - postgres
    $ psql
    => help                 # get help
    => \?                   # psql specific commands
    => \l                   # list databases
    => \c geonode           # switch database
    => \ds                  # list tables
    => \dS layers_layer     # describe table
    

OGC Standards

WMS

  1. Use the layer preview functionality in GeoServer to bring up a web map.
  2. Copy a the URL for the image in the map.
  3. Alter URL parameters for the request.
  4. Use curl to get the capabilities document
$ curl 'http://localhost/geoserver/wms?request=getcapabilities'

More: http://docs.geoserver.org/stable/en/user/services/wms/index.html

WFS

  1. Describe a feature type using curl (replace ws:name with your layer)
$ curl 'http://localhost/geoserver/wfs?request=describefeaturetype&name=ws:name

More: http://docs.geoserver.org/stable/en/user/services/wfs/reference.html