public qGis_Rectangle(double nw_long, double nw_lat, double se_long, double se_lat) { NorthWest = new qGis_Point(nw_long, nw_lat); SouthEast = new qGis_Point(se_long, se_lat); SouthWest = new qGis_Point(nw_long, se_lat); NorthEast = new qGis_Point(se_long, nw_lat); }
private void LoadPointsFromGeographyObject() { if (geography.Value == null) { return; } int points_count = geography.Value.STNumPoints().Value; Points = new qGis_Point[points_count]; for (int i = 1; i <= points_count; i++) { SqlGeography sql_point = geography.Value.STPointN(i); qGis_Point point = new qGis_Point(sql_point.Long.Value, sql_point.Lat.Value); Points[i - 1] = point; } }
private void LoadPointsFromGeographyObject() { if (geography.Value == null) return; int points_count = geography.Value.STNumPoints().Value; Points = new qGis_Point[points_count]; for (int i = 1; i <= points_count; i++) { SqlGeography sql_point = geography.Value.STPointN(i); qGis_Point point = new qGis_Point (sql_point.Long.Value, sql_point.Lat.Value); Points[i - 1] = point; } }
public qGis_Cluster(double longitude, double latitude) : this() { Location = new qGis_Point(longitude, latitude); }