[NAS] [Fwd: Re: PostNAS - next steps]
Olaf Knopp
olaf.knopp at wheregroup.com
Fre Jun 12 04:37:28 EDT 2009
Hallo Liste,
hier eine Mail von Frank Warmerdam bezüglich der Erstimplementierung der
Beziehungen.
Diese Version wurde in die FWTools eingebaut.
Wir haben erste Tests durchgeführt und es scheint zu klappen.
Es wäre aber gut, wenn noch weitere Tests durchgeführt werden und wir
noch ein paar Rückmeldungen bekämen.
Viel Spaß damit ;-)
Grüße
Olaf Knopp
-------- Original-Nachricht --------
Olaf Knopp wrote:
> In this example "<dientZurDarstellungVon
> xlink:href="urn:adv:oid:DE_00000000000Ds"/> " is the relelation. (It
> means "is used for presentation".)
> I would suggest to create a new table ALKIS_beziehungen
> ("alkis_relations") with 3 fields:
> - beziehung_von (in this case "DE_0004082050575")
> - beziehungsart (in this case "dientZurDarstellungVon")
> - beziehung_zu (in this case "DE_00000000000Ds")
Olaf,
Based on Arnulf's go ahead, I have implemented support for this. The first
feature (or feature count) request on the ALKIS_beziehungen layer will cause
a scan of the whole NAS file to collect all the relations. The relations
are identified as xlink:href attributes on attribute elements where the
value portion is prefixed by "urn:adv:oid:".
In the case of a simple file with one feature with two relations the result
of querying the relation table looks like this:
N:\data\nas>ogrinfo flurst_zuhak.xml ALKIS_beziehungen
ogrinfo flurst_zuhak.xml ALKIS_beziehungen
Had to open data source read-only.
INFO: Open of `flurst_zuhak.xml'
using driver `NAS' successful.
Layer name: ALKIS_beziehungen
Geometry: None
Feature Count: 2
Layer SRS WKT:
(unknown)
beziehung_von: String (0.0)
beziehungsart: String (0.0)
beziehung_zu: String (0.0)
OGRFeature(ALKIS_beziehungen):0
beziehung_von (String) = DENW17AL0000Yj00
beziehungsart (String) = istGebucht
beziehung_zu (String) = DENW17AL0000ZjIN
OGRFeature(ALKIS_beziehungen):1
beziehung_von (String) = DENW17AL0000Yj00
beziehungsart (String) = weistAuf
beziehung_zu (String) = DENW17AL0000ZEGw
I have built this into a new FWTools release.
http://home.gdal.org/fwtools/FWTools240.exe
I would appreciate your giving it a try and letting me know if it
accomplishes what you were hoping for.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
--
_______________________________________
WhereGroup GmbH & Co. KG
Siemensstraße 8
53121 Bonn
Germany
Olaf Knopp
Geschäftsführer
Fon: +49 (0)228 / 90 90 38 - 27
Fax: +49 (0)228 / 90 90 38 - 11
olaf.knopp at wheregroup.com
http://www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________