You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2021-06-14 14:38:04
- hynx
- Member
- Registered: 2012-06-24
- Posts: 21
Problem running phyghtmap with a polygon shapefile
Hi,
I am trying to run phyghtmap (http://katze.tfiu.de/projects/phyghtmap/) with a shp polygon as input but the following error is returned:
traceback (most recent call last):
File "/usr/bin/phyghtmap", line 33, in <module>
sys.exit(load_entry_point('phyghtmap==2.23', 'console_scripts', 'phyghtmap')())
File "/usr/lib/python3/dist-packages/phyghtmap/main.py", line 659, in main
opts, args = parseCommandLine()
File "/usr/lib/python3/dist-packages/phyghtmap/main.py", line 326, in parseCommandLine
opts.area, opts.polygon = hgt.parsePolygon(opts.polygon)
File "/usr/lib/python3/dist-packages/phyghtmap/hgt.py", line 54, in parsePolygon
open(filename).read().split("\n") if line.strip()]
File "/usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 27: invalid start byte
Running it with a bounding box works fine. The shp file works also fine with other tools.
Does phyghtmap require a special kind of shp file?
Regards,
Offline