public ReprojectingFeatureCollection( SimpleFeatureCollection delegate, CoordinateReferenceSystem source, CoordinateReferenceSystem target) { super(delegate); this.target = target; SimpleFeatureType schema = delegate.getSchema(); this.schema = reType(schema, target); if (source == null) { throw new NullPointerException("source crs"); } if (target == null) { throw new NullPointerException("destination crs"); } this.transform = transform(source, target); transformer = new GeometryCoordinateSequenceTransformer(); }
public ReprojectingFeatureCollection( FeatureCollection delegate, CoordinateReferenceSystem source, CoordinateReferenceSystem target ) { this.delegate = delegate; this.target = target; FeatureType schema = delegate.getSchema(); this.schema = reType(schema, target); FeatureType featureType = delegate.getFeatureType(); this.featureType = reType(featureType, target); if (source == null) { throw new NullPointerException("source crs"); } if ( target == null ) { throw new NullPointerException("destination crs"); } this.transform = transform(source, target); transformer = new GeometryCoordinateSequenceTransformer(); }
public ReprojectingFeatureCollection( SimpleFeatureCollection delegate, CoordinateReferenceSystem source, CoordinateReferenceSystem target) { super(delegate); this.target = target; SimpleFeatureType schema = delegate.getSchema(); this.schema = reType(schema, target); if (source == null) { throw new NullPointerException("source crs"); } if ( target == null ) { throw new NullPointerException("destination crs"); } this.transform = transform(source, target); transformer = new GeometryCoordinateSequenceTransformer(); }