コード例 #1
0
ファイル: tests.py プロジェクト: respec/UrbanFootprint
    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)
コード例 #2
0
ファイル: tests.py プロジェクト: aecomka/urbanfootprint-1
    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)
コード例 #3
0
ファイル: tests.py プロジェクト: respec/UrbanFootprint
    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)
コード例 #4
0
ファイル: tests.py プロジェクト: aecomka/urbanfootprint-1
    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)