String simplifiedPointsName = "simplifiedPoints";
String simplifiedPointsTypeSpec = "sp:String,pp:Point:srid=4326";
SimpleFeatureType simplifiedPointsType = DataUtilities.createType(pointsNs,
simplifiedPointsName, simplifiedPointsTypeSpec);
Feature simplifiedPoints1 = feature(simplifiedPointsType,
((SimpleFeature) points1).getID(), ((SimpleFeature) points1).getAttribute(0),
((SimpleFeature) points1).getAttribute(2));
Feature simplifiedPoints2 = feature(simplifiedPointsType,
((SimpleFeature) points2).getID(), ((SimpleFeature) points2).getAttribute(0),
((SimpleFeature) points2).getAttribute(2));
Feature simplifiedPoints3 = feature(simplifiedPointsType,
((SimpleFeature) points3).getID(), ((SimpleFeature) points3).getAttribute(0),
((SimpleFeature) points3).getAttribute(2));
Feature[] simplifiedPoints = new Feature[] { simplifiedPoints1, simplifiedPoints2,
simplifiedPoints3 };