rgeo 0.3.20 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/geos_c_impl/extconf.rb +0 -30
- data/ext/geos_c_impl/factory.c +0 -32
- data/ext/geos_c_impl/factory.h +0 -33
- data/ext/geos_c_impl/geometry.c +20 -33
- data/ext/geos_c_impl/geometry.h +0 -32
- data/ext/geos_c_impl/geometry_collection.c +0 -32
- data/ext/geos_c_impl/geometry_collection.h +0 -32
- data/ext/geos_c_impl/line_string.c +0 -32
- data/ext/geos_c_impl/line_string.h +0 -32
- data/ext/geos_c_impl/main.c +0 -32
- data/ext/geos_c_impl/point.c +0 -33
- data/ext/geos_c_impl/point.h +0 -32
- data/ext/geos_c_impl/polygon.c +0 -32
- data/ext/geos_c_impl/polygon.h +0 -32
- data/ext/geos_c_impl/preface.h +0 -32
- data/ext/proj4_c_impl/extconf.rb +0 -30
- data/ext/proj4_c_impl/main.c +0 -33
- data/lib/rgeo.rb +0 -36
- data/lib/rgeo/cartesian.rb +0 -30
- data/lib/rgeo/cartesian/analysis.rb +0 -30
- data/lib/rgeo/cartesian/bounding_box.rb +0 -30
- data/lib/rgeo/cartesian/calculations.rb +0 -30
- data/lib/rgeo/cartesian/factory.rb +0 -30
- data/lib/rgeo/cartesian/feature_classes.rb +0 -30
- data/lib/rgeo/cartesian/feature_methods.rb +0 -30
- data/lib/rgeo/cartesian/interface.rb +0 -30
- data/lib/rgeo/coord_sys.rb +0 -30
- data/lib/rgeo/coord_sys/cs/entities.rb +0 -30
- data/lib/rgeo/coord_sys/cs/factories.rb +0 -30
- data/lib/rgeo/coord_sys/cs/wkt_parser.rb +0 -30
- data/lib/rgeo/coord_sys/proj4.rb +1 -49
- data/lib/rgeo/coord_sys/srs_database/active_record_table.rb +0 -30
- data/lib/rgeo/coord_sys/srs_database/interface.rb +0 -30
- data/lib/rgeo/coord_sys/srs_database/proj4_data.rb +0 -30
- data/lib/rgeo/coord_sys/srs_database/sr_org.rb +0 -30
- data/lib/rgeo/coord_sys/srs_database/url_reader.rb +0 -30
- data/lib/rgeo/error.rb +0 -30
- data/lib/rgeo/feature.rb +0 -30
- data/lib/rgeo/feature/curve.rb +0 -30
- data/lib/rgeo/feature/factory.rb +0 -30
- data/lib/rgeo/feature/factory_generator.rb +0 -30
- data/lib/rgeo/feature/geometry.rb +1 -31
- data/lib/rgeo/feature/geometry_collection.rb +0 -30
- data/lib/rgeo/feature/line.rb +0 -30
- data/lib/rgeo/feature/line_string.rb +0 -30
- data/lib/rgeo/feature/linear_ring.rb +0 -30
- data/lib/rgeo/feature/mixins.rb +0 -30
- data/lib/rgeo/feature/multi_curve.rb +0 -30
- data/lib/rgeo/feature/multi_line_string.rb +0 -30
- data/lib/rgeo/feature/multi_point.rb +0 -30
- data/lib/rgeo/feature/multi_polygon.rb +0 -30
- data/lib/rgeo/feature/multi_surface.rb +0 -30
- data/lib/rgeo/feature/point.rb +0 -30
- data/lib/rgeo/feature/polygon.rb +0 -30
- data/lib/rgeo/feature/surface.rb +0 -30
- data/lib/rgeo/feature/types.rb +0 -30
- data/lib/rgeo/geographic.rb +0 -30
- data/lib/rgeo/geographic/factory.rb +0 -30
- data/lib/rgeo/geographic/interface.rb +2 -32
- data/lib/rgeo/geographic/proj4_projector.rb +0 -30
- data/lib/rgeo/geographic/projected_feature_classes.rb +0 -30
- data/lib/rgeo/geographic/projected_feature_methods.rb +7 -32
- data/lib/rgeo/geographic/projected_window.rb +5 -39
- data/lib/rgeo/geographic/simple_mercator_projector.rb +11 -41
- data/lib/rgeo/geographic/spherical_feature_classes.rb +0 -30
- data/lib/rgeo/geographic/spherical_feature_methods.rb +2 -32
- data/lib/rgeo/geographic/spherical_math.rb +0 -30
- data/lib/rgeo/geos.rb +0 -30
- data/lib/rgeo/geos/capi_factory.rb +8 -38
- data/lib/rgeo/geos/capi_feature_classes.rb +0 -29
- data/lib/rgeo/geos/ffi_factory.rb +0 -30
- data/lib/rgeo/geos/ffi_feature_classes.rb +0 -30
- data/lib/rgeo/geos/ffi_feature_methods.rb +0 -30
- data/lib/rgeo/geos/interface.rb +5 -49
- data/lib/rgeo/geos/utils.rb +0 -30
- data/lib/rgeo/geos/zm_factory.rb +0 -30
- data/lib/rgeo/geos/zm_feature_classes.rb +0 -30
- data/lib/rgeo/geos/zm_feature_methods.rb +0 -30
- data/lib/rgeo/impl_helper.rb +0 -30
- data/lib/rgeo/impl_helper/basic_geometry_collection_methods.rb +0 -30
- data/lib/rgeo/impl_helper/basic_geometry_methods.rb +0 -30
- data/lib/rgeo/impl_helper/basic_line_string_methods.rb +0 -30
- data/lib/rgeo/impl_helper/basic_point_methods.rb +0 -30
- data/lib/rgeo/impl_helper/basic_polygon_methods.rb +0 -30
- data/lib/rgeo/impl_helper/math.rb +0 -30
- data/lib/rgeo/impl_helper/utils.rb +0 -30
- data/lib/rgeo/version.rb +1 -50
- data/lib/rgeo/wkrep.rb +0 -30
- data/lib/rgeo/wkrep/wkb_generator.rb +0 -30
- data/lib/rgeo/wkrep/wkb_parser.rb +0 -30
- data/lib/rgeo/wkrep/wkt_generator.rb +0 -30
- data/lib/rgeo/wkrep/wkt_parser.rb +0 -30
- data/lib/rgeo/yaml.rb +0 -30
- data/test/common/factory_tests.rb +0 -30
- data/test/common/geometry_collection_tests.rb +0 -30
- data/test/common/line_string_tests.rb +0 -30
- data/test/common/multi_line_string_tests.rb +0 -30
- data/test/common/multi_point_tests.rb +0 -30
- data/test/common/multi_polygon_tests.rb +0 -30
- data/test/common/point_tests.rb +0 -30
- data/test/common/polygon_tests.rb +0 -30
- data/test/coord_sys/tc_active_record_table.rb +2 -32
- data/test/coord_sys/tc_ogc_cs.rb +0 -30
- data/test/coord_sys/tc_proj4.rb +1 -31
- data/test/coord_sys/tc_proj4_srs_data.rb +3 -33
- data/test/coord_sys/tc_sr_org.rb +2 -32
- data/test/coord_sys/tc_url_reader.rb +4 -34
- data/test/geos_capi/tc_factory.rb +0 -30
- data/test/geos_capi/tc_geometry_collection.rb +0 -30
- data/test/geos_capi/tc_line_string.rb +0 -30
- data/test/geos_capi/tc_misc.rb +37 -31
- data/test/geos_capi/tc_multi_line_string.rb +0 -30
- data/test/geos_capi/tc_multi_point.rb +0 -30
- data/test/geos_capi/tc_multi_polygon.rb +0 -30
- data/test/geos_capi/tc_parsing_unparsing.rb +0 -30
- data/test/geos_capi/tc_point.rb +0 -30
- data/test/geos_capi/tc_polygon.rb +12 -30
- data/test/geos_capi/tc_zmfactory.rb +0 -30
- data/test/geos_ffi/tc_factory.rb +0 -30
- data/test/geos_ffi/tc_geometry_collection.rb +0 -30
- data/test/geos_ffi/tc_line_string.rb +0 -30
- data/test/geos_ffi/tc_misc.rb +0 -30
- data/test/geos_ffi/tc_multi_line_string.rb +0 -30
- data/test/geos_ffi/tc_multi_point.rb +0 -30
- data/test/geos_ffi/tc_multi_polygon.rb +0 -30
- data/test/geos_ffi/tc_parsing_unparsing.rb +0 -30
- data/test/geos_ffi/tc_point.rb +0 -30
- data/test/geos_ffi/tc_polygon.rb +0 -30
- data/test/geos_ffi/tc_zmfactory.rb +0 -30
- data/test/projected_geographic/tc_factory.rb +0 -30
- data/test/projected_geographic/tc_geometry_collection.rb +0 -30
- data/test/projected_geographic/tc_line_string.rb +0 -30
- data/test/projected_geographic/tc_multi_line_string.rb +0 -30
- data/test/projected_geographic/tc_multi_point.rb +0 -30
- data/test/projected_geographic/tc_multi_polygon.rb +0 -30
- data/test/projected_geographic/tc_point.rb +0 -30
- data/test/projected_geographic/tc_polygon.rb +0 -30
- data/test/simple_cartesian/tc_calculations.rb +0 -30
- data/test/simple_cartesian/tc_factory.rb +0 -30
- data/test/simple_cartesian/tc_geometry_collection.rb +0 -30
- data/test/simple_cartesian/tc_line_string.rb +0 -30
- data/test/simple_cartesian/tc_multi_line_string.rb +0 -30
- data/test/simple_cartesian/tc_multi_point.rb +0 -30
- data/test/simple_cartesian/tc_multi_polygon.rb +0 -30
- data/test/simple_cartesian/tc_point.rb +0 -30
- data/test/simple_cartesian/tc_polygon.rb +0 -30
- data/test/simple_mercator/tc_factory.rb +0 -30
- data/test/simple_mercator/tc_geometry_collection.rb +0 -30
- data/test/simple_mercator/tc_line_string.rb +0 -30
- data/test/simple_mercator/tc_multi_line_string.rb +0 -30
- data/test/simple_mercator/tc_multi_point.rb +0 -30
- data/test/simple_mercator/tc_multi_polygon.rb +0 -30
- data/test/simple_mercator/tc_point.rb +0 -30
- data/test/simple_mercator/tc_polygon.rb +0 -30
- data/test/simple_mercator/tc_window.rb +8 -30
- data/test/spherical_geographic/tc_calculations.rb +0 -30
- data/test/spherical_geographic/tc_factory.rb +0 -30
- data/test/spherical_geographic/tc_geometry_collection.rb +0 -30
- data/test/spherical_geographic/tc_line_string.rb +0 -30
- data/test/spherical_geographic/tc_multi_line_string.rb +0 -30
- data/test/spherical_geographic/tc_multi_point.rb +0 -30
- data/test/spherical_geographic/tc_multi_polygon.rb +0 -30
- data/test/spherical_geographic/tc_point.rb +11 -30
- data/test/spherical_geographic/tc_polygon.rb +0 -30
- data/test/tc_cartesian_analysis.rb +0 -30
- data/test/tc_cartesian_bbox.rb +0 -30
- data/test/tc_mixins.rb +0 -30
- data/test/tc_oneoff.rb +0 -30
- data/test/tc_types.rb +0 -30
- data/test/wkrep/tc_wkb_generator.rb +0 -30
- data/test/wkrep/tc_wkb_parser.rb +0 -30
- data/test/wkrep/tc_wkt_generator.rb +0 -30
- data/test/wkrep/tc_wkt_parser.rb +0 -30
- metadata +94 -47
- data/History.rdoc +0 -351
- data/README.rdoc +0 -184
- data/Spatial_Programming_With_RGeo.rdoc +0 -451
- data/Version +0 -1
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for geometry collection implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for geometry collection implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for line string implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for multi line string implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for multi point implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for multi polygon implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
data/test/common/point_tests.rb
CHANGED
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for point implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Common tests for polygon implementations
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'rgeo'
|
38
8
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Tests for OGC CS classes
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'test/unit'
|
38
8
|
require 'rgeo'
|
@@ -80,8 +50,8 @@ module RGeo
|
|
80
50
|
end
|
81
51
|
|
82
52
|
|
83
|
-
def
|
84
|
-
entry_ = @@db.get(
|
53
|
+
def test_3857
|
54
|
+
entry_ = @@db.get(3857)
|
85
55
|
allowed_vals_ = [
|
86
56
|
'+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +units=m +k=1.0 +nadgrids=@null +no_defs', # Proj 4.7
|
87
57
|
'+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' # Proj 4.8
|
data/test/coord_sys/tc_ogc_cs.rb
CHANGED
@@ -3,36 +3,6 @@
|
|
3
3
|
# Tests for OGC CS classes
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'test/unit'
|
38
8
|
require 'rgeo'
|
data/test/coord_sys/tc_proj4.rb
CHANGED
@@ -3,36 +3,6 @@
|
|
3
3
|
# Tests for proj4 wrapper
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'test/unit'
|
38
8
|
require 'rgeo'
|
@@ -46,7 +16,7 @@ module RGeo
|
|
46
16
|
|
47
17
|
|
48
18
|
def test_proj4_version
|
49
|
-
assert_match(/^\d+\.\d+(\.\d+)?$/, ::RGeo::CoordSys::Proj4.
|
19
|
+
assert_match(/^\d+\.\d+(\.\d+)?$/, ::RGeo::CoordSys::Proj4.version)
|
50
20
|
end
|
51
21
|
|
52
22
|
|
@@ -3,36 +3,6 @@
|
|
3
3
|
# Tests for OGC CS classes
|
4
4
|
#
|
5
5
|
# -----------------------------------------------------------------------------
|
6
|
-
# Copyright 2010-2012 Daniel Azuma
|
7
|
-
#
|
8
|
-
# All rights reserved.
|
9
|
-
#
|
10
|
-
# Redistribution and use in source and binary forms, with or without
|
11
|
-
# modification, are permitted provided that the following conditions are met:
|
12
|
-
#
|
13
|
-
# * Redistributions of source code must retain the above copyright notice,
|
14
|
-
# this list of conditions and the following disclaimer.
|
15
|
-
# * Redistributions in binary form must reproduce the above copyright notice,
|
16
|
-
# this list of conditions and the following disclaimer in the documentation
|
17
|
-
# and/or other materials provided with the distribution.
|
18
|
-
# * Neither the name of the copyright holder, nor the names of any other
|
19
|
-
# contributors to this software, may be used to endorse or promote products
|
20
|
-
# derived from this software without specific prior written permission.
|
21
|
-
#
|
22
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
23
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
24
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
25
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
26
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
27
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
28
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
29
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
30
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
31
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
33
|
-
# -----------------------------------------------------------------------------
|
34
|
-
;
|
35
|
-
|
36
6
|
|
37
7
|
require 'test/unit'
|
38
8
|
require 'rgeo'
|
@@ -57,11 +27,11 @@ module RGeo
|
|
57
27
|
end
|
58
28
|
|
59
29
|
|
60
|
-
def
|
30
|
+
def test_epsg_3857
|
61
31
|
db_ = ::RGeo::CoordSys::SRSDatabase::Proj4Data.new('epsg')
|
62
|
-
entry_ = db_.get(
|
32
|
+
entry_ = db_.get(3857)
|
63
33
|
assert_equal('+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs', entry_.proj4.original_str)
|
64
|
-
assert_equal('
|
34
|
+
assert_equal('WGS 84 / Pseudo-Mercator', entry_.name)
|
65
35
|
end
|
66
36
|
|
67
37
|
|