From: <elo...@os...> - 2007-08-30 09:42:12
|
Thank you :) So the namespace is only related to the feature type, but can I then assume that a feature ID uniquely identifies a feature across all feature types? Or just within the feature type of the feature in question? E.g. is feature id = "river:fraser" unique among all feature types, or could there be a book or artist (or whatever) also called "river:fraser"? Regards, Erik Løvlie Jody Garnett wrote: > Sort of... > > The namespace is really only for GML generation - it should not be > part of our feature model but we needed > to ship software so there it is. In the new feature model this kind of > information will be stored with a putClientProperty method. > > So the namespace + typeName go together to describe in a unqiue > fashion the FeatureType (or schema) to which the Feature belongs. > > The FeatureID is supposed to define the feature based on the real > world thing (rather than something silly like > the shapefile row or databse ID key). The OGC Reference Model goes > into details (the Fraser river should > be the Fraser river regardless of what application is working on it > and what information they are tracking on it etc..). > - http://portal.opengeospatial.org/files/?artifact_id=3836 > > In GeoTools it is up to the datastore to provide a "good" Feature ID. > Most of them will pick up on an "ID" column > of Intergers, some of them will make use of all primary keys etc... > > Jody >> Hi everyone, a really basic question this time: >> >> Looking at the documentation and source code for (Default)FeatureType >> and (Default)Feature, it seems that a feature is uniquely identified >> by its namespace (URI) and feature ID, Feature.getNamespace() and >> Feature.getID() respectively. Is this correct? >> >> >> Regards, >> Erik Løvlie >> >> ------------------------------------------------------------------------- >> >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Geotools-gt2-users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > > |