Hello Travis
Thanks for this work! I had a quick look at the code on GitHub, and I
would like to do the following suggestions:
*
About the test data, the ANC90Ply_4326.dbf files could easily be
committed on SVN since it is only 19 kb. However the other test
files (SignedBikeRoute_4326 and ABRALicenseePt_4326) are 2.4 and 3.1
Mb big. We have not yet established a mechanism for such large test
files. We may need to setup some FTP server for large test files,
and design the tests in such a way that those tests are optional.
Maybe for now it would be better to commit only ANC90Ply_4326.dbf...
*
The ShapeFile class uses java.io.RandomAccessFile for reading data,
followed by calls to org.apache.commons.io.EndianUtils for
converting bytes to double (or other primitive types) while taking
endianness in account. Would it be possible to use
java.nio.channels.ReadableChannel with java.nio.ByteBuffer instead?
It would take care of the above for you, potentially much more
efficiently.
Thanks again!
Martin
Le 03/06/13 01:47, Travis L Pinney a écrit :
Hello everyone,
I started working on a very rough prototype that can read in Shapefiles.
https://github.com/tlpinney/shapefile-api
In order to write a patch to submit, where would this component reside in
the Apache SIS project?
Thanks,
Travis