Module: RGeo::Geographic::ProjectedGeometryMethods

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#boundaryObject



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

Returns:

  • (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_hullObject



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

Returns:

  • (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

Returns:

  • (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

#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)


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

Returns:

  • (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

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)


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

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



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

#sridObject



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

Returns:

  • (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

#union(rhs_) ⇒ Object



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

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

#within?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)


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

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