mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed LayerMapping encoding in geodjango tutorial.
GDAL >= 1.9 automatically converts latin-1-encoded strings from Shapefiles to UTF-8.
This commit is contained in:
parent
ee184e13cb
commit
388165ade4
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue