Skip to content

Commit

Permalink
Merge pull request #637 from jbouffard/bug-fix/tilereader
Browse files Browse the repository at this point in the history
TileReader Will Now Read the Correct Attributes File
  • Loading branch information
Jacob Bouffard committed Mar 9, 2018
2 parents 48f2d3c + f3ba8ca commit 1458054
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ object TileReaders {
val valueReader = ValueReader(uri)
val attributeStore = valueReader.attributeStore

val ids = attributeStore.layerIds
val zoomLevels = for { LayerId(name, zoom) <- ids if name == layerName } yield zoom
val ids = attributeStore.layerIds.filter { id => id.name == layerName }
val zoomLevels = ids.map { _.zoom }
val maxZoom = zoomLevels.max

val valueClass = attributeStore.readHeader[LayerHeader](ids.head).valueClass
Expand Down

0 comments on commit 1458054

Please sign in to comment.