[pgrouting-dev] Issue #329 + new flag
Vicky Vergara
vicky_vergara at hotmail.com
Mon Apr 6 19:21:46 PDT 2015
Dear community:
I am about to finish up issue #329, Incremental Create Topology
Actually John Zabrenski mailed to user's list on june last year, and he tested the solution,
but the merge remained pending.
The actual signature of the function is:
CREATE OR REPLACE FUNCTION pgr_createtopology(edge_table text, tolerance double precision,
the_geom text default 'the_geom', id text default 'id',
source text default 'source', target text default 'target',rows_where text default 'true')
the minimal usage is like this: (I like defaults... less typing)
pgr_createtopology(edge_table, tolerance)
And this will delete any topology information already stored in edge_table, if any.
I am about to add a flag "clean", so I am asking what is de preferred default value for the flag?
CREATE OR REPLACE FUNCTION pgr_createtopology(edge_table text, tolerance double precision,
the_geom text default 'the_geom', id text default 'id',
source text default 'source', target text default 'target',rows_where text default 'true',
clean boolean default true) <<<<<<
CREATE OR REPLACE FUNCTION pgr_createtopology(edge_table text, tolerance double precision,
the_geom text default 'the_geom', id text default 'id',
source text default 'source', target text default 'target',rows_where text default 'true',
clean boolean default false) <<<<<<My personal preference is clean = False (Don't clean), that is, it will continue with the topology where source & target values are null. That way if I add 100 rows to my 25million edges table, it will just add the topology for those 100 rows and not delete the existing topology and restart constructing the topology of 25million +100 edges.
Please, feedback.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pgrouting-dev/attachments/20150406/7ab424e7/attachment.html>
More information about the pgrouting-dev
mailing list