pyorps 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyorps/__init__.py +33 -0
- pyorps/core/__init__.py +39 -0
- pyorps/core/cost_assumptions.py +1004 -0
- pyorps/core/exceptions.py +119 -0
- pyorps/core/path.py +251 -0
- pyorps/core/types.py +110 -0
- pyorps/graph/__init__.py +38 -0
- pyorps/graph/api/__init__.py +16 -0
- pyorps/graph/api/graph_api.py +56 -0
- pyorps/graph/api/graph_library_api.py +567 -0
- pyorps/graph/api/igraph_api.py +262 -0
- pyorps/graph/api/networkit_api.py +240 -0
- pyorps/graph/api/networkx_api.py +223 -0
- pyorps/graph/api/rustworkx_api.py +213 -0
- pyorps/graph/path_finder.py +823 -0
- pyorps/io/__init__.py +54 -0
- pyorps/io/geo_dataset.py +334 -0
- pyorps/io/vector_loader.py +772 -0
- pyorps/raster/__init__.py +23 -0
- pyorps/raster/handler.py +567 -0
- pyorps/raster/rasterizer.py +678 -0
- pyorps/utils/__init__.py +61 -0
- pyorps/utils/neighborhood.py +320 -0
- pyorps/utils/plotting.py +564 -0
- pyorps/utils/traversal.py +720 -0
- pyorps-0.1.0.dist-info/METADATA +383 -0
- pyorps-0.1.0.dist-info/RECORD +30 -0
- pyorps-0.1.0.dist-info/WHEEL +5 -0
- pyorps-0.1.0.dist-info/licenses/LICENSE +19 -0
- pyorps-0.1.0.dist-info/top_level.txt +1 -0
pyorps/__init__.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""PYORPS - Python for Optimal Routes in Power Systems."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.0"
|
|
4
|
+
|
|
5
|
+
# Import key components for easy access
|
|
6
|
+
from .io.geo_dataset import (
|
|
7
|
+
GeoDataset, VectorDataset, RasterDataset,
|
|
8
|
+
InMemoryVectorDataset, LocalVectorDataset,
|
|
9
|
+
WFSVectorDataset, LocalRasterDataset,
|
|
10
|
+
InMemoryRasterDataset, initialize_geo_dataset
|
|
11
|
+
)
|
|
12
|
+
from .raster.rasterizer import GeoRasterizer
|
|
13
|
+
from .graph.path_finder import PathFinder
|
|
14
|
+
from .core.path import Path, PathCollection # Fixed: import from core.path instead of graph
|
|
15
|
+
from .core.cost_assumptions import (CostAssumptions, get_zero_cost_assumptions, detect_feature_columns,
|
|
16
|
+
save_empty_cost_assumptions)
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
# Core dataset classes
|
|
20
|
+
"GeoDataset", "VectorDataset", "RasterDataset",
|
|
21
|
+
"InMemoryVectorDataset", "LocalVectorDataset",
|
|
22
|
+
"WFSVectorDataset", "LocalRasterDataset",
|
|
23
|
+
"InMemoryRasterDataset", "initialize_geo_dataset",
|
|
24
|
+
|
|
25
|
+
# Rasterization
|
|
26
|
+
"GeoRasterizer",
|
|
27
|
+
|
|
28
|
+
# Graph and routing
|
|
29
|
+
"PathFinder", "Path", "PathCollection",
|
|
30
|
+
|
|
31
|
+
# Cost assumptions
|
|
32
|
+
"CostAssumptions", "get_zero_cost_assumptions", "detect_feature_columns", "save_empty_cost_assumptions",
|
|
33
|
+
]
|
pyorps/core/__init__.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""Core types and base classes for geospatial data processing."""
|
|
2
|
+
|
|
3
|
+
from .cost_assumptions import (CostAssumptions, get_zero_cost_assumptions, detect_feature_columns,
|
|
4
|
+
save_empty_cost_assumptions)
|
|
5
|
+
from .types import (InputDataType, CostAssumptionsType, BboxType, GeometryMaskType, CoordinateTuple, CoordinateList, CoordinateInput,
|
|
6
|
+
NormalizedCoordinate)
|
|
7
|
+
from .path import Path, PathCollection
|
|
8
|
+
from .exceptions import (
|
|
9
|
+
# Cost assumption exceptions
|
|
10
|
+
CostAssumptionsError, FileLoadError, InvalidSourceError, FormatError,
|
|
11
|
+
FeatureColumnError, NoSuitableColumnsError, ColumnAnalysisError,
|
|
12
|
+
# WFS exceptions
|
|
13
|
+
WFSError, WFSConnectionError, WFSResponseParsingError, WFSLayerNotFoundError,
|
|
14
|
+
# Graph API exceptions
|
|
15
|
+
RasterShapeError, NoPathFoundError, AlgorthmNotImplementedError
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
# Cost assumptions
|
|
20
|
+
"CostAssumptions", "get_zero_cost_assumptions", "detect_feature_columns", "save_empty_cost_assumptions",
|
|
21
|
+
|
|
22
|
+
# Types
|
|
23
|
+
"InputDataType", "CostAssumptionsType", "BboxType", "GeometryMaskType",
|
|
24
|
+
"CoordinateTuple", "CoordinateList", "CoordinateInput",
|
|
25
|
+
"NormalizedCoordinate",
|
|
26
|
+
|
|
27
|
+
# Path classes
|
|
28
|
+
"Path", "PathCollection",
|
|
29
|
+
|
|
30
|
+
# Exceptions - Cost assumptions
|
|
31
|
+
"CostAssumptionsError", "FileLoadError", "InvalidSourceError", "FormatError",
|
|
32
|
+
"FeatureColumnError", "NoSuitableColumnsError", "ColumnAnalysisError",
|
|
33
|
+
|
|
34
|
+
# Exceptions - WFS
|
|
35
|
+
"WFSError", "WFSConnectionError", "WFSResponseParsingError", "WFSLayerNotFoundError",
|
|
36
|
+
|
|
37
|
+
# Exceptions - Graph API
|
|
38
|
+
"RasterShapeError", "NoPathFoundError", "AlgorthmNotImplementedError"
|
|
39
|
+
]
|