Module: RGeo::Geographic::ProjectedGeometryMethods
- Included in:
- ProjectedGeometryCollectionImpl, ProjectedLineImpl, ProjectedLineStringImpl, ProjectedLinearRingImpl, ProjectedMultiLineStringImpl, ProjectedMultiPointImpl, ProjectedMultiPolygonImpl, ProjectedPointImpl, ProjectedPolygonImpl
- Defined in:
- lib/rgeo/geographic/projected_feature_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
- #boundary ⇒ Object
- #buffer(distance_) ⇒ Object
- #buffer_with_style(distance_, endCapStyle_, joinStyle_, mitreLimit_) ⇒ Object
- #contains?(rhs_) ⇒ Boolean
- #convex_hull ⇒ Object
- #crosses?(rhs_) ⇒ Boolean
- #difference(rhs_) ⇒ Object
- #disjoint?(rhs_) ⇒ Boolean
- #distance(rhs_) ⇒ Object
- #envelope ⇒ Object
- #equals?(rhs_) ⇒ Boolean
- #intersection(rhs_) ⇒ Object
- #intersects?(rhs_) ⇒ Boolean
- #is_empty? ⇒ Boolean
- #is_simple? ⇒ Boolean
- #overlaps?(rhs_) ⇒ Boolean
- #projection ⇒ Object
- #relate(rhs_, pattern_) ⇒ Object
- #simplify(tolerance_) ⇒ Object
- #simplify_preserve_topology(tolerance_) ⇒ Object
- #srid ⇒ Object
- #sym_difference(rhs_) ⇒ Object
- #touches?(rhs_) ⇒ Boolean
- #union(rhs_) ⇒ Object
- #within?(rhs_) ⇒ Boolean
Instance Method Details
#boundary ⇒ Object
31 32 33 34 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 31 def boundary boundary_ = projection.boundary boundary_ ? factory.unproject(boundary_) : nil end |
#buffer(distance_) ⇒ Object
76 77 78 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 76 def buffer(distance_) factory.unproject(projection.buffer(distance_)) end |
#buffer_with_style(distance_, endCapStyle_, joinStyle_, mitreLimit_) ⇒ Object
80 81 82 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 80 def buffer_with_style(distance_, endCapStyle_, joinStyle_, mitreLimit_) factory.unproject(projection.buffer_with_style(distance_, endCapStyle_, joinStyle_, mitreLimit_)) end |
#contains?(rhs_) ⇒ Boolean
60 61 62 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 60 def contains?(rhs_) projection.contains?(Feature.cast(rhs_, factory).projection) end |
#convex_hull ⇒ Object
92 93 94 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 92 def convex_hull factory.unproject(projection.convex_hull) end |
#crosses?(rhs_) ⇒ Boolean
52 53 54 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 52 def crosses?(rhs_) projection.crosses?(Feature.cast(rhs_, factory).projection) end |
#difference(rhs_) ⇒ Object
104 105 106 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 104 def difference(rhs_) factory.unproject(projection.difference(Feature.cast(rhs_, factory).projection)) end |
#disjoint?(rhs_) ⇒ Boolean
40 41 42 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 40 def disjoint?(rhs_) projection.disjoint?(Feature.cast(rhs_, factory).projection) end |
#distance(rhs_) ⇒ Object
72 73 74 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 72 def distance(rhs_) projection.distance(Feature.cast(rhs_, factory).projection) end |
#envelope ⇒ Object
19 20 21 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 19 def envelope factory.unproject(projection.envelope) end |
#equals?(rhs_) ⇒ Boolean
36 37 38 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 36 def equals?(rhs_) projection.equals?(Feature.cast(rhs_, factory).projection) end |
#intersection(rhs_) ⇒ Object
96 97 98 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 96 def intersection(rhs_) factory.unproject(projection.intersection(Feature.cast(rhs_, factory).projection)) end |
#intersects?(rhs_) ⇒ Boolean
44 45 46 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 44 def intersects?(rhs_) projection.intersects?(Feature.cast(rhs_, factory).projection) end |
#is_empty? ⇒ Boolean
23 24 25 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 23 def is_empty? projection.is_empty? end |
#is_simple? ⇒ Boolean
27 28 29 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 27 def is_simple? projection.is_simple? end |
#overlaps?(rhs_) ⇒ Boolean
64 65 66 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 64 def overlaps?(rhs_) projection.overlaps?(Feature.cast(rhs_, factory).projection) end |
#projection ⇒ Object
14 15 16 17 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 14 def projection @projection = factory.project(self) unless defined?(@projection) @projection end |
#relate(rhs_, pattern_) ⇒ Object
68 69 70 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 68 def relate(rhs_, pattern_) projection.relate(Feature.cast(rhs_, factory).projection, pattern_) end |
#simplify(tolerance_) ⇒ Object
84 85 86 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 84 def simplify(tolerance_) factory.unproject(projection.simplify(tolerance_)) end |
#simplify_preserve_topology(tolerance_) ⇒ Object
88 89 90 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 88 def simplify_preserve_topology(tolerance_) factory.unproject(projection.simplify_preserve_topology(tolerance_)) end |
#srid ⇒ Object
10 11 12 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 10 def srid factory.srid end |
#sym_difference(rhs_) ⇒ Object
108 109 110 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 108 def sym_difference(rhs_) factory.unproject(projection.sym_difference(Feature.cast(rhs_, factory).projection)) end |
#touches?(rhs_) ⇒ Boolean
48 49 50 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 48 def touches?(rhs_) projection.touches?(Feature.cast(rhs_, factory).projection) end |