POST
|
Its only the first point in the polyline which has a zero Z value after creating the polyline. All the others have the correct z value as I set at the beginning. I am using the startPath(Point point) and the Point has a constructor with x, y and z values. So it should work. Also I am using the lineTo(Point point) with 3D points and this works! All the other points except the first one have correct z values. So if lineTo(Point point) works correct with 3D Points, why is startPoint(Point point) not working with 3D points? That makes no sense for me.
... View more
04-22-2013
12:44 AM
|
0
|
0
|
226
|
POST
|
To make that more clear: The first point I add to the polyline has the coordinates: X: 1413500.0 Y: 6022400.0 Z: 234.0 But when I get this point back from the created polyline it has a z-Value of 0.0: X: 1413500.0 Y: 6022400.0 Z: 0.0 Is that a bug?
... View more
04-18-2013
12:37 AM
|
0
|
0
|
226
|
POST
|
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]
... View more
04-17-2013
05:45 AM
|
0
|
3
|
506
|
POST
|
This has changed. Now you first have to get the ids of the graphics: int[] ids = fLayer.getGraphicIds(x, y, 10); And than get the graphic by the id: Graphic graphic = fLayer.getGraphic(ids[0]);
... View more
04-12-2012
06:12 AM
|
0
|
0
|
287
|
Online Status |
Offline
|
Date Last Visited |
09-12-2021
12:48 PM
|