mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-01 18:06:48 -04:00
Updated MMAP API for Windows
This commit is contained in:
parent
81c51d004b
commit
daa395cb8a
1 changed files with 4 additions and 1 deletions
|
@ -418,7 +418,10 @@ class GeoidHeight(object):
|
||||||
raise Exception("File has the wrong length")
|
raise Exception("File has the wrong length")
|
||||||
|
|
||||||
self.headerlen = headerlen
|
self.headerlen = headerlen
|
||||||
self.raw = mmap.mmap(fd, fullsize, mmap.MAP_SHARED, mmap.PROT_READ)
|
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.rlonres = self.width / 360.0
|
self.rlonres = self.width / 360.0
|
||||||
self.rlatres = (self.height - 1) / 180.0
|
self.rlatres = (self.height - 1) / 180.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue