Skip to content

Commit

Permalink
Fixes #1282: error importing shapefile with some empty geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto committed Nov 16, 2016
1 parent 52abe37 commit f9fcd46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/client/utils/LayersUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ var LayersUtils = {
if (!feature.id) {
feature.id = idx;
}
if (feature.geometry && feature.geometry.bbox && isNaN(feature.geometry.bbox[0])) {
feature.geometry.bbox = [null, null, null, null];
}
return feature;
})
};
Expand Down

0 comments on commit f9fcd46

Please sign in to comment.