Sha256: 42e330ef87f3f4b1f0b58d18312e9f85c8d4291419613dd629cfea24443279c3

Contents?: true

Size: 627 Bytes

Versions: 14

Compression:

Stored size: 627 Bytes

Contents

/*
  Main initializer for GEOS wrapper
*/


#include "preface.h"

#ifdef RGEO_GEOS_SUPPORTED

#include <ruby.h>
#include <geos_c.h>

#include "factory.h"
#include "geometry.h"
#include "point.h"
#include "line_string.h"
#include "polygon.h"
#include "geometry_collection.h"

#endif

RGEO_BEGIN_C


void Init_geos_c_impl()
{
#ifdef RGEO_GEOS_SUPPORTED
  RGeo_Globals* globals;

  globals = rgeo_init_geos_factory();
  rgeo_init_geos_geometry(globals);
  rgeo_init_geos_point(globals);
  rgeo_init_geos_line_string(globals);
  rgeo_init_geos_polygon(globals);
  rgeo_init_geos_geometry_collection(globals);
#endif
}


RGEO_END_C

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
rgeo-2.1.1 ext/geos_c_impl/main.c
rgeo-2.1.0 ext/geos_c_impl/main.c
rgeo-2.0.1 ext/geos_c_impl/main.c
rgeo-2.0.0 ext/geos_c_impl/main.c
rgeo-1.1.2 ext/geos_c_impl/main.c
rgeo-1.1.1 ext/geos_c_impl/main.c
rgeo-1.0.0 ext/geos_c_impl/main.c
rgeo-1.0.0.rc1 ext/geos_c_impl/main.c
rgeo-0.6.0 ext/geos_c_impl/main.c
rgeo-dschee-0.5.4 ext/geos_c_impl/main.c
rgeo-0.5.3 ext/geos_c_impl/main.c
rgeo-0.5.2 ext/geos_c_impl/main.c
rgeo-0.5.0 ext/geos_c_impl/main.c
rgeo-0.4.0 ext/geos_c_impl/main.c