예제 #1
0
        public static Point GetAddressPoint(byte[] point)
        {
            var geometry = WKBReaderFactory.Create().Read(point);

            return(new Point
            {
                XmlPoint = new GmlPoint {
                    Pos = $"{geometry.Coordinate.X.ToPointGeometryCoordinateValueFormat()} {geometry.Coordinate.Y.ToPointGeometryCoordinateValueFormat()}"
                },
                JsonPoint = new GeoJSONPoint {
                    Coordinates = new[] { geometry.Coordinate.X, geometry.Coordinate.Y }
                }
            });
        }
예제 #2
0
 private void RegisterLegacyProjections(ContainerBuilder builder)
 {
     builder
     .RegisterModule(
         new LegacyModule(
             _configuration,
             _services,
             _loggerFactory));
     builder
     .RegisterProjectionMigrator <LegacyContextMigrationFactory>(
         _configuration,
         _loggerFactory)
     .RegisterProjections <AddressDetailProjections, LegacyContext>(
         () => new AddressDetailProjections(WKBReaderFactory.Create()),
         ConnectedProjectionSettings.Default)
     .RegisterProjections <AddressListProjections, LegacyContext>(ConnectedProjectionSettings.Default)
     .RegisterProjections <AddressSyndicationProjections, LegacyContext>(
         () => new AddressSyndicationProjections(),
         ConnectedProjectionSettings.Default)
     .RegisterProjections <AddressVersionProjections, LegacyContext>(
         () => new AddressVersionProjections(),
         ConnectedProjectionSettings.Default)
     .RegisterProjections <CrabIdToPersistentLocalIdProjections, LegacyContext>(ConnectedProjectionSettings.Default);
 }