运行测试用例时,PointField()在GeoDjango中无法正常工作

时间:2019-01-15 16:52:39

标签: django django-models geolocation geodjango pytest-django

错误详细信息:

错误:django.contrib.gis:GDAL_ERROR 10:b“指针'hObject'在'GDALGetDescription'中为NULL。\ n” 错误:django.contrib.gis:GDAL_ERROR 4:b“`POINT(0.0 0.0)'在文件系统中不存在,\ n未被识别为受支持的数据集名称

尝试在Django模型中设置PointField的默认值。

location_coordinates = PointField(默认='POINT(0.0 0.0)')

0 个答案:

没有答案