Skip to Content

Shapefiles

  1. >>> from geoscript.layer import Shapefile
  2. >>> macouche = Shapefile('.../montest.shp')
  3. >>> from geoscript.layer import Shapefile
  4. >>> pntGeoms = [f.geom for f in macouche.features()]
  5. >>> pntGeoms
  6. [MULTILINESTRING ((0.0316820276497696 0.6129032258064516, 0.1157834101382488 0.7177419354838709, 0.2217741935483871 0.683179723502304, 0.2839861751152074 0.5656682027649769, 0.3680875576036867 0.6048387096774194, 0.4326036866359447 0.7085253456221199, 0.5293778801843319 0.6071428571428571)), MULTILINESTRING ((0.3162442396313365 0.8940092165898617, 0.2321428571428572 0.8421658986175116, 0.2459677419354839 0.7039170506912441, 0.1756912442396313 0.5794930875576036, 0.2736175115207373 0.4331797235023041))]