public PvShadow(double Az, double eleAng, DotSpatial.Topology.Coordinate pt) { _r = ShadowR(eleAng, pt.Z); _x = pt.X + ShadowE(_r, eleAng, Az); _y = pt.Y + ShadowN(_r, eleAng, Az); _z = ShadowZ(_r, eleAng); _shadowPt = new DotSpatial.Topology.Coordinate(_x, _y, _z); }
internal static DotSpatial.Topology.LineString ToDotSpatialLineString(GeoAPI.Geometries.ILineString l) { DotSpatial.Topology.Coordinate[] c = new DotSpatial.Topology.Coordinate[l.Coordinates.Count()]; for (int i = 0; i < l.Coordinates.Count(); i++) { c[i] = new DotSpatial.Topology.Coordinate(l.Coordinates[i].X, l.Coordinates[i].Y); } return(new DotSpatial.Topology.LineString(c)); }
internal static DotSpatial.Topology.LineString ToDotSpatialLineString(GeoAPI.Geometries.ILineString l) { DotSpatial.Topology.Coordinate[] c = new DotSpatial.Topology.Coordinate[l.Coordinates.Count()]; for (int i = 0; i < l.Coordinates.Count(); i++) { c[i] = new DotSpatial.Topology.Coordinate(l.Coordinates[i].X, l.Coordinates[i].Y); } return new DotSpatial.Topology.LineString(c); }
private static DSCoordinate[] FromCoordinates(Coordinate[] coordinates) { var ret = new DSCoordinate[coordinates.Length]; for (var i = 0; i < coordinates.Length; i++) ret[i] = FromCoordinate(coordinates[i]); return ret; }