comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/CoordinateSelectionState.java @ 461:3ddc22aab764

Removed Encodingerrors from listed Files. All Files are now UTF-8 compliant. ISSUE137 gnv-artifacts/trunk@515 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 08 Jan 2010 14:27:49 +0000
parents e964a3d8f7bc
children b7bb66440cc8
comparison
equal deleted inserted replaced
460:bdbca6022cf5 461:3ddc22aab764
66 Point center = new InputValidator().getPointValue(value); 66 Point center = new InputValidator().getPointValue(value);
67 String meshIDValue = super.inputData.get("meshid").getValue(); 67 String meshIDValue = super.inputData.get("meshid").getValue();
68 int segments = 97; 68 int segments = 97;
69 int meshid = new Integer(meshIDValue); 69 int meshid = new Integer(meshIDValue);
70 if (meshid == 3 || meshid == 5){ // TODO nicht hier festbrennen. 70 if (meshid == 3 || meshid == 5){ // TODO nicht hier festbrennen.
71 distance = 0.15; //nord-ostsee 6nm // 97 Stützpunkte 71 distance = 0.15; //nord-ostsee 6nm // 97 Stützpunkte
72 }else if (meshid == 1 || meshid == 4){ 72 }else if (meshid == 1 || meshid == 4){
73 distance = 0.03; //Kuestenmodell 1 nm 73 distance = 0.03; //Kuestenmodell 1 nm
74 }else if (meshid == 2 || meshid == 321){ 74 }else if (meshid == 2 || meshid == 321){
75 distance = 0.3; //SST Karten ca 20km 75 distance = 0.3; //SST Karten ca 20km
76 }else if (meshid == 641){ 76 }else if (meshid == 641){
100 keyValueDescibeData.setMultiSelect(this.dataMultiSelect); 100 keyValueDescibeData.setMultiSelect(this.dataMultiSelect);
101 String prevKey = null; 101 String prevKey = null;
102 while (rit.hasNext()) { 102 while (rit.hasNext()) {
103 Result resultValue = rit.next(); 103 Result resultValue = rit.next();
104 String key = resultValue.getString(keyid); 104 String key = resultValue.getString(keyid);
105 if(prevKey == null || !prevKey.equals(key)){ // müssen wir so machen, da die sde kein select distinct auf layern zulässt. 105 if(prevKey == null || !prevKey.equals(key)){ // TODO: FIXME: We have to do that because the arcsde does not support a distinct Query on Layers
106 String geomString = this.convert2DisplayCoordinate(resultValue.getString(valueid)); 106 String geomString = this.convert2DisplayCoordinate(resultValue.getString(valueid));
107 String value = geomString; 107 String value = geomString;
108 if (resultValue.getResultDescriptor().getColumnIndex("VALUE") > 0){ 108 if (resultValue.getResultDescriptor().getColumnIndex("VALUE") > 0){
109 value = resultValue.getString("VALUE") + " - "+value; 109 value = resultValue.getString("VALUE") + " - "+value;
110 } 110 }
125 double lon =p.getX(); 125 double lon =p.getX();
126 String nord="N"; 126 String nord="N";
127 String ost="E"; 127 String ost="E";
128 if (lat <0 ){nord="S"; lat=-lat;} 128 if (lat <0 ){nord="S"; lat=-lat;}
129 if (lon <0 ){ost="W"; lon=-lon;} 129 if (lon <0 ){ost="W"; lon=-lon;}
130 formattedCoordinate = String.format("%1$02d°%2$1S %3$05.2f' %4$03d°%5$1S %6$05.2f'", 130 formattedCoordinate = String.format("%1$02d°%2$1S %3$05.2f' %4$03d°%5$1S %6$05.2f'",
131 (int)lat, nord,60.*(lat-((int)lat)),(int)lon,ost,60.*(lon-((int)lon))); 131 (int)lat, nord,60.*(lat-((int)lat)),(int)lon,ost,60.*(lon-((int)lon)));
132 } catch (ParseException e) { 132 } catch (ParseException e) {
133 log.error(e,e); 133 log.error(e,e);
134 } 134 }
135 135

http://dive4elements.wald.intevation.org