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
- #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
- #srid ⇒ Object
- #sym_difference(rhs_) ⇒ Object
- #touches?(rhs_) ⇒ Boolean
- #union(rhs_) ⇒ Object
- #within?(rhs_) ⇒ Boolean
Instance Method Details
#boundary ⇒ Object
73 74 75 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 73 def boundary factory.unproject(projection.boundary) end |
#buffer(distance_) ⇒ Object
128 129 130 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 128 def buffer(distance_) factory.unproject(projection.buffer(distance_)) end |
#contains?(rhs_) ⇒ Boolean
108 109 110 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 108 def contains?(rhs_) projection.contains?(Feature.cast(rhs_, factory).projection) end |
#convex_hull ⇒ Object
133 134 135 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 133 def convex_hull factory.unproject(projection.convex_hull) end |
#crosses?(rhs_) ⇒ Boolean
98 99 100 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 98 def crosses?(rhs_) projection.crosses?(Feature.cast(rhs_, factory).projection) end |
#difference(rhs_) ⇒ Object
148 149 150 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 148 def difference(rhs_) factory.unproject(projection.difference(Feature.cast(rhs_, factory).projection)) end |
#disjoint?(rhs_) ⇒ Boolean
83 84 85 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 83 def disjoint?(rhs_) projection.disjoint?(Feature.cast(rhs_, factory).projection) end |
#distance(rhs_) ⇒ Object
123 124 125 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 123 def distance(rhs_) projection.distance(Feature.cast(rhs_, factory).projection) end |
#envelope ⇒ Object
58 59 60 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 58 def envelope factory.unproject(projection.envelope) end |
#equals?(rhs_) ⇒ Boolean
78 79 80 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 78 def equals?(rhs_) projection.equals?(Feature.cast(rhs_, factory).projection) end |
#intersection(rhs_) ⇒ Object
138 139 140 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 138 def intersection(rhs_) factory.unproject(projection.intersection(Feature.cast(rhs_, factory).projection)) end |
#intersects?(rhs_) ⇒ Boolean
88 89 90 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 88 def intersects?(rhs_) projection.intersects?(Feature.cast(rhs_, factory).projection) end |
#is_empty? ⇒ Boolean
63 64 65 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 63 def is_empty? projection.is_empty? end |
#is_simple? ⇒ Boolean
68 69 70 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 68 def is_simple? projection.is_simple? end |
#overlaps?(rhs_) ⇒ Boolean
113 114 115 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 113 def overlaps?(rhs_) projection.overlaps?(Feature.cast(rhs_, factory).projection) end |
#projection ⇒ Object
50 51 52 53 54 55 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 50 def projection unless defined?(@projection) @projection = factory.project(self) end @projection end |
#relate(rhs_, pattern_) ⇒ Object
118 119 120 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 118 def relate(rhs_, pattern_) projection.relate(Feature.cast(rhs_, factory).projection, pattern_) end |
#srid ⇒ Object
45 46 47 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 45 def srid factory.srid end |
#sym_difference(rhs_) ⇒ Object
153 154 155 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 153 def sym_difference(rhs_) factory.unproject(projection.sym_difference(Feature.cast(rhs_, factory).projection)) end |
#touches?(rhs_) ⇒ Boolean
93 94 95 |
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 93 def touches?(rhs_) projection.touches?(Feature.cast(rhs_, factory).projection) end |