public AddressGeometry( GeometryMethod geometryMethod, GeometrySpecification geometrySpecification, ExtendedWkbGeometry geometry) { GeometryMethod = geometryMethod; GeometrySpecification = geometrySpecification; Geometry = geometry; }
private AddressPositionWasCorrected( Guid addressId, GeometryMethod geometryMethod, GeometrySpecification geometrySpecification, string extendedWkbGeometry, ProvenanceData provenance) : this( new AddressId(addressId), new AddressGeometry(geometryMethod, geometrySpecification, new ExtendedWkbGeometry(extendedWkbGeometry.ToByteArray()))) => ((ISetProvenance)this).SetProvenance(provenance.ToProvenance());
public void WhenCrabAddressPositionOrigin( CrabAddressPositionOrigin crabAddressPositionOrigin, GeometryMethod geometryMethod, GeometrySpecification geometrySpecification, AddressId addressId, AddressWasRegistered addressWasRegistered, ImportHouseNumberPositionFromCrab importHouseNumberPositionFromCrab) { importHouseNumberPositionFromCrab = importHouseNumberPositionFromCrab .WithCrabAddressPositionOrigin(crabAddressPositionOrigin); Assert(new Scenario() .Given(addressId, addressWasRegistered) .When(importHouseNumberPositionFromCrab) .Then(addressId, new AddressWasPositioned(addressId, new AddressGeometry(geometryMethod, geometrySpecification, GeometryHelpers.CreateEwkbFrom(importHouseNumberPositionFromCrab.AddressPosition))), importHouseNumberPositionFromCrab.ToLegacyEvent())); }
private string Map(GeometrySpecification geometrySpecification) { switch (geometrySpecification) { case GeometrySpecification.Municipality: return(GeomSpecMunicipality); case GeometrySpecification.Berth: return(GeomSpecBerth); case GeometrySpecification.Building: return(GeomSpecBuilding); case GeometrySpecification.BuildingUnit: return(GeomSpecBuildingUnit); case GeometrySpecification.Entry: return(GeomSpecEntry); case GeometrySpecification.Lot: return(GeomSpecLot); case GeometrySpecification.Parcel: return(GeomSpecParcel); case GeometrySpecification.RoadSegment: return(GeomSpecRoadSegment); case GeometrySpecification.Stand: return(GeomSpecStand); case GeometrySpecification.Street: return(GeomSpecStreet); default: throw new NotImplementedException(); } }