def test_point_write_cartesian(self): p = Point((100.0, 0.0), crs=Cartesian) s = p.as_geojson(urn="urn:ogc:def:crs:EPSG::5806", force_wgs84=False) ans = """{"properties": {},"bbox": [100.0, 0.0, 100.0, 0.0], "geometry": {"coordinates": [100.0, 0.0], "type": "Point"}, "type": "Feature", "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::5806"}, "type": "name"} }""" self.verifyJSON(s, ans) return
def test_point_write_cartesian(self): p = Point((100.0, 0.0), crs=Cartesian) s = p.as_geojson(urn="urn:ogc:def:crs:EPSG::5806", force_wgs84=False) ans = """{"properties": {},"bbox": [100.0, 0.0, 100.0, 0.0], "geometry": {"coordinates": [100.0, 0.0], "type": "Point"}, "type": "Feature", "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::5806"}, "type": "name"} }""" self.verifyJSON(s, ans) return
def test_point_write(self): p = Point((100.0, 0.0), crs=LonLatWGS84) s = p.as_geojson(urn="urn:ogc:def:crs:EPSG::5806") ans = """{"properties": {}, "bbox": [100.0, 0.0, 100.0, 0.0], "geometry": {"coordinates": [100.0, 0.0], "type": "Point"}, "type": "Feature", "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::5806"}, "type": "name"}}""" self.verifyJSON(s, ans) return
def test_point_write(self): p = Point((100.0, 0.0), crs=LonLatWGS84) s = p.as_geojson(urn="urn:ogc:def:crs:EPSG::5806") ans = """{"properties": {}, "geometry": {"coordinates": [100.0, 0.0], "crs": {"properties": {"name": "urn:ogc:def:crs:EPSG::5806"}, "type": "name"}, "type": "Point"}, "type": "Feature"}""" self.verifyJson(s, ans) return