コード例 #1
0
ファイル: test_describe.py プロジェクト: SiggyF/pywps-4
 def test_bbox_output(self):
     bbox = BoundingBoxOutput("bbox", "BBox foo", crss=["EPSG:4326"])
     doc = bbox.describe_xml()
     [outpt] = xpath_ns(doc, "/Output")
     [default_crs] = xpath_ns(doc, "./BoundingBoxOutput/Default/CRS")
     supported = xpath_ns(doc, "./BoundingBoxOutput/Supported/CRS")
     assert default_crs.text == "EPSG:4326"
     assert len(supported) == 1
コード例 #2
0
ファイル: test_describe.py プロジェクト: SiggyF/pywps-4
 def test_bbox_output(self):
     bbox = BoundingBoxOutput('bbox', 'BBox foo', crss=["EPSG:4326"])
     doc = bbox.describe_xml()
     [outpt] = xpath_ns(doc, '/Output')
     [default_crs] = xpath_ns(doc, './BoundingBoxOutput/Default/CRS')
     supported = xpath_ns(doc, './BoundingBoxOutput/Supported/CRS')
     assert default_crs.text == 'EPSG:4326'
     assert len(supported) == 1
コード例 #3
0
ファイル: test_describe.py プロジェクト: inowas/pywps
 def test_bbox_output(self):
     bbox = BoundingBoxOutput('bbox', 'BBox foo',
             crss=["EPSG:4326"])
     doc = bbox.describe_xml()
     [outpt] = xpath_ns(doc, '/Output')
     [default_crs] = xpath_ns(doc, './BoundingBoxOutput/Default/CRS')
     supported = xpath_ns(doc, './BoundingBoxOutput/Supported/CRS')
     assert default_crs.text == 'EPSG:4326'
     assert len(supported) == 1
コード例 #4
0
ファイル: test_describe.py プロジェクト: ldesousa/PyWPS
 def test_bbox_output(self):
     bbox = BoundingBoxOutput('bbox', 'BBox foo', keywords=['kw1', 'kw2'],
                              crss=["EPSG:4326"])
     doc = bbox.describe_xml()
     [outpt] = xpath_ns(doc, '/Output')
     [default_crs] = xpath_ns(doc, './BoundingBoxOutput/Default/CRS')
     supported = xpath_ns(doc, './BoundingBoxOutput/Supported/CRS')
     assert default_crs.text == 'EPSG:4326'
     assert len(supported) == 1
     [keywords] = xpath_ns(doc, '/Output/ows:Keywords')
     kws = xpath_ns(keywords, './ows:Keyword')
     assert keywords is not None
     assert len(kws) == 2
コード例 #5
0
 def test_bbox_output(self):
     bbox = BoundingBoxOutput('bbox', 'BBox foo', keywords=['kw1', 'kw2'],
                              crss=["EPSG:4326"])
     doc = bbox.describe_xml()
     [outpt] = xpath_ns(doc, '/Output')
     [default_crs] = xpath_ns(doc, './BoundingBoxOutput/Default/CRS')
     supported = xpath_ns(doc, './BoundingBoxOutput/Supported/CRS')
     assert default_crs.text == 'EPSG:4326'
     assert len(supported) == 1
     [keywords] = xpath_ns(doc, '/Output/ows:Keywords')
     kws = xpath_ns(keywords, './ows:Keyword')
     assert keywords is not None
     assert len(kws) == 2