Skip to content
Snippets Groups Projects
Commit c2aaecde authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

fixed site for sparse margin data

parent 886081f0
No related branches found
No related tags found
1 merge request!272Site and NGA-East edits
......@@ -87,7 +87,8 @@ public class SiteData {
}
for (Margin margin : margins) {
Location snapped = snapToGrid(location, margin.spacing, margin.scale);
if (margin.contains(snapped)) {
// check map because margin data is sparse within polygon
if (margin.contains(snapped) && margin.data.containsKey(snapped)) {
builder.marginValues(margin.data.get(snapped));
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment