lrs0 = LayersReader('D:/tmp/DEU_adm_shp/DEU_adm4.shp') lrs0.to_centroid('D:/tmp/DEU_adm_shp/DEU_adm4_centroid.shp')