commonMain.org.jetbrains.letsPlot.spatial.CRSCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lets-plot-kotlin-kernel Show documentation
Show all versions of lets-plot-kotlin-kernel Show documentation
Lets-Plot Kotlin API without dependencies.
/*
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.spatial
object CRSCode {
// matches "GCS_WGS_1984", ""WGS84(DD)
fun isWGS84Code(code: String) = code.contains(Regex(".*WGS[ _]{0,1}(19){0,1}84.*"))
}