mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-13 04:20:48 -05:00
Merge pull request #46 from faragher/main
Added Windows API for MMAP in Geo.py
This commit is contained in:
commit
54a2764815
1 changed files with 4 additions and 1 deletions
|
|
@ -418,6 +418,9 @@ class GeoidHeight(object):
|
||||||
raise Exception("File has the wrong length")
|
raise Exception("File has the wrong length")
|
||||||
|
|
||||||
self.headerlen = headerlen
|
self.headerlen = headerlen
|
||||||
|
if RNS.vendor.platformutils.is_windows():
|
||||||
|
self.raw = mmap.mmap(fd, fullsize, access=mmap.ACCESS_READ)
|
||||||
|
else:
|
||||||
self.raw = mmap.mmap(fd, fullsize, mmap.MAP_SHARED, mmap.PROT_READ)
|
self.raw = mmap.mmap(fd, fullsize, mmap.MAP_SHARED, mmap.PROT_READ)
|
||||||
|
|
||||||
self.rlonres = self.width / 360.0
|
self.rlonres = self.width / 360.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue