public static EntityType ToEntityType(this AppType appType, IGeometryFactory geometryFactory) { var polygon = appType.Boundary.ToPolygon(geometryFactory); var entity = new EntityType() { Identity = appType.Identity.Value, Name = appType.Name, Boundary = polygon, }; return(entity); }
public static AppType ToAppType(this EntityType entityType) { var appType = new AppType() { Identity = CatchmentIdentity.From(entityType.Identity), Name = entityType.Name, }; var lngLats = entityType.Boundary.ToLngLats(); appType.Boundary.AddRange(lngLats); return(appType); }