Module: RGeo::Geographic::ProjectedGeometryMethods

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#boundaryObject


73
74
75
76
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 73

def boundary
  boundary_ = projection.boundary
  boundary_ ? factory.unproject(boundary_) : nil
end

#buffer(distance_) ⇒ Object


129
130
131
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 129

def buffer(distance_)
  factory.unproject(projection.buffer(distance_))
end

#contains?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

109
110
111
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 109

def contains?(rhs_)
  projection.contains?(Feature.cast(rhs_, factory).projection)
end

#convex_hullObject


134
135
136
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 134

def convex_hull
  factory.unproject(projection.convex_hull)
end

#crosses?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

99
100
101
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 99

def crosses?(rhs_)
  projection.crosses?(Feature.cast(rhs_, factory).projection)
end

#difference(rhs_) ⇒ Object


149
150
151
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 149

def difference(rhs_)
  factory.unproject(projection.difference(Feature.cast(rhs_, factory).projection))
end

#disjoint?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

84
85
86
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 84

def disjoint?(rhs_)
  projection.disjoint?(Feature.cast(rhs_, factory).projection)
end

#distance(rhs_) ⇒ Object


124
125
126
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 124

def distance(rhs_)
  projection.distance(Feature.cast(rhs_, factory).projection)
end

#envelopeObject


58
59
60
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 58

def envelope
  factory.unproject(projection.envelope)
end

#equals?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

79
80
81
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 79

def equals?(rhs_)
  projection.equals?(Feature.cast(rhs_, factory).projection)
end

#intersection(rhs_) ⇒ Object


139
140
141
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 139

def intersection(rhs_)
  factory.unproject(projection.intersection(Feature.cast(rhs_, factory).projection))
end

#intersects?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

89
90
91
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 89

def intersects?(rhs_)
  projection.intersects?(Feature.cast(rhs_, factory).projection)
end

#is_empty?Boolean

Returns:

  • (Boolean)

63
64
65
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 63

def is_empty?
  projection.is_empty?
end

#is_simple?Boolean

Returns:

  • (Boolean)

68
69
70
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 68

def is_simple?
  projection.is_simple?
end

#overlaps?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

114
115
116
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 114

def overlaps?(rhs_)
  projection.overlaps?(Feature.cast(rhs_, factory).projection)
end

#projectionObject


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


119
120
121
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 119

def relate(rhs_, pattern_)
  projection.relate(Feature.cast(rhs_, factory).projection, pattern_)
end

#sridObject


45
46
47
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 45

def srid
  factory.srid
end

#sym_difference(rhs_) ⇒ Object


154
155
156
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 154

def sym_difference(rhs_)
  factory.unproject(projection.sym_difference(Feature.cast(rhs_, factory).projection))
end

#touches?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

94
95
96
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 94

def touches?(rhs_)
  projection.touches?(Feature.cast(rhs_, factory).projection)
end

#union(rhs_) ⇒ Object


144
145
146
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 144

def union(rhs_)
  factory.unproject(projection.union(Feature.cast(rhs_, factory).projection))
end

#within?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)

104
105
106
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 104

def within?(rhs_)
  projection.within?(Feature.cast(rhs_, factory).projection)
end