def testReadGML(self):
    xml = u'<gsf:feature fid="fid" xmlns:gml="http://www.opengis.net/gml" xmlns:gsf="http://geoscript.org/feature"><gsf:geom><gml:Point><gml:coord><gml:X>-125.0</gml:X><gml:Y>50.0</gml:Y></gml:coord></gml:Point></gsf:geom><gsf:x>1</gsf:x><gsf:z>one</gsf:z><gsf:y>1.1</gsf:y></gsf:feature>'
    f = feature.readGML(xml)
    assert f
    assert (u'1' == f['x'])
    assert (u'1.1' == f['y'])
    assert (u'fid' == f.id)
    assert (((- 125.0) == f.geom.x) and (50.0 == f.geom.y))
    xml = '<gsf:feature gml:id="fid" xmlns:gml="http://www.opengis.net/gml" xmlns:gsf="http://geoscript.org/feature"><gsf:geom><gml:Point><gml:pos>-125.0 50.0</gml:pos></gml:Point></gsf:geom><gsf:x>1</gsf:x><gsf:z>one</gsf:z><gsf:y>1.1</gsf:y></gsf:feature>'
    f = feature.readGML(xml, ver=3)
    assert f
    assert (u'1' == f['x'])
    assert (u'1.1' == f['y'])
    assert (u'fid' == f.id)
    assert (((- 125.0) == f.geom.x) and (50.0 == f.geom.y))
    xml = '<gsf:feature gml:id="fid" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gsf="http://geoscript.org/feature"><gsf:geom><gml:Point><gml:pos>-125.0 50.0</gml:pos></gml:Point></gsf:geom><gsf:x>1</gsf:x><gsf:z>one</gsf:z><gsf:y>1.1</gsf:y></gsf:feature>'
    f = feature.readGML(xml, ver=3.2)
    assert f
    assert (u'1' == f['x'])
    assert (u'1.1' == f['y'])
    assert (u'fid' == f.id)
    assert (((- 125.0) == f.geom.x) and (50.0 == f.geom.y))
def testReadGML(self):
    xml = u'<gsf:feature fid="fid" xmlns:gml="http://www.opengis.net/gml" xmlns:gsf="http://geoscript.org/feature"><gsf:geom><gml:Point><gml:coord><gml:X>-125.0</gml:X><gml:Y>50.0</gml:Y></gml:coord></gml:Point></gsf:geom><gsf:x>1</gsf:x><gsf:z>one</gsf:z><gsf:y>1.1</gsf:y></gsf:feature>'
    f = feature.readGML(xml)
    assert f
    assert (u'1' == f['x'])
    assert (u'1.1' == f['y'])
    assert (u'fid' == f.id)
    assert (((- 125.0) == f.geom.x) and (50.0 == f.geom.y))
    xml = '<gsf:feature gml:id="fid" xmlns:gml="http://www.opengis.net/gml" xmlns:gsf="http://geoscript.org/feature"><gsf:geom><gml:Point><gml:pos>-125.0 50.0</gml:pos></gml:Point></gsf:geom><gsf:x>1</gsf:x><gsf:z>one</gsf:z><gsf:y>1.1</gsf:y></gsf:feature>'
    f = feature.readGML(xml, ver=3)
    assert f
    assert (u'1' == f['x'])
    assert (u'1.1' == f['y'])
    assert (u'fid' == f.id)
    assert (((- 125.0) == f.geom.x) and (50.0 == f.geom.y))
    xml = '<gsf:feature gml:id="fid" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gsf="http://geoscript.org/feature"><gsf:geom><gml:Point><gml:pos>-125.0 50.0</gml:pos></gml:Point></gsf:geom><gsf:x>1</gsf:x><gsf:z>one</gsf:z><gsf:y>1.1</gsf:y></gsf:feature>'
    f = feature.readGML(xml, ver=3.2)
    assert f
    assert (u'1' == f['x'])
    assert (u'1.1' == f['y'])
    assert (u'fid' == f.id)
    assert (((- 125.0) == f.geom.x) and (50.0 == f.geom.y))