Hi, fellow GIS persons,
I'm trying to create a polyline from points passed in the Lambert coordinate spatialReference(102017) and coordinate wgs 1984. One point in the pole, so I used coordinate Lambert spatialReference(102017), another point in the Toronto, so I used spatialReference::wgs(). But I can't use PolylineBuilder, it can only specify a coordinate system.
Here is the code.
Esri::ArcGISRuntime::Geometry Display_map_lambert::createPolyline(){
const SpatialReference spatialRefer_wgs(4326);
const SpatialReference spatialRefer_lambert(102017);
SimpleLineSymbol* lineSymbol = new SimpleLineSymbol(SimpleLineSymbolStyle::Solid, QColor("red"), 1.5f/*width*/, this);
PolylineBuilder polylineBuilder(spatialRefer_wgs);
// create point of lines
Point northPole(-111.8374, 77.5621, spatialRefer_lambert);
Point Toronto(-87.6828, 41.8379);
polylineBuilder.addPoint(northPole);
polylineBuilder.addPoint(Toronto);
return polylineBuilder.toGeometry();