-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Using WGS84 yields squishes tiles along Y-axis #156
Comments
@gdey can you take a look at this? |
We are about to push issue-56 into v0.4.0. I had noticed some regressions and fixed them. When this push happens I'll revisit this to see if the issue still exists, and debug. |
@dbazile Can you see if this has been addressed by v0.4.0-rc1? Thank you. |
@dbazile I think the regression still exists. I continue to look into it. |
@gdey sorry for the delay! I tried out
commit b63136744627b825cb1e2e4cba67e73fa0fad328 (HEAD -> master, origin/master)
Author: David Bazile <dbazile@users.noreply.github.com>
Date: Thu Nov 2 14:18:22 2017 -0400
Update to RC1
diff --git a/Dockerfile b/Dockerfile
index 62058c3..9b242ea 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,8 +4,8 @@ RUN set -ex \
&& apt-get update \
&& apt-get install -y postgis sudo wget vim
-ENV TEGOLA_VERSION 0.4.0-beta
-ENV TEGOLA_SHASUM f7bfce61378dc2458c0bd7f9afc25688a6da36fdfc94b7444019600f2abfd46e
+ENV TEGOLA_VERSION 0.4.0-rc1
+ENV TEGOLA_SHASUM 8d4be44c8b881b91bca2ffcce51e5fe28bbf6a805e2cf4bac5e09b632524df32
WORKDIR /server Screenshot of OpenLayers 4 in Chrome: |
I also tried adding |
Yeah, I changed something that is causing this. Trying to figure out where the regression is. The obvious places are currently not yield anything. |
Looks like I introduced this regression in 0912fc9 . (I found this using git bisect). Will keep this issue updates as I learn more. |
Issue #156 reported squashing of types in the Y direction. This was due to a multiplication changing to a plus.
@dbazile found the regression. Thank you for the bug report. Once the above pull request is merged it should no longer be an issue. |
[issue-156] Fix #156 for regression of dealing with WGS84
@dbazile this is now fixed in the Thanks again for the report! |
@ARolek @gdey Just bumped to
|
Out of curiosity, I also tested against MapBox's Web Mercator version of the Natural Earth
|
@dbazile Yeah, I've not optimized the new code base. It's now doing simplification, clipping, and makevalid on all polygons. This brings us up to spec for v2 of mvt. However, there are still some makevalid bugs (You will see some phantom triangles due to cutouts in holes), and the speed of the makevalid func is slow. There are two reasons for this:
|
@dbazile as @gdey mentioned the goal for v0.4.0 has been to be compliant with MVT v2 spec. This was a rather large effort to implement the necessary algorithims for simplification, clipping and making invalid polygons valid. Now that we're end to end we're going to start working on performance profiling and benchmarking to speed up the tiles that are slow to process. As you have discovered it's mainly the lower zooms as they come with the most complex polygons. We're still working on documentation, but a feature that also came with v0.4.0 to help alleviate this pain is a file cache. You can turn it on by adding the following to your config file: [cache]
type="file"
basepath="/tmp/tegola-cache" #where do you want the tiles stored The cache also supports a Regarding the issue (Using WGS84 yields squishes tiles along Y-axis) has this been addressed for you in the newest build? |
Got it. In that case, the tiles that appear are WGS84 and unsquished. 👍 |
I specify a layer that uses WGS84, I get tiles that are squished along the Y-axis:
I think it might be a regression because if I roll back to
0.3.2
, it works as expected, but my config might just be missing something. I've included the relevant bits of my configurations below and have posted the Docker sandbox I'm using at https://github.com/dbazile/sandbox-tegola.Environment
0.4.0-alpha
,0.4.0-beta
shp2pgsql
)Configurations
The command used to import the shapefiles:
shp2pgsql -s 4326 ne_10m_admin_0_countries.shp countries | psql -U postgres -d world
My
config.toml
:The text was updated successfully, but these errors were encountered: