Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os,fnmatch
def main():
rootPath = 'c:/personal/gpx'
for root, dirs, files in os.walk(rootPath):
gpxfiles = fnmatch.filter(files, '*.gpx')
if (len(gpxfiles) != 0):
Sub reports()
Const DBfile = "c:\personal\sib\operative.xls"
Dim notFillRows(59)
Set fso = CreateObject("Scripting.FileSystemObject")
Set a = CreateObject("excel.application")
Set b = a.Workbooks.Open(DBfile)
Set s = b.Sheets(1)
@drnextgis
drnextgis / response.xml
Created June 24, 2011 12:08
GetCapabilities response
<?xml version='1.0' encoding='UTF-8'?>
<WFS_Capabilities version='1.1.0' updateSequence='0'
xmlns='http://www.opengis.net/wfs'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:ogc='http://www.opengis.net/ogc'
xmlns:gml='http://www.opengis.net/gml'
xmlns:ows='http://www.opengis.net/ows'
xmlns:xlink='http://www.w3.org/1999/xlink'
xsi:schemaLocation='http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd' >
@drnextgis
drnextgis / check-modis.py
Created June 23, 2011 07:25
check-modis.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os,fnmatch
def main():
rootPath = './PullDir'
for root, dirs, files in os.walk(rootPath):
files.sort()
hdffiles = fnmatch.filter(files, '*.hdf')
@drnextgis
drnextgis / temp.txt
Created June 22, 2011 16:40
Tilestache install
sudo apt-get install python-setuptools
sudo apt-get install python2.7-dev
sudo apt-get install libmapnik0.7 mapnik-utils python-mapnik
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
sudo pip install -U PIL
sudo pip install -U modestmaps
sudo pip install -U werkzeug