Skip to content

Commit 9041403

Browse files
remove the additional "1" in the label
1 parent a7574ca commit 9041403

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

BExIS.Pmm.Model/Plotchart.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,18 +519,19 @@ private SharpMap.Map InitializeMap(Size outputsize, Plot plot, int zoom = 1, boo
519519
plotLayer.DataSource = new SharpMap.Data.Providers.GeometryProvider(geometries);
520520

521521
//newRow["Label"] = Math.Round((plotLayer.Envelope.MaxX - (Convert.ToDouble(plot.Longitude))) * 67000) + "," + Math.Round((plotLayer.Envelope.MaxY - (Convert.ToDouble(plot.Latitude))) * 108800) + "\t \n";
522+
522523
if(geometry.GeometryType.Equals("rectangle"))
523524
{
524525
string[] xy = geometry.Coordinate.Split(',');
525-
newRow["Label"] = xy[2] + "," + xy[3] + "1";
526+
newRow["Label"] = xy[2] + "," + xy[3];
526527
}
527528

528529
if (geometry.GeometryType.Equals("polygon"))
529530
{
530531
string[] tmpXY = geometry.Coordinate.Split(new[] { "),(" }, StringSplitOptions.None);
531532
string[] x = tmpXY[0].Split(',');
532533
string[] y = tmpXY[1].Split(',');
533-
newRow["Label"] = x[2] + "," + y[2] + "1";
534+
newRow["Label"] = x[2] + "," + y[2];
534535
}
535536
if (geometry.GeometryType.Equals("linestring"))
536537
{

0 commit comments

Comments
 (0)