in = shpFiles.getReadChannel(SHP, reader);
try {
in.read(buffer);
buffer.flip();
ShapefileHeader header = new ShapefileHeader();
header.read(buffer, true);
SimpleFeatureType schema = getSchema();
ReferencedEnvelope bounds = new ReferencedEnvelope(
schema.getCoordinateReferenceSystem());
bounds.include(header.minX(), header.minY());
bounds.include(header.minX(), header.minY());
Envelope env = new Envelope(header.minX(), header.maxX(), header.minY(),
header.maxY());
CoordinateReferenceSystem crs = null;
if (schema != null) {
crs = schema.getCoordinateReferenceSystem();
}