Susan Harkins (398) [Avatar] Offline
#1
Please post errors found in the published version of Geoprocessing with Python here. We'll publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
Manning Publications
557743 (2) [Avatar] Offline
#2
I am running Chapter5.py and get the following errors:

ERROR 1: "Asia" not recognised as an available field.
ERROR 1: "South America" not recognised as an available field.
ERROR 1: "Germany" not recognised as an available field.

These occur whenever SetAttributeFilter is called, for example:
lyr.SetAttributeFilter('continent = "Asia"')

Has SetAttributeFilter changed?
Gorky (12) [Avatar] Offline
#3
page 50

pb.print_attributes(fn,3, geom=False) throws an error:

Traceback (most recent call last):
File "D:\GEOPROCESSING\Chapter3\chapter3.py", line 94, in <module>
pb.print_attributes(fn, 3, geom=False)
File "C:\Users\Kurt\AppData\Local\Programs\Python\Python36\lib\site-packages\ospybook\__init__.py", line 132, in print_attributes
print(format_str.format(*row))
TypeError: unsupported format string passed to NoneType.__format__

python 3.6 64 bit on windows