Changes between Version 5 and Version 6 of WmsImportTools


Ignore:
Timestamp:
Jul 3, 2012 5:03:42 PM (5 years ago)
Author:
pcampalani
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WmsImportTools

    v5 v6  
    22= WMS import utilities =
    33== Description ==
    4 Some first ''beta'' utilities to __publish WMS layers__ with Petascope are available now [commit `ebac8ac` - '''Petascope WMS import tools'''].
     4Some first ''beta'' utilities to __publish WMS layers__ with Petascope are available now [current documentation refers to commit `d249b9a` ''"WMS exception messages; additions and minor fixes on WMS utilities and servlet."''].
    55
    66These can be found in <rasdaman>/applications/rasgeo/wms-import/utilities/:
    77{{{
    88#!sh
    9 $ ./init_wms.sh <layerName> <collName> <crs> [<pyramidLevels>]
     9$ init_wms.sh <layerName> <collName> <crs> [-l <pyramidLevels>] [-h <host>] [-p <port>]
    1010}}}
    1111    To set up the metadata in the database and initialize the
    12     (empty) pyramid collections.
     12    (empty) pyramid collections. 
    1313
    1414{{{
     
    2121{{{
    2222#!sh
    23 $ ./drop_wms.sh <layerName> [--keep-pyramids]
     23$ ./drop_wms.sh <layerName> [--keep-pyramids]  [--del-service]
    2424}}}
    2525    To unpublish the WMS layer and, if not explicitly specified,
    26     drop the collections of the pyramid from rasdaman.
     26    drop the collections of the pyramid from rasdaman. With `--del-service`
     27    the WMS metadata get totally reset and the service is removed (use `inis_wms.sh` to add a new one).
     28
     29Whenever the '''service''' is deleted via `./drop_wms.sh` then re-created via `init_wms.sh`, or either when a layer is deleted then re-filled, it is possible to reload the service without restarting Petascope by sending the following HTTP request:
     30
     31{{{
     32http://<host>:<port>]/petascope/wms?request=ReloadCapabilities&service=wms&version=1.0.0
     33}}}
    2734
    2835== Toy Example ==
     
    4350
    4451  # Publish the WMS layer
     52  # NB specifying service host and port is highly suggested for compatibility with client Software.
     53  # PS After a first WMS layer initialization, these args are not considered and the previously created WMS service is used.
    4554  $ cd ../utilities/
    4655  $ ./init_wms.sh    # see usage
    47   $ ./init_wms.sh australia_wms mean_summer_airtemp EPSG:4326 '2:4:8:16'
     56  $ ./init_wms.sh australia_wms mean_summer_airtemp EPSG:4326 -l '2:4:8:16' -h <hostname> -p <port>
    4857  $ ./fill_pyramid.sh mean_summer_airtemp # in case of error, just retry
    4958}}}
     
    7584It is preferred to run `rasdaman` with N>1 servers running, performances can change considerably to serve the N tile-requests of a WMS client.
    7685
     86Eventually, to unpublish the WMS layer and drop the pyramid:
    7787{{{
    78   # Eventually, to unpublish the WMS layer and drop the pyramid:
     88#!sh
    7989  $ ./drop_wms.sh australia_wms
    8090}}}
     91To remove the layer, drop the pyramids and clear all the WMS metadata in the database:
     92{{{
     93#!sh
     94  $ ./drop_wms.sh australia_wms --del-service
     95}}}