Not sure I have a good suggestion here. Many systems do a "join" between
shapefile ID and CSV files. You can kind of view the usual shapefile case
as an example of this (a join between shape ID and the companion DBF file).

Lets see if there is any encrypted DBF spec you could implement for the
geotools project.

Looks like it has been provided before:
http://dbase.com/help/Everything_Else/IDH_MISCELS_SET_ENCRYPTION.htm

Your approach sounds good. You will notice that the internals of shapefile
datastore delegate out to several classes to read the individual files. You
would probably extend one of those to read an encrypted file.

One reason SHP and DBF are popular is that they used "fixed length" fields
allowing GeoTools to quickly skip to the right section of the file (and
just parse as much of the file as is needed). Be careful of this if you end
up implementing any kind of total file encryption.

Jody

--
Jody Garnett

On 12 March 2015 at 16:20, Gabriella Turek <gabriella.tu...@niwa.co.nz>
wrote:

> In my project I need to be able to password protect the dbf file in cases
> where our customer does not want the details of assets being shared with
> everyone (location is OK).  I am wondering what the best approach would be
> to handle this. Extend ShapefileDataStore.java and ShpFiles.java to accept
> a password?
> Any any thoughts on this would be greatly appreciated.
> Cheers!
> Gaby
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to