Ejemplo n.º 1
0
    def test_preserve_internal_whitespace(self):
        """
        Test that we extract compact projection data but preserve
        any whitespace characters inside the projection data content.
        """

        expanded = GEOGCS_PROJECTION_STRING_EXPANDED
        compact = get_projection_string_from_output(expanded)
        self.assertEqual(compact, GEOGCS_PROJECTION_STRING)
Ejemplo n.º 2
0
    def test_preserve_internal_whitespace(self):
        """
        Test that we extract compact projection data but preserve
        any whitespace characters inside the projection data content.
        """

        expanded = GEOGCS_PROJECTION_STRING_EXPANDED
        compact = get_projection_string_from_output(expanded)
        self.assertEqual(compact, GEOGCS_PROJECTION_STRING)
Ejemplo n.º 3
0
    def test_get_projection_string_from_output(self):
        """
        Test that we can extract the projection-related data from
        the output of ogrinfo.
        """

        output = PROJCS_OGRINFO_OUTPUT
        projection_string = get_projection_string_from_output(output)
        expected_output = PROJCS_PROJECTION_STRING
        self.assertEqual(projection_string, expected_output)
Ejemplo n.º 4
0
    def test_get_projection_string_from_output(self):
        """
        Test that we can extract the projection-related data from
        the output of ogrinfo.
        """

        output = PROJCS_OGRINFO_OUTPUT
        projection_string = get_projection_string_from_output(output)
        expected_output = PROJCS_PROJECTION_STRING
        self.assertEqual(projection_string, expected_output)