Created
July 27, 2012 15:22
Revisions
-
fcurella revised this gist
Oct 9, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Note: if you plan on running graphical apps with this python installation add `` Some geo dependencies: Django doesn't currently work with Postgis 2.x, so we have to install 1.5.x (see [ticket #16455](https://code.djangoproject.com/ticket/16455)). Also, PostGis 1.5 does not work with Postgres 9.2, so we are going to install v9.0.8 $ brew tap homebrew/versions $ brew install postgis15 -
fcurella revised this gist
Oct 9, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,16 +7,16 @@ Install a few things with homebrew: Notice that some packages give you information at the end, read it carefully. To recall that info use ``brew info`` like this: ``$ brew info postgresql`` $ brew install python --universal Note: if you plan on running graphical apps with this python installation add ``--framework`` as well. Some geo dependencies: Django doesn't currently work with Postgis 2.x, so we have to install 1.5.x (see [ticket #16455](https://code.djangoproject.com/ticket/16455)). Also, PostGis 1.5 does not work with Postgres9.2, so we are going to install v. 9.0.8 $ brew tap homebrew/versions $ brew install postgis15 $ brew install postgresql9 $ brew untap homebrew/versions $ brew install gdal geos -
fcurella revised this gist
Sep 17, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -33,4 +33,4 @@ Create a new db: Dump/Restore: $ pg_dump -Fc mydatabase > /tmp/mydatabase.db $ postgis_restore.pl /usr/local/Cellar/postgis/1.5.3/share/postgis/postgis.sql mydatabase /tmp/mydatabase.db -
fcurella revised this gist
Jul 27, 2012 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,5 @@ ## Django and Postgis on OS X Install [Homebrew](http://wiki.github.com/mxcl/homebrew/) Install a few things with homebrew: -
fcurella renamed this gist
Jul 27, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## Django and Postgis on OS X (On MacOS) -
fcurella revised this gist
Jul 27, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Note: if you plan on running graphical apps with this python installation add `` Some geo dependencies: Django doesn't currently work with Postgis 2.x, so we have to install 1.5.x (see [ticket #16455](https://code.djangoproject.com/ticket/16455)) $ brew tap homebrew/versions $ brew install postgis15 -
fcurella revised this gist
Jul 27, 2012 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,11 @@ Note: if you plan on running graphical apps with this python installation add `` Some geo dependencies: Django doesn't currently work with Postgis 2.x, so we have to install 1.5.x $ brew tap homebrew/versions $ brew install postgis15 $ brew untap homebrew/versions $ brew install gdal geos Create the ``template_postgis`` template database -
fcurella revised this gist
Jul 27, 2012 . No changes.There are no files selected for viewing
-
fcurella created this gist
Jul 27, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ ## PostGis on OS X (On MacOS) Install [Homebrew](http://wiki.github.com/mxcl/homebrew/) Install a few things with homebrew: Notice that some packages give you information at the end, read it carefully. To recall that info use ``brew info`` like this: ``$ brew info postgresql`` $ brew install python --universal $ brew install postgresql Note: if you plan on running graphical apps with this python installation add ``--framework`` as well. Some geo dependencies: $ brew install postgis $ brew install gdal geos Create the ``template_postgis`` template database $ createdb template_postgis $ psql -f /usr/local/share/postgis/postgis.sql template_postgis $ psql -f /usr/local/share/postgis/spatial_ref_sys.sql template_postgis Create a new db: $ createdb -T template_postgis mydatabase Dump/Restore: $ pg_dump -Fc mydatabase > /tmp/mydatabase.db $ postgis_restore.pl /usr/share/postgresql/9.0/contrib/postgis-1.5/postgis.sql mydatabase /tmp/mydatabase.db