Thursday, 20 June 2019

installation - How to install a patch in PostGIS


Can anybody tell me how to install this patch in PostGIS?


http://trac.osgeo.org/postgis/ticket/413


http://trac.osgeo.org/postgis/changeset/7534


I need to use the ST_OffsetCurve function. but it seems it's not available in the PostGIS installation(I installed the version "postgis-pg90-setup-1.5.3-2").


Can anybody tell me how to make it work?



Answer



You'll need access to PostGIS source code, which is freely available on their site along with their binaries. Then pretty much install PostGIS again after patching the code.


The patching instructions is in the thread:



tar xvfz postgis-1.5.0.tar.gz && patch -p0 < postgis-1.5.0-RafalMagda.patch 

Then compile and install PostGIS again.


If you're on a unix environment, this is quite routine and simple.


You can also do this on Windows, but will require additional software.


see: http://trac.osgeo.org/postgis/wiki/DevWikiWinMingWSys_14_15


In step 15, you'll need to find and use a patch command similar to above.


Good luck!


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...