Hi Chris ,
Based on your Idea I have started Impelementing My own FID Mapper Interface.However i find that I dont have any class by Name of JDBC1DataStore.I have a Class Named JDBCDataStore.
I am using 2.1.RC1 version of geotools.
Though i am sure this would work i wanted to know if there are Differences between these two classes which i may have to look into.
Please update me on any information that you have about this guys .
JDBC1DataStore and JDBCDataStore.
Thanks &
Regards.
Satya.
On Tue, 20 Sep 2005 Chris Holmes wrote :
>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
Re: Re: [Geotools-gt2-users] Overriding Feature IDs For PostGisDataStore ?
Satyanarayana Murty Pindiproli Wed, 21 Sep 2005 04:15:51 -0700
- Re: Re: [Geotools-gt2-users] Overriding Fea... Satyanarayana Murty Pindiproli
- Re: Re: [Geotools-gt2-users] Overridin... Chris Holmes
