void setCenterPos(GeoPos geoPos) { if (geoPos != null) { centerLatLabel.setText(geoPos.getLatString()); centerLonLabel.setText(geoPos.getLonString()); } else { centerLatLabel.setText(""); centerLonLabel.setText(""); } }
void setCenterPos(GeoPos geoPos) { if (geoPos != null) { centerLatLabel.setText(geoPos.getLatString()); centerLonLabel.setText(geoPos.getLonString()); } else { centerLatLabel.setText(""); centerLonLabel.setText(""); } }
@Override public void mouseMoved(MouseEvent e) { int rowIndex = placemarkTable.rowAtPoint(e.getPoint()); if (rowIndex != _rowIndex) { _rowIndex = rowIndex; if (_rowIndex >= 0 && _rowIndex < placemarkTable.getRowCount()) { GeoPos geoPos = getPlacemarkAt(placemarkTable.convertRowIndexToModel(_rowIndex)).getGeoPos(); if (geoPos != null) { placemarkTable.setToolTipText(geoPos.getLonString() + " / " + geoPos.getLatString()); } } } }
geoPosLabel.setText(String.format("Lat %.5f Lon %.5f", geoPos.getLat(), geoPos.getLon())); } else { geoPosLabel.setText(String.format(GEO_POS_FORMAT, geoPos.getLatString(), geoPos.getLonString()));
final GeoPos pos = geoCoding.getGeoPos(new PixelPos(0.5f * width + 0.5f, 0.5f * height + 0.5f), null); labelCenterLatInfo.setText(pos.getLatString()); labelCenterLonInfo.setText(pos.getLonString()); } else { final PixelPos centerPoint = new PixelPos(centerX + 0.5f, centerY + 0.5f); final GeoPos pos = geoCoding.getGeoPos(centerPoint, null); labelCenterLatInfo.setText(pos.getLatString()); labelCenterLonInfo.setText(pos.getLonString());
final float centerY = 0.5f * _currentProduct.getSceneRasterHeight(); final GeoPos pos = geoCoding.getGeoPos(new PixelPos(centerX + 0.5f, centerY + 0.5f), null); centerValueLatLabel.setText(pos.getLatString()); centerValueLonLabel.setText(pos.getLonString());
private void writeGcpGeoCoding(GcpGeoCoding gcpGeoCoding, String nodeType) { addEmptyRow(); addRow("The " + nodeType + " uses a geo-coding which is based on ground control points (GCPs)."); addEmptyRow(); ProductNodeGroup<Placemark> gcpGroup = getProduct().getGcpGroup(); addRow("Number Of GCPs", String.valueOf(gcpGroup.getNodeCount())); addRow("Function", String.valueOf(gcpGeoCoding.getMethod())); addRow("Datum", String.valueOf(gcpGeoCoding.getDatum().getName())); addRow("Latitude RMSE", String.valueOf(gcpGeoCoding.getRmseLat())); addRow("Longitude RMSE", String.valueOf(gcpGeoCoding.getRmseLon())); addEmptyRow(); addRow("Table of used GCPs"); Placemark[] gcps = gcpGroup.toArray(new Placemark[0]); addRow("Number", "Label", "X", "Y", "Latitude", "Longitude"); for (int i = 0; i < gcps.length; i++) { Placemark gcp = gcps[i]; PixelPos pixelPos = gcp.getPixelPos(); GeoPos geoPos = gcp.getGeoPos(); addRow(String.valueOf(i), gcp.getLabel(), String.valueOf(pixelPos.getX()), String.valueOf(pixelPos.getY()), geoPos.getLatString(), geoPos.getLonString()); } // setFirstColumnWidth(40); }
} else { tgx = geoPos.getLonString(); tgy = geoPos.getLatString();
addRow("Center latitude", gp.getLatString()); addRow("Center longitude", gp.getLonString()); addRow("Upper left latitude", gp.getLatString()); addRow("Upper left longitude", gp.getLonString()); addRow("Upper right latitude", gp.getLatString()); addRow("Upper right longitude", gp.getLonString()); addRow("Lower left latitude", gp.getLatString()); addRow("Lower left longitude", gp.getLonString()); addRow("Lower right latitude", gp.getLatString()); addRow("Lower right longitude", gp.getLonString());