| 152 | |
| 153 | '''2.3.2 - Compiling on Windows using MSYS/MinGW''' |
| 154 | |
| 155 | 1. Compile PostGIS [wiki:UsersWikiWinCompile using these instructions]. |
| 156 | |
| 157 | 2. Get the WKT Raster source code. You have two options: |
| 158 | |
| 159 | * Using a SVN client, retrieve the very last WKT Raster source from http://svn.osgeo.org/postgis/spike/wktraster |
| 160 | |
| 161 | * Download the latest development snapshot from http://postgis.refractions.net/download/ |
| 162 | |
| 163 | 3. From the wktraster folder, do: |
| 164 | |
| 165 | {{{ |
| 166 | >./configure --with-postgis-sources=/thesrc/postgis-version |
| 167 | }}} |
| 168 | |
| 169 | 4. Run the compile and install commands: |
| 170 | |
| 171 | {{{ |
| 172 | >make & make install |
| 173 | }}} |
| 174 | |
| 175 | Note that the 'configure' script isn't there if you fetched the code from the SVN repository. In that case running ./autogen.sh should create it for you. |
| 176 | |
| 177 | Under MinGW you might have to add "--with-pgconfig=/usr/local/pgsql/bin/pg_config" if configure can't find your pgsql path. |
| 178 | |
| 179 | |
| 180 | '''2.3.3 - Compiling on Windows using Visual Studio''' |
| 181 | |
| 182 | |
| 183 | |
| 184 | '''2.3.4 - Final Installation''' |
| 185 | |
| 186 | 1. Load the PostGIS WKT Raster object and function definitions into your database by loading the rtpostgis.sql definitions file. |
| 187 | |
| 188 | {{{ |
| 189 | >psql -d [yourdatabase] -f rtpostgis.sql |
| 190 | |
| 191 | }}} |
| 192 | |
| 193 | The PostGIS WKT Raster extensions should now be loaded and ready to use. |
| 194 | |
159 | | |
160 | | |
161 | | |
162 | | |
163 | | '''2.3.2 - Compiling on Windows using MSYS/MinGW''' |
164 | | |
165 | | 1. Compile PostGIS [wiki:UsersWikiWinCompile using these instructions]. |
166 | | |
167 | | 2. Get the WKT Raster source code. You have two options: |
168 | | |
169 | | * Using a SVN client, retrieve the very last WKT Raster source from http://svn.osgeo.org/postgis/spike/wktraster |
170 | | |
171 | | * Download the latest development snapshot from http://postgis.refractions.net/download/ |
172 | | |
173 | | 3. From the wktraster folder, do: |
174 | | |
175 | | {{{ |
176 | | >./configure --with-postgis-sources=/thesrc/postgis-version |
177 | | }}} |
178 | | |
179 | | 4. Run the compile and install commands: |
180 | | |
181 | | {{{ |
182 | | >make & make install |
183 | | }}} |
184 | | |
185 | | Note that the 'configure' script isn't there if you fetched the code from the SVN repository. In that case running ./autogen.sh should create it for you. |
186 | | |
187 | | Under MinGW you might have to add "--with-pgconfig=/usr/local/pgsql/bin/pg_config" if configure can't find your pgsql path. |
188 | | |
189 | | |
190 | | '''2.3.3 - Compiling on Windows using Visual Studio''' |
191 | | |
192 | | |
193 | | |
194 | | '''2.3.4 - Final Installation''' |
195 | | |
196 | | 1. Load the PostGIS WKT Raster object and function definitions into your database by loading the rtpostgis.sql definitions file. |
197 | | |
198 | | {{{ |
199 | | >psql -d [yourdatabase] -f rtpostgis.sql |
200 | | |
201 | | }}} |
202 | | |
203 | | The PostGIS WKT Raster extensions should now be loaded and ready to use. |