Francesco Mangiacrapa 2019-04-12 09:59:52 +00:00
parent 3a3ecfa66a
commit 9e215c82ae
1 changed files with 11 additions and 3 deletions

View File

@ -172,9 +172,17 @@ public class GeoJsonAreaSelectionDialog extends AreaSelectionDialog{
*/
public static ListBox getGeometries() {
ListBox geometries = new ListBox();
for (GeometryType geometry : GeometryType.values()) {
geometries.addItem(geometry.name(),geometry.name());
}
//see Feature #13074
// for (GeometryType geometry : GeometryType.values()) {
// geometries.addItem(geometry.name(),geometry.name());
// }
geometries.addItem(GeometryType.Point.name(), GeometryType.Point.name());
geometries.addItem(GeometryType.LineString.name(), GeometryType.LineString.name());
geometries.addItem(GeometryType.Triangle.name(), GeometryType.Triangle.name());
geometries.addItem(GeometryType.Square.name(), GeometryType.Square.name());
geometries.addItem(GeometryType.Pentagon.name(), GeometryType.Pentagon.name());
return geometries;
}