Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Generate all EPSG CRSs from API calls #3

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 44 additions & 5 deletions .swiftpm/xcode/xcshareddata/xcschemes/swift-geo-Package.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,34 @@
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "generate-epsg"
BuildableName = "generate-epsg"
BlueprintName = "generate-epsg"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "GenerateEPSG"
BuildableName = "GenerateEPSG"
BlueprintName = "GenerateEPSG"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down Expand Up @@ -322,22 +350,33 @@
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "generate-epsg"
BuildableName = "generate-epsg"
BlueprintName = "generate-epsg"
ReferencedContainer = "container:">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ValueWithUnit"
BuildableName = "ValueWithUnit"
BlueprintName = "ValueWithUnit"
BlueprintIdentifier = "generate-epsg"
BuildableName = "generate-epsg"
BlueprintName = "generate-epsg"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
27 changes: 27 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
{
"pins" : [
{
"identity" : "pathkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/kylef/PathKit.git",
"state" : {
"revision" : "3bfd2737b700b9a36565a8c94f4ad2b050a5e574",
"version" : "1.0.1"
}
},
{
"identity" : "spectre",
"kind" : "remoteSourceControl",
"location" : "https://github.com/kylef/Spectre.git",
"state" : {
"revision" : "26cc5e9ae0947092c7139ef7ba612e34646086c7",
"version" : "0.10.1"
}
},
{
"identity" : "stencil",
"kind" : "remoteSourceControl",
"location" : "https://github.com/stencilproject/Stencil",
"state" : {
"revision" : "4f222ac85d673f35df29962fc4c36ccfdaf9da5b",
"version" : "0.15.1"
}
},
{
"identity" : "swift-algorithms",
"kind" : "remoteSourceControl",
Expand Down
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let package = Package(
.library(name: "WGS84", targets: ["WGS84"]),
.library(name: "GeodeticGeometry", targets: ["GeodeticGeometry"]),
.library(name: "Turf", targets: ["Turf"]),
.executable(name: "generate-epsg", targets: ["GenerateEPSG"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-algorithms", .upToNextMajor(from: "1.0.0")),
Expand All @@ -29,6 +30,7 @@ let package = Package(
url: "https://github.com/pointfreeco/swift-snapshot-testing",
.upToNextMajor(from: "1.9.0")
),
.package(url: "https://github.com/stencilproject/Stencil", .upToNextMajor(from: "0.15.1")),
],
targets: [
// Targets are the basic building blocks of a package.
Expand Down Expand Up @@ -137,5 +139,10 @@ let package = Package(
"GeodeticConversions",
"WGS84Conversions",
]),

// ⚙️ Generate type definitions for EPSG Coordinate Reference Systems
.executableTarget(name: "GenerateEPSG", dependencies: [
.product(name: "Stencil", package: "Stencil"),
]),
]
)
Empty file added Sources/EPSG/.gitkeep
Empty file.
Loading