[postgis-users] Cost weighted distance raster
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Thu Mar 16 13:10:38 PDT 2017
ST_Raster2WorldCoordX and ST_Raster2WorldCoordY were replaced with ST_RasterToWorldCoordX and RasterToWorldCoordY in newer version of PostGIS.
Just replace those names in the function and reexecute the CREATE FUNCTION…
Pierre
From: Spencer Gardner [mailto:spencergardner at gmail.com]
Sent: 16 mars 2017 15:50
To: Pierre Racine <Pierre.Racine at sbf.ulaval.ca>
Cc: postgis-users at lists.osgeo.org
Subject: Re: Cost weighted distance raster
Just to follow up:
I was able to execute the CREATE FUNCTION scripts with some minor tweaking. When I run ST_CostDistance it chokes on making a call to ST_World2RasterCoordx. That's as far as I've gotten. I'll have to turn my attention to another solution for now.
It's a shame--having a good cost and raster routing library would be very nice to have.
Thanks for your help.
On Tue, Mar 7, 2017 at 11:59 AM, Spencer Gardner <spencergardner at gmail.com<mailto:spencergardner at gmail.com>> wrote:
Ah thanks. Didn't see the code page. I'll let you know whether these work as is or if they need tweaking.
On Tue, Mar 7, 2017 at 11:51 AM, Pierre Racine <Pierre.Racine at sbf.ulaval.ca<mailto:Pierre.Racine at sbf.ulaval.ca>> wrote:
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20170316/35305690/attachment.html>
More information about the postgis-users
mailing list