Questions tagged [polyline]

Polyline in computer graphics is a continuous line composed of one or more line segments.

Polyline in computer graphics is a continuous line composed of one or more line segments. You can create a polyline by specifying the endpoints of each segment.

1062 questions
4
votes
1 answer

Displaying a polyline(with some height) in Cesium

Can someone please tell me what's wrong with this piece of code? Cesium.Math.setRandomNumberSeed(1234); var viewer = new Cesium.Viewer('cesiumContainer'); var entities = viewer.entities; var boxes = entities.add(new…
Mushu
  • 41
  • 1
  • 6
4
votes
0 answers

animated journey using mapkit polyline

Good morning, I have an app with a search list showing the trips. After selectina one of it I need to show the trip viewing on the map a little car following all coordinates related for every GPS points I have in my trip's database for that…
4
votes
1 answer

iOS MapKit connect multiple points on map over roads

I'm using this code to connect pins(points on map) with polyline: CLLocationCoordinate2D coordinates[allLocations.count]; int i = 0; for (locHolder *location in allLocations) { coordinates[i] =…
user2570174
  • 601
  • 1
  • 6
  • 9
4
votes
2 answers

Why the Path and Polyline have different renderings in WPF?

Why the Path and Polyline have different renderings in WPF? This is happening both in code and blend, maybe a I missing something or this is just a anti aliasing effect.
bmustata
  • 597
  • 9
  • 19
4
votes
2 answers

An algorithm for inflating/deflating (offsetting, buffering) polylines

Related Question: An algorithm for inflating/deflating (offsetting, buffering) polygons The difference is that I'm searching for a way to inflate a given polyline into a polygon: I've got the following input: List of 2D Points which form the…
MOnsDaR
  • 8,401
  • 8
  • 49
  • 70
4
votes
2 answers

WPF Polyline relative point values and stretch for drawing a graph

I'm trying to create a pretty simple graphing component that consists of a series of Polylines within the same grid cell that represent graph lines. My strategy is to look at all the points in my set, determine the min and max, and then calculate a…
Derek
  • 897
  • 1
  • 10
  • 12
4
votes
1 answer

Smoothing GPS tracked route-coordinates

I have some data of coordinates that I recorded. Unfortunatelly they seem to be not realy good. They jump sometimes over the map. So now I´m searching for some flattening or filtering algorithm that would make the route look more…
Luke
  • 8,235
  • 3
  • 22
  • 36
4
votes
2 answers

Check user is following the route or not (iphone)

i am making an navigation based application. In this application i am drawing a route from points selected by the user. I have requirement of recalculating route if user is not following the route. for Calculating the route i have used Google…
Nirav Gadhiya
  • 6,342
  • 2
  • 37
  • 76
4
votes
2 answers

Draw more than one group of lines in MKMapView using MKPolyline

I'm using this code to draw one group of lines: CLLocationCoordinate2D points[[routes count]]; for(int i = 0; i < self.routes.count; i++) { CLLocation* location = [self.routes objectAtIndex:i]; points[i] =…
Alejandro L.
  • 1,066
  • 5
  • 17
  • 38
4
votes
1 answer

google maps circle to polyline coordinate array

how to get array of polyline coordinates from google.maps.Circle's object there is no api doc entry about that
Nick Sanders
  • 693
  • 2
  • 9
  • 19
4
votes
4 answers

Smooth polyline with minimal deformation

I've got a 2D closed polyline, which is reasonably smooth. The vertices that define the polyline however are not spaced equally. Sometimes two will be very close, sometimes as many as four will be very close together. I'd like to smooth the…
David Rutten
  • 4,716
  • 6
  • 43
  • 72
4
votes
1 answer

google.maps.Polyline - how to get a transparent / invisible polyline?

I have the following code for a route where an animation goes on, so i need the polyline but i don't want to show it: [..] this.polyline = new google.maps.Polyline({ path: [], strokeColor: '#ffffff', …
Zeussi
  • 571
  • 1
  • 9
  • 22
4
votes
2 answers

How to move all coordinate from a WPF PolyLine object?

I have a graphic made dynamically with a polyline object. It produces something interesting but I would like to keep only the last 10 coordinates and once we have reach the 10th position, every coordinate would move to the left by X pixel and the…
Patrick Desjardins
  • 136,852
  • 88
  • 292
  • 341
4
votes
2 answers

How to convert a text string into a set of polylines in iOS?

I have a string e.g. "Hello world" and a font name e.g. "Courier". I need to get an array of polylines that represent this string. These polylines will be rendered in OpenGL scene. I mean I need to convert each letter into one or more 2D polylines.…
Dmitriy
  • 5,357
  • 8
  • 45
  • 57
3
votes
5 answers

How to convert to Google encoded polyline algorithm format?

The encoded polyline format for Google maps stores lat/lon information as well as zoom levels. I have a huge text file with lat/lon pairs that i want to convert to this format and for different sections of polylines (i.e. i need to perform a batch…
user2760
  • 2,273
  • 7
  • 25
  • 34