Class TopologicalLayerNetwork<T extends TopologicalLayer,​U extends TopologicalLayers<T>>

    • Constructor Detail

      • TopologicalLayerNetwork

        public TopologicalLayerNetwork​(IdGroupingToken tokenId)
        Default constructor
        Parameters:
        tokenId - to use for id generation
      • TopologicalLayerNetwork

        public TopologicalLayerNetwork​(IdGroupingToken tokenId,
                                       org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
        Default constructor
        Parameters:
        tokenId - to use for id generation
        coordinateReferenceSystem - preferred coordinate reference system to use
    • Method Detail

      • getCoordinateReferenceSystem

        public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
        collect the used crs
        Returns:
        coordinateReferencesystem used by this infrastructure network
      • setCoordinateReferenceSystem

        public void setCoordinateReferenceSystem​(org.opengis.referencing.crs.CoordinateReferenceSystem coordinateReferenceSystem)
        set the coordinate reference system used for all layers
        Parameters:
        coordinateReferenceSystem - to set
      • transform

        public void transform​(org.opengis.referencing.crs.CoordinateReferenceSystem newCoordinateReferenceSystem)
                       throws PlanItException
        change the coordinate system, which will result in an update of all geometries in the network layers from the original CRS to the new CRS. If the network is empty and no CRS is set then this is identical to calling setCoordinateReferenceSystem, otherwise it will change the CRS while the set method will throw an exception
        Parameters:
        newCoordinateReferenceSystem - to transform the network to
        Throws:
        PlanItException - thrown if error