Module: RGeo::Geographic::ProjectedGeometryMethods

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#boundaryObject



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

Returns:

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



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

Returns:

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

Returns:

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

#envelopeObject



19
20
21
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 19

def envelope
  factory.unproject(projection.envelope)
end

#equals?(rhs_) ⇒ Boolean

Returns:

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

Returns:

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

Returns:

  • (Boolean)


23
24
25
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 23

def is_empty?
  projection.is_empty?
end

#is_simple?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 27

def is_simple?
  projection.is_simple?
end

#overlaps?(rhs_) ⇒ Boolean

Returns:

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

#projectionObject



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

#sridObject



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

Returns:

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

#union(rhs_) ⇒ Object



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

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

#within?(rhs_) ⇒ Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/rgeo/geographic/projected_feature_methods.rb', line 56

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