Skip to content

Instantly share code, notes, and snippets.

@matthewberryman
Last active September 12, 2016 05:51
Show Gist options
  • Save matthewberryman/f3e0345c9522c513efb8c2b33f4b0f47 to your computer and use it in GitHub Desktop.
Save matthewberryman/f3e0345c9522c513efb8c2b33f4b0f47 to your computer and use it in GitHub Desktop.
my script for converting postgresql sql file from postgis 2.1 to postgis 2.2
#!/usr/bin/env bash
sed -i -e 's/libdir\/rtpostgis-2.1/libdir\/rtpostgis-2.2/g; s/libdir\/postgis-2.1/libdir\/postgis-2.2/g; s/LWGEOMFromWKB/LWGEOMFromEWKB/g' $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment