Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
close #58 fixing no data field management
Browse files Browse the repository at this point in the history
  • Loading branch information
Damianofds committed Jun 17, 2015
1 parent 01d1766 commit 8ee1d51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/fao/unredd/servlet/LayerAdd.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re
unreddLayer.addNumericAttribute(ModelDomainNames.LAYER_RASTERY1, rasterY1);

// attributes for vector layers: rasterization
if ("vector".equals(layerType))
if ("vector".equalsIgnoreCase(layerType))
{
unreddLayer.addTextAttribute(ModelDomainNames.LAYER_RASTERATTRIBNAME, rasterAttribName); // name of the numeric feature attribute to set in the raster
unreddLayer.addTextAttribute(ModelDomainNames.LAYER_RASTERCQLFILTER, rasterCqlFilter); // optional CQL filter used to filter the features to be reported on the raster
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/layer-edit-form.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
<div class="form-group">
<label class="col-sm-2 control-label" for="xml" title="No-data value for the raster">No-data value</label>
<div class="col-sm-7">
<input type="number" class="form-control" id="<%= UNREDDLayer.Attributes.RASTERNODATA.getName() %>" name="<%= UNREDDLayer.Attributes.RASTERNODATA.getName() %>" value="${layer.data}" />
<input type="number" class="form-control" id="<%= UNREDDLayer.Attributes.RASTERNODATA.getName() %>" name="<%= UNREDDLayer.Attributes.RASTERNODATA.getName() %>" value="${layer.rasterNoData}" />
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-xs btn-info" data-toggle="popover" title="No-data value" data-content="No-data value for the raster">?</button>
Expand Down

0 comments on commit 8ee1d51

Please sign in to comment.