private SimpleFeatureType createFeatureType() { final List<AttributeDescriptor> attributeDescriptors = new ArrayList<>(); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DETECTED_X, Integer.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DETECTED_Y, Integer.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DETECTED_LAT, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DETECTED_LON, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DETECTED_WIDTH, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DETECTED_LENGTH, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_STYLE_CSS, String.class)); return VectorUtils.createFeatureType(targetProduct.getSceneGeoCoding(), VECTOR_NODE_NAME, attributeDescriptors); }
@Override public void itemStateChanged(ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { final AttributeDialog dlg = new AttributeDialog("Labels from Attribute", VectorUtils.getAttributesList(sourceProducts), null); dlg.show(); if (dlg.IsOK()) { labelSourceAttribute.setText(dlg.getValue()); } } } });
private SimpleFeatureType createFeatureType() { final List<AttributeDescriptor> attributeDescriptors = new ArrayList<>(); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_SPEED, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_HEADING, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DX, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DY, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_RATIO, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_STYLE_CSS, String.class)); return VectorUtils.createFeatureType(targetProduct.getSceneGeoCoding(), VECTOR_NODE_NAME, attributeDescriptors); }
private SimpleFeatureType createFeatureType() { final List<AttributeDescriptor> attributeDescriptors = new ArrayList<>(); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_MST_LAT, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_MST_LON, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_SLV_LAT, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_SLV_LON, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_DISTANCE, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_VELOCITY, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_HEADING, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_RANGE_SHIFT, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_AZIMUTH_SHIFT, Double.class)); attributeDescriptors.add(VectorUtils.createAttribute(ATTRIB_STYLE_CSS, String.class)); return VectorUtils.createFeatureType(targetProduct.getSceneGeoCoding(), VECTOR_NODE_NAME, attributeDescriptors); }
private SimpleFeatureType createWindSimpleFeatureType(final Product product, final String componentName, // osw or owi final List<Band> windBands) { Map<String, String> map = componentName.equals("osw") ? oswWindBandNameShpFieldNameMap : owiWindBandNameShpFieldNameMap; final List<AttributeDescriptor> attributeDescriptors = new ArrayList<>(); Band[] bands = product.getBands(); for (Band band : bands) { for (String s : map.keySet()) if (band.getName().contains(s)) { final String attributeName = map.get(s); attributeDescriptors.add(VectorUtils.createAttribute(attributeName, Double.class)); windBands.add(band); bandToAttributeName.put(band, attributeName); } } return VectorUtils.createFeatureType(product.getSceneGeoCoding(), componentName + " " + WIND_VECTOR_DATA_NODE_NAME, attributeDescriptors); }