Designing the ShapeEditor

Let's take a closer look at the various parts of the ShapeEditor in order to see what's involved in implementing it. The ShapeEditor is going to support the following activities:

  • Importing geospatial features and attributes from a shapefile
  • Allowing the user to select a feature to be edited
  • Displaying the appropriate type of editor to allow the user to edit the feature's geometry
  • Exporting geospatial features and attributes back to a shapefile

Let's take a closer look at each of these user activities in order to see how they will be implemented within the ShapeEditor system.

Importing a shapefile

When the user imports a shapefile, we will store the contents of that shapefile in the database so that GeoDjango can work with it. ...

Get Python Geospatial Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.