Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am Vampouille on github.
  • I am vampouille (https://keybase.io/vampouille) on keybase.
  • I have a public key whose fingerprint is 64E6 AF9F EA74 9FFD B950 9A75 339F 7B20 DD7E 5F09

To claim this, I am signing this object:

{
"name": "pad",
"author": "me",
"link": "",
"inputBindings": [{
}, {
"action": "grid:launch_scene",
"status": 144,
"data": 8,
"scene": 0,
@Vampouille
Vampouille / geofence.sql
Last active April 27, 2023 11:13
geofence db structure
BEGIN;
CREATE SCHEMA geofence;
CREATE TABLE geofence.gf_gfuser(
id bigint NOT NULL,
datecreation timestamp without time zone,
emailaddress character varying(255),
enabled boolean NOT NULL,
extid character varying(255),
@Vampouille
Vampouille / atlas_request.json
Last active May 30, 2016 13:25
This kind of json can be sent to atlas webservice, it contains all information that atlas module need to start print job
{
"email":"test@domain.noexistante",
"layout":"A4 portrait",
"outputFormat":"pdf",
"outputFilename":"armoire_atlas.pdf",
"dpi":96,
"projection":"EPSG:900913",
"displayLegend":true,
"featureLayer":{
"type":"wms",
{
"layout": "A4 portrait",
"outputFormat": "pdf",
"attributes": {
/* Here you can set title and subtitle */
"title": "Restorante",
"subtitle": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras egestas, massa eget placerat fermentum, nunc massa facilisis enim, id eleifend orci lacus sed sem.",
"datasource": [{
"map": {
"dpi" : 216,
public class PrintMerge {
@Handler
public void merge(Exchange ex) throws JSONException {
JSONObject page = new JSONObject(new JSONTokener(ex.getIn().getBody(String.class)));
JSONArray layers = new JSONArray(new JSONTokener(ex.getProperty("layers", String.class)));
}
}