Point Data Example

From Earth Science Information Partners (ESIP)
Revision as of 15:07, September 3, 2010 by Hoijarvi (talk | contribs)

< Back to Glossary | Edit with Form

Point_Data_Example Description: This is an example how to create a Station Point WCS Service. It shows how to name your tables/views and how to set up the point configuration files.

Glossary Domain: {{{Glossary Domain}}}"{{{Glossary Domain}}}" is not in the list (WCS, HTAP, AQInfrastructure) of allowed values for the "Glossary Domain" property.

Related Links

Links to this page
[[Links::Data Configuration for Points [Configuration for Points]]]

Contributors

No Contributors

History

No History Available

Term Details


All of the configuration is done using python dictionaries and lists. The syntax is simple, This is a list:

   ['loc_code', 'lat', 'lon']

and this is a dictionary:

   {'key1':'value1', 'key2': 'value2' }

The test provider point is an example how to configure this service to use a SQL database to serve point data.

The data for the demonstration is stored for into sqlite, which is distributed with python by default. The project has following files:

  • pntdata.py: This script creates the test database and fills it with dummy data.
  • pntdata.db: The sqlite database file created by pntdata.py
  • point_config.py:
    • Declares the location table in the SQL database.
    • Mapping the coverages and fields to SQL tables.
  • point_WCS.py is the custom WCS handler
  • point_WFS.py is the custom WFS handler that delivers the location table.