Skip to content

Port to Java JNI and C++ of JS GeoJSON-VT for slicing GeoJSON into vector tiles on the fly

License

Notifications You must be signed in to change notification settings

ohad7/geojson-vt-cpp

 
 

Repository files navigation

geojson-vt-cpp

Port to C++ of JS GeoJSON-VT for slicing GeoJSON into vector tiles on the fly.

JNI Bindings

This fork Contains JNI bindings for the main functionalities of the geojson-vt-cpp package. It is jni.hpp to easily register native methods into a Java class of your choice. The Java class needs to define the following methods :

   package org.something

   public class Tiler {
     public native void load(String key, String path);
  
     public native void unload(String key);
  
     public synchronized native byte[] getTile(String key, int z, int x, int y);   
   }

Note that getTile is synchronized since it has the side effect of changing internal data structures in native code.

Compilation using make

To create a dynamic lib execute make with target "jni" and specify the class name which you

make TILER_KLASS=org/something/Tiler clean jni

Build Status

About

Port to Java JNI and C++ of JS GeoJSON-VT for slicing GeoJSON into vector tiles on the fly

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 96.7%
  • Makefile 3.3%