8

I want to create a GeoJSON that contains multiple geometries to be used in QGis later on. Now I red through the specs here: http://geojson.org/geojson-spec.html#geometrycollection

When I simply copy and paste the GeometryCollection example into a file and add it to QGis nothing shows up.

Am I doing something wrong or is it a QGis Bug?

8
  • You cannot mix different geometry types in a QGIS layer (GeometryCollections = collection of different Geometries). In the case of the example, there are 2 layers: a Point layer and a LineString layer
    – gene
    Commented Jul 26, 2015 at 11:13
  • would be totally fine if QGis recognices them as two layers.. Is there a way to do so?
    – Yojimbo
    Commented Jul 26, 2015 at 11:17
  • yes, with Python in the console
    – gene
    Commented Jul 26, 2015 at 11:19
  • related gis.stackexchange.com/questions/30427/…
    – underdark
    Commented Jul 26, 2015 at 11:26
  • Well thinking this way I can also create multiple GeoJSON files instead of a geometry collection. I just thought it is more elegant to use geometry collections instead.
    – Yojimbo
    Commented Jul 26, 2015 at 11:26

0

Your Answer

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

Browse other questions tagged or ask your own question.