瀏覽代碼

Fixed LayerMapping encoding in geodjango tutorial.

GDAL >= 1.9 automatically converts latin-1-encoded strings from Shapefiles to
UTF-8.
Claude Paroz 6 年之前
父節點
當前提交
388165ade4
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      docs/ref/contrib/gis/tutorial.txt

+ 1 - 4
docs/ref/contrib/gis/tutorial.txt

@@ -457,10 +457,7 @@ with the following code::
     )
 
     def run(verbose=True):
-        lm = LayerMapping(
-            WorldBorder, world_shp, world_mapping,
-            transform=False, encoding='iso-8859-1',
-        )
+        lm = LayerMapping(WorldBorder, world_shp, world_mapping, transform=False)
         lm.save(strict=True, verbose=verbose)
 
 A few notes about what's going on: