if (coordElements != null && coordElements.length == 2){ // split by comma ( COORD1X,COORD1Y )
try{
double x = Double.parseDouble(coordElements[0]);
double y = Double.parseDouble(coordElements[1]);
network.lanes.get(sumoLaneId).points.add(new PointImpl(x,y));
}catch(NumberFormatException e){
}
}
}
}else if (currentElementType == OFFSET){ // read offset. i.e: <net-offset>-755969.000000,-5660071.000000</net-offset>
char[] chars = new char[length]; // copy stuff from sax buffer
for (int i = 0; i<length; i++){
chars[i] = ch[start+i];
}
String data = new String(chars);
String[] vectorElements = data.split(",");
if (vectorElements.length==2){
network.offset = new PointImpl(Double.parseDouble(vectorElements[0]),Double.parseDouble(vectorElements[1]));
}
}else if (currentElementType == PROJ){ // read projection string. i.e: <orig-proj>+proj=utm +ellps=bessel +units=m</orig-proj>
char[] chars = new char[length]; // copy stuff from sax buffer
for (int i = 0; i<length; i++){
chars[i] = ch[start+i];