Class GeometryRoutedServicesWriter

    • Constructor Detail

      • GeometryRoutedServicesWriter

        protected GeometryRoutedServicesWriter()
        Default constructor
      • GeometryRoutedServicesWriter

        protected GeometryRoutedServicesWriter​(String outputPath)
        Constructor
        Parameters:
        outputPath - to persist in
      • GeometryRoutedServicesWriter

        protected GeometryRoutedServicesWriter​(String outputPath,
                                               String countryName)
        Constructor
        Parameters:
        outputPath - to persist in
        countryName - to optimise projection for (if available, otherwise ignore)
    • Method Detail

      • findDataStore

        protected <TT extends ManagedId> org.geotools.data.DataStore findDataStore​(PlanitEntityFeatureTypeContext<TT> featureContext,
                                                                                   Mode mode,
                                                                                   Path fullOutputPath)
        Find data store to use, if not present, create it if possible
        Type Parameters:
        TT - type of PLANit entity the data store is to be used for
        Parameters:
        featureContext - to create data store for and register on GeoIODataStoreManager
        mode - mode specific version of the same data store feature (but in different location for entries of that mode)
        fullOutputPath - on where to store results
        Returns:
        dataStore to use
      • writeRoutedServicesLayerServices

        protected void writeRoutedServicesLayerServices​(RoutedServicesLayer layer,
                                                        Mode layerMode,
                                                        org.opengis.feature.simple.SimpleFeatureType featureType,
                                                        PlanitRoutedServiceFeatureTypeContext featureDescription,
                                                        String layerLogPrefix)
        Writer the services of the layer mode combination
        Parameters:
        layer - to persist services for
        layerMode - to persist services for
        featureType - to use
        featureDescription - the context to convert instances to features
        layerLogPrefix - to use
      • writeLayers

        protected void writeLayers​(RoutedServices routedServices)
        Write layers of the routed services
        Parameters:
        routedServices - to write layers for