Is it possible to save points and multiline strings within the same shapefile? If so, how?

2 Answers 2


No, Shapefiles contains a single geometry type. (see the Shapefile specs, p4)

  • Thanks. Is there another file format that allows you to save points and lines within the same vector?
    – csft306
    Jul 9, 2018 at 13:31
  • look at the first answer Jul 9, 2018 at 14:23
  • 2
    For example GML, OpenJUMP JML, MapInfo TAB, SpatiaLite, GeoPackage, GeoJSON...
    – user30184
    Jul 9, 2018 at 14:34

As said in other answer you can't have different geometry in the same shapefile.

Some format will allow you to mix geometry but it is considered bad practice (some software wont open file with mixed geometry, geotraitement expect a single geometrie type per entry...)

If you want a single file to hold different vector type have a look at geopackage or sqlite (answer to this question for more info on these two format)


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.