进一步改进和增强#
Further improvements and enhancements
正如任何新应用程序一样,ShapeEditor 有许多可以改进的地方。例如:
添加用户注册和登录功能,以便每个用户都有自己私有的 shapefile 集,而不是每个用户都能看到所有上传的 shapefile 列表。
添加编辑功能属性值的能力。
使用更高分辨率的底图。一个明显的候选者是 GSHHS 高分辨率海岸线数据库。
为我们的 TMS 服务器添加一个瓦片缓存。
使用 JavaScript 在导入或导出 shapefile 时添加一个**请稍候**弹出消息。
改善 ShapeEditor 代码库的可重用性。我们专注于学习如何使用 GeoDjango 构建一个工作系统,但通过适当的重新设计,代码可以变得更加通用,以便可以在其他应用程序中使用。
可以随意进行这些改进;你会学到更多关于 GeoDjango 和地理空间开发的知识。在使用 ShapeEditor 时,你可能会想到一些你想改进的东西。
As with any new application, there are a number of ways in which the ShapeEditor could be improved. For example:
Adding user signup and login, so that each user has his or her own private set of shapefiles, rather than every user seeing the entire list of all the uploaded shapefiles.
Adding the ability to edit a feature’s attribute values.
Using a higher resolution base map. An obvious candidate for this would be the GSHHS high-resolution shoreline database.
Adding a tile cache for our TMS server.
Using JavaScript to add a please wait pop-up message while a shapefile is being imported or exported.
Improving the reusability of the ShapeEditor’s codebase. We’ve concentrated on learning how to use GeoDjango to build a working system, but with a suitable redesign the code could be made much more generic so that it could be used in other applications as well.
Feel free to make these improvements; you will learn a lot more about GeoDjango, and about geospatial development in general. As you work with the ShapeEditor, you’ll probably come up with your own list of things you’d like to improve.