
vectorpipe.util.Resource.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorpipe_2.11 Show documentation
Show all versions of vectorpipe_2.11 Show documentation
Import OSM data and output to VectorTiles with GeoTrellis.
The newest version!
package vectorpipe.util
import java.io.InputStream
object Resource {
def apply(name: String): String = {
val stream: InputStream = getClass.getResourceAsStream(s"/$name")
try {
scala.io.Source.fromInputStream(stream).getLines.mkString(" ")
} finally {
stream.close()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy