示例#1
0
 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
 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
 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
 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