-
Notifications
You must be signed in to change notification settings - Fork 19
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
View collection item footprints as MVT layer #203
Conversation
This reverts commit 88d713d.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good after CI
import com.azavea.franklin.error.NotFound | ||
import sttp.model.StatusCode.{NotFound => NF} | ||
import sttp.tapir._ | ||
import sttp.tapir.codec.refined._ | ||
import sttp.tapir.json.circe._ | ||
|
||
import java.net.URLDecoder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops - thank you 😎
) | ||
SELECT ST_AsMVT(mvtgeom.*) FROM mvtgeom; | ||
""" | ||
println(s"Query is:\n$fragment") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println(s"Query is:\n$fragment") |
Overview
This PR:
Checklist
New tests have been added or existing tests have been modifiedNotes
It's difficult to see the mvt layer whole. I'm thinking about whether there's an easy way to adapt Kenny's or Alex's bakeoff projects for it, since they both use mapbox gl js, and as far as I can tell I'd just (:tm:) have to change the source to get a different layer, either here or here.
Testing Instructions
./scripts/update
--with-tiles
and--with-transactions
item-maker.zip
http://localhost:9090/collections/berlin
WebMercatorQuad
for the matrix set and13/4407/2682
(it's a tile matching part of Berlin).http 'http://localhost:9090/tiles/collections/berlin/footprint/WebMercatorQuad/13/4407/2682' > mvt
-- it should succeed surprisingly fastmvtview
mvtview mvt
-- you should see a bunch of chaotic lines for the footprints of the bogus items you created in a Polygon layerCloses #196