コード例 #1
0
 /// <summary>
 /// The build DTO.
 /// </summary>
 /// <param name="location">
 /// The location.
 /// </param>
 /// <returns>
 /// The <see cref="LocationDto"/>.
 /// </returns>
 public LocationDto BuildDto(ILocation location)
 {
     return(new LocationDto()
     {
         Key = location.Key,
         Name = location.Name,
         LocationTypeId = location.LocationTypeId,
         Coordinate = _geography.GetStPointText(location.Coordinate),
         Viewport = _geography.GetStLineString(location.Viewport),
         GeocodeStatus = location.GeocodeStatus.ToString(),
         //FieldValues    = location.Fields.SerializeAsJson(),
         UpdateDate = location.UpdateDate,
         CreateDate = location.CreateDate
     });
 }