Skip to content

Commit

Permalink
Fixes #1282: error importing shapefile with some empty geometries (#1282
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mbarto authored Nov 16, 2016
1 parent cd6ed32 commit c004980
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 c004980

Please sign in to comment.