GEOS

Raku bindings and wrappers for libgeos

NAME

GEOS - Raku bindings and wrappers for libgeos

SYNOPSIS

use GEOS::Geometry;

my $polygon = GEOS::Geometry.from-geojson('{"type":"Polygon","coordinates":[[[0,0],[0,4],[4,4],[4,0],[0,0]]]}');
my $buffered = $polygon.buffer(2);

say $polygon.area;  # 16
say $buffered.area;  # 60

DESCRIPTION

This module provides Raku bindings and wrappers for the libgeos library, https://libgeos.org/.

GEOS provides numerous C functions for creating, manipulating, and analyzing geometric objects.

A fraction of the functionality offered includes:

  • creating geometries from WKT and GeoJSON

  • computing properties like area and length

  • performing set operations such as intersection, union, difference, and symmetric difference

  • using predicates like contains, intersects, within, touches, overlaps, equals

  • doing calculations like distance, hausdorff-distance, frechet-distance

  • doing manipulations such as simplify, snap-to, reverse, normalize, make-valid, minimum-circle, oriented-envelope

For a more complete list of functions available through this module, see the GEOS::Geometry module.

SEE ALSO

  • GEOS::Geometry -- GEOS geometries and methods that relate to them.

  • GEOS::Native -- low-level interface to libgeos

  • GEOS::Reader -- high-level interface to libgeos routines for reading geometries

  • GEOS::Writer -- high-level interface to libgeos routines for serializing geometries

AUTHOR

Brian Duggan

GEOS v0.0.5

Raku bindings and wrappers for libgeos

Authors

  • Brian Duggan

License

MIT

Dependencies

Log::AsyncJSON::Fast

Test Dependencies

Provides

  • GEOS
  • GEOS::Geometry
  • GEOS::Native
  • GEOS::Reader
  • GEOS::Writer

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.