Skip to content
This repository has been archived by the owner on Jul 2, 2019. It is now read-only.

coreLabelTools.py function createRasterFromGDF: make np.zeroes instead of np.empty #92

Open
asaic opened this issue Nov 25, 2018 · 0 comments
Labels
Status: Examination Needed Needs examination by a repository maintainer. Status: Unassigned

Comments

@asaic
Copy link

asaic commented Nov 25, 2018

coreLabelTools.py function createRasterFromGDF currently does this for an empty geojson (=no buildings):

burned = np.empty(rst.shape, dtype='uint8')

This gives a somewhat random array depending on what was in memory.
But if I understand correctly, what we want is an array with all zeroes:

burned = np.zeros(rst.shape, dtype='uint8')

@nrweir nrweir added Status: Unassigned Status: Examination Needed Needs examination by a repository maintainer. labels Nov 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Status: Examination Needed Needs examination by a repository maintainer. Status: Unassigned
Projects
None yet
Development

No branches or pull requests

2 participants