View NSArray+JCaddons.h
//
// NSArray+JCaddons.h
//
// Created by Jesse Crocker on 7/26/12.
// Copyright (c) 2012 Thisside.net. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSArray (JCaddons)
View AFCSVRequestOperation.h
// AFCSVRequestOperation.h
//
// Created by Jesse Crocker <datamongers.net> on 12/30/2012
// Based on AFJSONRequestOperation.h
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
View xcd_model_parser.pl
#!/usr/bin/env perl
use strict;
use warnings;
use XML::Simple;
use Data::Dumper;
use Scalar::Util 'reftype';
use JSON;
use Carp;
use DBI;
View DBController.h
//
// DBController.h
//
// Created by Jesse Crocker on 3/31/13.
// Copyright (c) 2013 Jesse Crocker. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DBController : NSObject
View convert-geopdf.py
#!/usr/bin/env python
#based on http://lists.osgeo.org/pipermail/gdal-dev/2013-January/035269.html
from osgeo import gdal, osr
import os
import sys
from optparse import OptionParser
import tempfile
from shapely import wkt
from shapely.geometry import mapping
from fiona import collection, crs
View composite_landsat.py
#!/usr/bin/env python
from osgeo import gdal
import os
import sys
import glob
from optparse import OptionParser
def convertTo8Bit(infile, outfile):
os.system('gdal_contrast_stretch -ndv 0 -percentile-range 0.02 0.98 %s %s' % (infile, outfile))
View quote.py
#!/usr/bin/env python
import sys
quoted_items = []
for string in sys.argv[1:]:
items = string.split(", ")
[quoted_items.append("'%s'" % i.replace(",","")) for i in items]
print "(" + ", ".join(quoted_items) + ")"
View style.mss
Map {
background-color: white;
}
#boundries[Name="Fence"] {
line-width:.5;
line-color:#9C9C9C;
}
View transparent_tiles.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright (c) 2013, Trailbehind inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
View dump-pixels.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import optparse
from PIL import Image
import json
if __name__=='__main__':