This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
typedef struct point { | |
int x, y; | |
} point; | |
typedef struct point3d { | |
struct point; | |
int z; | |
} point3d; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PGPASSWORD=password | |
PGOPTS="-d database -h host -U user" | |
# water polygons | |
# | |
wget http://data.openstreetmapdata.com/water-polygons-split-3857.zip | |
unzip water-polygons-split-3857.zip | |
shp2pgsql -dID -s 900913 -W Windows-1252 -g the_geom water-polygons-split-3857/water_polygons.shp water_polygons | psql $PGOPTS | |
rm ./water-polygons-split-3857.zip && rm -rf ./water-polygons-split-3857 |
NewerOlder