I'having trouble using writeOGR to write GeoJSON files, when there are MultiPolygon objects. Here is an example: I'm creating a SpatialPolygonsDataFrame object from GeoJSON, with a single feature made of two polygons. When I export to GeoJSON, the file that's written has a single feature with one polygon and a hole.
Why is this, and how can I persuade writeOGR to write two polygons?
# Create SpatialPolygonsDataFrame with one feature, two polygonsspdf
Why is this, and how can I persuade writeOGR to write two polygons?
# Create SpatialPolygonsDataFrame with one feature, two polygonsspdf