[postgis-users] Cost weighted distance raster
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Tue Mar 7 09:51:59 PST 2017
In the code page :
https://trac.osgeo.org/postgis/wiki/PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools/code
There is a ST_CostDistance() function.
Pierre
From: Spencer Gardner [mailto:spencergardner at gmail.com]
Sent: 7 mars 2017 12:35
To: Pierre Racine <Pierre.Racine at sbf.ulaval.ca>
Cc: postgis-users at lists.osgeo.org
Subject: Re: Cost weighted distance raster
I didn't see any code for the Cost Distance function, only the Euclidean Distance. Did I miss something? Or is it located on a different website that I haven't found?
Thanks,
Spencer
On Tue, Mar 7, 2017 at 10:23 AM, Pierre Racine <Pierre.Racine at sbf.ulaval.ca<mailto:Pierre.Racine at sbf.ulaval.ca>> wrote:
There is no .sql. just copy the functions into a .sql text file and execute.
From: Spencer Gardner [mailto:spencergardner at gmail.com<mailto:spencergardner at gmail.com>]
Sent: 7 mars 2017 11:16
To: Pierre Racine <Pierre.Racine at sbf.ulaval.ca<mailto:Pierre.Racine at sbf.ulaval.ca>>
Cc: postgis-users at lists.osgeo.org<mailto:postgis-users at lists.osgeo.org>
Subject: Re: Cost weighted distance raster
On Tue, Mar 7, 2017 at 7:07 AM, Pierre Racine <Pierre.Racine at sbf.ulaval.ca<mailto:Pierre.Racine at sbf.ulaval.ca>> wrote:
Hi Spencer,
Integrating something in the main PostGIS core is hard work. That’s why I started the PostGIS Addons: to quickly gather PLpgSQL-only functions into an easy to install .SQL file. Why I did not integrate those functions in the Addons yet? Lack of time, not much work involving PostGIS since a while, not sure the code is working properly.
Did you get time to test it? If it work fine, I might take time to add it to the Addons before FOSS4G 2017.
Pierre
That makes sense. I don't see a master .sql file to use for adding the functions to the database. The GSOC proposal I linked to previously has code for the Euclidean Distance function, but not for the Cost-Weighted Distance function. Is there a single .sql file somewhere that I can use to create both functions? I'd love to take a look and see if I can get them both working.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20170307/01bd2371/attachment.html>
More information about the postgis-users
mailing list