[GRASS-dev] v.external, ogr direct access, topology and
pseudo-topology.... a bit confused
G. Allegri
giohappy at gmail.com
Mon Apr 19 11:46:25 EDT 2010
2010/4/19 Markus Metz <markus.metz.giswork at googlemail.com>
>
> G. Allegri wrote:
>>
>> Hi Markus,
>> thanks for the clarifying reply.
>> For SF algorithms I mean those that can apply to SF structures, as meant
by the OGC definition. For example a simple clip based on the SF spatial
operators (like those in v.select in GRASS 7).
>
> v.select requires a spatial index which in turn requires (at least some
basic information stored in) topology. Doing the same >operation without a
spatial index would be much slower. BTW, v.select should be faster in GRASS
7 than in GRASS 6.x, >particularly for larger vectors, because the spatial
index is handled differently in GRASS 7. The same applies for v.what (simple
>vector querying).
ok, this is how grass works, but spatial index isn't strictly associated to
topology. Many other gis systems use indexes but don't require topology
info.
>For direct OGR access however, topology is always built anew on the fly,
whenever that OGR vector is accessed which can take >some time for larger
vectors.
you mean pseudo-topology. I'm sorry, but I need to be clear, otherwise I
make some confusion :)
> Enabling v.select to work without topology would 1) require a near
complete rewrite of the module and 2) make clips slower, at least for native
GRASS vectors.
No problem, this is not what I expect. I just expect a user to be able to
import a polygonal layer, without worrying about topology correctness
(clean/build operations), and do spatial operations on it. Obviously the
correctness of results depend on the operation the user is doing (and it's
his problem) but, i.e. a geometrical clip will be always correct, I think...
> These operations should be quite fast for native vectors with topology.
With "rapidly" I meant: load data, do-the-op, save the results. I'm sure
that the native grass data structures can deal more efficiently then SF
structures.... but often a user prefer to wait a minute more for the
operation to end, then working a minute to have to manage the data cleaness
(more often it takes much more then a minute, and it doesn't worth it!)
> Yes, although not that rapidly because pseudo-topology needs to be built
first. Polygons do not need to be clean, but then nobody can guarantee for
the results.
Ok, but the user just have to wait and wath the progress bar completing...
that's ok from his perspective :)
>> Even with v.external?
>
> Yes.
Ok, so v.external could be ok too.
giovanni
>
> Markus M
>
>
>>
>> 2010/4/19 Markus Metz>
>>>
>>> G. Allegri wrote:
>>>>
>>>> I open a new post on the argument because it's something more general
>>>> that me and my collegues need to unsertstand.
>>>> I've tried to make the point with the various vector structures and
>>>> modes in grass7 and I admit to be a bit confused.
>>>>
>>>> - v.external is meant to read ogr data sources without the
>>>> topoloigcal overhead.
>>>
>>>
>>> By default, pseudo-topology and a spatial index is built for both
v.external and direct OGR access.
>>>
>>>> Questions:
>>>> - what is meant by pseduo-topology?
>>>
>>> Reduced topology: each boundary is attached to one area only, i.e.
smoothing, simplification, removing small areas etc. will not work properly
for adjacent areas or areas within areas.
>>>
>>>>
>>>> - does the 'b' option is referred to pseudo-topology creation? If
>>>> I set it, I cannot see the map and the "zoom to selected map" gives me
>>>> an empty error box...
>>>
>>> ... because the extends of a vector map are stored in topology, also in
pseudo-topology. If topology and thus the extends are not available, "zoom
to selected map" won't work. And yes, the 'b' option refers to
pseudo-topology.
>>>
>>>>
>>>> - direct read/write access creates the same topo structure as native
>>>> access, but it builds it each time I open the data source. Am I wrong?
>>>> Is it too simplicistic my understanding?
>>>
>>> No, it also builds pseudo-topology, not native full topology, this is
only available for native GRASS vectors. Full, correct topology can only be
built after all polygons are cleaned as done by v.in.ogr.
>>>>
>>>> My first concern is about the use of simple features in the grass
>>>> environment, and tha ability to write SF algorithms
>>>
>>> Can you give examples for such SF algorithms/operators? It's not clear
to me what you have in mind.
>>>
>>>>
>>>> that don't require
>>>> topology to be built. This is a requirement in daily work, mostly when
>>>> we deal with unclean polygonal data but the topology is not required
>>>> (ie simple feature operators, etc.).
>>>
>>> GRASS is rather strict about polygonal data. Working with unclean
polygonal data will produce unclean results which is not desired IMHO.
>>>
>>> It seems to me that you are missing some functionality in GRASS, so it
would be great if you could give some examples about what is missing.
>>>
>>> Markus M
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20100419/023ce533/attachment.html
More information about the grass-dev
mailing list