public LocationForecasts(SolradNwpForecast forecast)
        {
            var coordinateFactory = new CoordinateFactory(forecast.Srid);

            Location = coordinateFactory.CreatePoint(forecast.Latitude, forecast.Longitude);

            Latitude  = forecast.Latitude;
            Longitude = forecast.Longitude;
            Srid      = forecast.Srid;
            Created   = forecast.Created;
            Modified  = forecast.Modified;
            Forecasts = forecast.Forecasts.Select(f => new DbSolradForecast(this, f)).ToList();
        }
Ejemplo n.º 2
0
 public GeoLocator(SolarRadiationDataContext dataContext, uint srid = 0)
 {
     _dataContext       = dataContext ?? throw new ArgumentNullException(nameof(dataContext));
     _coordinateFactory = new CoordinateFactory(srid);
 }