Skip to content
Discussion options

You must be logged in to vote

You could use either approach above but would not recommend trying to mix geometry types, probably depends on your use case which you choose.

  • If you used GeometryType.polygon it would be one polygon for each part of a country (e.g. the USA would be a record for Lower 48, a record for Hawaii (each island), a record for Alaska, ... and so on).
  • If you used GeometryType.multi_polygon then each record you insert needs to be a MultiPolygon, even is there is just one polygon you'd still make it a MultiPolygon (look at test_multi_polygon for an example of creating a MultiPolygon)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CF-FHB-X
Comment options

Answer selected by jlhumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants