[postgis-users] AsTopoJSON fails with: "No function matches the given name and argument types."
Sandro Santilli
strk at keybit.net
Fri Sep 6 04:02:35 PDT 2013
On Fri, Sep 06, 2013 at 10:05:56AM +1000, Luca Morandini wrote:
> On 09/05/2013 06:15 PM, Luca Morandini wrote:
> >On 09/05/2013 06:02 PM, Tom van Tilburg wrote:
> >>Luca,
> >>
> >>Can you confirm that the function exists in the topology schema?
>
> Well, in the end I had just to add a null as second parameter, like in:
>
> select AsTopoJSON(topology, null) from abs_asgc.lga06aaustlines;
The problem with not passing a "visited" table is that your arc
indices will be the edge identifiers, which are possibly (likely?)
not consecutive, so not very good for use as an array offset
(required for the "arcs" element of the resulting TopoJSON).
That's the reason why it's discouraged (ie: the second argument
is not optional).
--strk;
More information about the postgis-users
mailing list