public static Geometry read(Shape shp,double flatness,GeometryFactory geomFact){
  PathIterator pathIt=shp.getPathIterator(INVERT_Y,flatness);
  return ShapeReader.read(pathIt,geomFact);
}

public static Geometry read ( Shape shp , double flatness , GeometryFactory geomFact ) { PathIterator pathIt = shp . getPathIterator ( INVERT_Y , flatness ) ; return ShapeReader . read ( pathIt , geomFact ) ; }
converts a shape to a geometry , flattening it first .
