Kaydet (Commit) 388165ad authored tarafından Claude Paroz's avatar Claude Paroz

Fixed LayerMapping encoding in geodjango tutorial.

GDAL >= 1.9 automatically converts latin-1-encoded strings from Shapefiles to
UTF-8.
üst ee184e13
...@@ -457,10 +457,7 @@ with the following code:: ...@@ -457,10 +457,7 @@ with the following code::
) )
def run(verbose=True): def run(verbose=True):
lm = LayerMapping( lm = LayerMapping(WorldBorder, world_shp, world_mapping, transform=False)
WorldBorder, world_shp, world_mapping,
transform=False, encoding='iso-8859-1',
)
lm.save(strict=True, verbose=verbose) lm.save(strict=True, verbose=verbose)
A few notes about what's going on: A few notes about what's going on:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment