Ignore:
Timestamp:
12/03/08 12:32:22 (13 years ago)
Author:
mkochan
Message:

Changed tests in "csml2kml" to use the egg properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DPPP/kml/csml2kml/python/csml2kml/csml2kml/tests/testStation.py

    r3581 r3593  
    1 '''A test for classes contained in the Station.py module.''' 
     1'''A test/demo for classes contained in the Station.py module.''' 
    22 
    3 from Station import NPStation, WFSStationCollection 
    4 from utils import wget 
     3from csml2kml.Station import NPStation, WFSStationCollection 
     4from csml2kml.utils import wget 
    55 
    6 # Get XML response from a GeoServer via HTTP 
    7 geoServerUrl = 'http://130.246.76.98:8084/geoserver/wfs?request=getfeature&service=wfs&version=1.1.0&typename=np:Station&filter=%3Cogc:Filter%20xmlns:ogc=%22http://ogc.org%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3Enp:location%3C/ogc:PropertyName%3E%3Cgml:Box%20srsName=%22http://www.opengis.net/gml/srs/epsg.xml%22%3E%3Cgml:coordinates%3E-75,40%20-68,45%3C/gml:coordinates%3E%3C/gml:Box%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E' 
     6# Get XML response from a GeoServer via HTTP (should return a station named FAIR ISLE) 
     7geoServerUrl = 'http://130.246.76.98:8084/geoserver/wfs?request=getFeature&service=wfs&version=1.1.0&typename=np:Station&filter=%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3EstationName%20%3C/ogc:PropertyName%3E%3Cogc:Literal%3EFAIR%20ISLE%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E' 
    88geoServerResponse = wget(geoServerUrl) 
    99 
     
    1818print str(len(npStations)) + ' stations.' 
    1919for npStation in npStations: 
    20     print npStation 
     20    print str(npStation) 
Note: See TracChangeset for help on using the changeset viewer.