I am trying to create a polyline of 3D points. So the coordinates have a z-value.
But at the end the first point of the created polyline has a z-value of 0.0 and not the specified value. What's wrong in my code?
[PHP]
private void createPolyline(){
Polyline polyLine = new Polyline();
Point p1 = new Point(1413500.0, 6022400.0, 234.0);
Point p2 = new Point(1413600.0, 6022600.0, 243.0);
Point p3 = new Point(1413800.0, 6022700.0, 257.0);
polyLine.startPath(p1);
polyLine.lineTo(p2);
polyLine.lineTo(p3);
MultiPath path = (MultiPath)polyLine;
for(int i = 0; i < polyLine.getPointCount(); i++){
Point point = path.getPoint(i);
double x = point.getX();
double y = point.getY();
double z = point.getZ();
Log.i(TAG, "Point " + i + "=> Coords x: " + x + ",y: " + y + ",z: " + z);
}
}
[/PHP]