Difference between revisions of "Point Data Example"

From Earth Science Information Partners (ESIP)
(New page: {{WCS Glossary |TermDesc=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 dictiona...)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{WCS Glossary
 
{{WCS Glossary
|TermDesc=All of the configuration is done using python dictionaries and lists. The syntax is simple, This is a list:
+
|Glossary Domain=WCS
 
+
|TermDesc=This is an example how to create a [[SQL_Database_for_Points|Station Point]] WCS Service. It shows how to name your tables/views and how to set up the point configuration files.
    ['loc_code', 'lat', 'lon']
+
|Links=[[Data_Configuration_for_Points|Data Configuration for Points]] [[http://wiki.esipfed.org/index.php/Location Configuration for Points]] [[Python Dictionaries]]
 
+
}}
and this is a dictionary:
+
All of the configuration is done using [[Python Dictionaries]].
 
 
    {'key1':'value1', 'key2': 'value2' }
 
  
 
The test provider [http://128.252.202.19:8080/point point] is an example how to configure this service to use a SQL database to serve point data.  
 
The test provider [http://128.252.202.19:8080/point 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:
+
The data for the demonstration is stored for into [http://sqlite.org/ sqlite], which is distributed with python by default. The project has following files:
  
 
* [http://128.252.202.19:8080/static/point/pntdata.py pntdata.py]: This script creates the test database and fills it with dummy data.
 
* [http://128.252.202.19:8080/static/point/pntdata.py pntdata.py]: This script creates the test database and fills it with dummy data.
Line 19: Line 17:
 
* [http://128.252.202.19:8080/static/point/point_WCS.py point_WCS.py] is the custom WCS handler
 
* [http://128.252.202.19:8080/static/point/point_WCS.py point_WCS.py] is the custom WCS handler
 
* [http://128.252.202.19:8080/static/point/point_WFS.py point_WFS.py] is the custom WFS handler that delivers the location table.
 
* [http://128.252.202.19:8080/static/point/point_WFS.py point_WFS.py] is the custom WFS handler that delivers the location table.
 
}}
 

Latest revision as of 13:34, September 6, 2010

< Back to Glossary | Edit with Form

Point_Data_Example Description: [[TermDesc::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: WCS

Related Links

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

Contributors

No Contributors

History

No History Available

Term Details

All of the configuration is done using Python Dictionaries.

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.