2

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

11

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 '18 at 13:31
  • look at the first answer – Christophe Jul 9 '18 at 14:23
  • 2
    For example GML, OpenJUMP JML, MapInfo TAB, SpatiaLite, GeoPackage, GeoJSON... – user30184 Jul 9 '18 at 14:34
6

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)

  • 2
    I second this... try out the geopackage... – DPSSpatial Jul 9 '18 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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