Skip to content

Instantly share code, notes, and snippets.

View gislars's full-sized avatar

Lars Lingner gislars

  • mapwebbing
  • Berlin
View GitHub Profile
@gislars
gislars / gist:6048063
Created July 21, 2013 09:35
ogrinfo -al -so berlin-small.osm
Had to open data source read-only.
INFO: Open of `berlin-small.osm'
using driver `OSM' successful.
Layer name: points
Geometry: Point
Feature Count: -1
Extent: (13.425000, 52.465700) - (13.460100, 52.481200)
Layer SRS WKT:
GEOGCS["WGS 84",
MAP
FONTSET "fonts.lst"
IMAGETYPE png
MAXSIZE 25000
SIZE 800 800
EXTENT -20000000 -20000000 20000000 20000000
UNITS meters
WEB
METADATA
"ows_enable_request" "*"
@gislars
gislars / gist:6048109
Created July 21, 2013 09:54
vrt file
<OGRVRTDataSource>
<OGRVRTLayer name="mylines">
<SrcDataSource>berlin-small.osm</SrcDataSource>
<LayerSRS>WGS84</LayerSRS>
<Field name="other_tags"/>
<Field name="highway"/>
<Field name="osm_id"/>
</OGRVRTLayer>
</OGRVRTDataSource>
@gislars
gislars / filegdb2shp
Created July 26, 2013 13:45
Howto use gdal/ogr to access a FileGDB and convert it to shapefile
get the FileGDB API http://www.esri.com/apps/products/download/
extract it somewhere on your system and remember the path :)
mkdir build #directory where we are playing around
cd build
git clone https://github.com/OSGeo/gdal.git
cd gdal
./configure --with-fgdb=/path/to/your/FileGDB_API
make
(make install) optional, I'm just using it locally
@gislars
gislars / printconfig.json
Created July 12, 2014 12:15
json print config
{
"Decoration": {
"northarrow": null,
"scale": null
},
"Output": {
"orientation": "quer",
"height": 46.8,
"infobox": "oben links",
"width": 33.1,
@gislars
gislars / default.map
Created May 7, 2015 07:26
MapServer default map with GetFeatureInfo
MAP
CONFIG 'ON_MISSING_DATA' 'IGNORE'
CONFIG "MS_ERRORFILE" "../debugFile.log"
CONFIG 'PROJ_LIB' '../'
FONTSET '../fonts.lst'
IMAGETYPE png
MAXSIZE 4000
SIZE 800 800
UNITS meters
EXTENT -20405648.939901 -17712669.979681 20314497.045109 19408951.476421
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
#!/bin/bash -e
## split-image.sh - Split a large image into same-size tiles
## Split a large image into same-size tiles
## and optionally convert to a print-ready PDF document
##
## For example split a huge A1-size banner into 8x A4 tiles
## and create a single PDF ready for print.
### Keybase proof
I hereby claim:
* I am gislars on github.
* I am gislars (https://keybase.io/gislars) on keybase.
* I have a public key ASDuVTptmDyWSJyfr8f1A5p69Dp06ZwKMwBC82OsfDGGoQo
To claim this, I am signing this object: