Class: Geos::LinearRing
- Inherits:
-
LineString
- Object
- Geometry
- LineString
- Geos::LinearRing
- Defined in:
- lib/ffi-geos/linear_ring.rb
Constant Summary
Constants included from GeomTypes
GeomTypes::GEOS_GEOMETRYCOLLECTION, GeomTypes::GEOS_LINEARRING, GeomTypes::GEOS_LINESTRING, GeomTypes::GEOS_MULTILINESTRING, GeomTypes::GEOS_MULTIPOINT, GeomTypes::GEOS_MULTIPOLYGON, GeomTypes::GEOS_POINT, GeomTypes::GEOS_POLYGON
Instance Attribute Summary
Attributes inherited from Geometry
Instance Method Summary collapse
Methods inherited from LineString
#[], #closed?, #each, #num_points, #offset_curve, #point_n, #to_linear_ring
Methods inherited from Geometry
#==, #area, #boundary, #buffer, #centroid, #clip_by_rect, #contains?, #convex_hull, #coord_seq, #covered_by?, #covers?, #crosses?, #delaunay_triangulation, #difference, #dimensions, #disjoint?, #distance, #empty?, #end_point, #envelope, #eql?, #eql_almost?, #eql_exact?, #extract_unique_points, #geom_type, #has_z?, #hausdorff_distance, #initialize, #initialize_copy, #interpolate, #interpolate_normalized, #intersection, #intersects?, #length, #line_merge, #nearest_points, #node, #normalize!, #num_coordinates, #num_geometries, #overlaps?, #point_on_surface, #polygonize, #polygonize_cut_edges, #polygonize_full, #project, #project_normalized, #relate, #relate_boundary_node_rule, #relate_pattern, release, #ring?, #shared_paths, #simple?, #simplify, #snap, #srid, #srid=, #start_point, #sym_difference, #to_prepared, #to_s, #topology_preserve_simplify, #touches?, #type_id, #unary_union, #union, #union_cascaded, #valid?, #valid_detail, #valid_reason, #voronoi_diagram, #within?
Methods included from Tools
#bool_result, #bool_to_int, #cast_geometry_ptr, #check_enum_value, #check_geometry, #extract_options!, #pick_srid_according_to_policy, #pick_srid_from_geoms, #symbol_for_enum
Constructor Details
This class inherits a constructor from Geos::Geometry
Instance Method Details
#to_line_string ⇒ Object
9 10 11 |
# File 'lib/ffi-geos/linear_ring.rb', line 9 def to_line_string Geos.create_line_string(self.coord_seq, :srid => pick_srid_according_to_policy(self.srid)) end |
#to_polygon ⇒ Object
5 6 7 |
# File 'lib/ffi-geos/linear_ring.rb', line 5 def to_polygon Geos.create_polygon(self, :srid => pick_srid_according_to_policy(self.srid)) end |