The quick answer is that you use an FIDMapper - see http://svn.geotools.org/geotools/branches/2.1.x/module/main/src/org/geotools/data/jdbc/fidmapper/ We're not yet at the level where users can specify which mapper they want to use, but if you're a developer it's not that hard, you just write an FID mapper, and then have your subclass override the buildFIDMapperFactory/getFIDMapper methods (just buildFIDMapperFactory may do it, I'm not quite sure) in http://svn.geotools.org/geotools/branches/2.1.x/module/main/src/org/geotools/data/jdbc/JDBC1DataStore.java, which postgis and oracle descend from (so that I think you don't see those methods in the children, but they are there to be overridden).
Chris On 20 Sep 2005, Satyanarayana Murty Pindiproli wrote: > > Hi All, > Have been Using geo-tools for developing A Mapping Engine. > I have been Able to override the Feature Id's generated by the > ShapeFileDataStore by overriding the createFeatureTypeName() method in the > Interface.I would Now like to extend this to other Databases like > PostgisDataStore and OracleDataStore.I want to know how i can create my own > FeatureIds in these DataStores.If AnyOne has Done this or knows please let me > know. > I have refered to the Documentation and Found the DataSource is being made > obsolete and being removed from the Further versions and DataStore is coming > into Picture.Hence I cannot use the createFeatureId() method in the > PostgisDataSourceto keep in sync with the future versions of the geotools . > > I havent been Able to see any methods which i can override for Creating My > own FeatureIds for these Data Formats in the DataStore Architecture.Please > let me know of anyone has any idea how i can acheive this.I just want the > Feature IDs to be generated with a string of my choice and not the Default > table-name or typename as is currently generated. > > Thanks in Advance , > Regards, > Satya. > -- ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
