Git Product home page Git Product logo

Comments (10)

pka avatar pka commented on May 11, 2024

Looks strange indeed! Are these maps rendered with a built-in viewer? Which version?

from t-rex.

andreschardonguwo avatar andreschardonguwo commented on May 11, 2024

I'm trying with the latest version 0.33.1. However, happens on the built in as well. Also noticed that no issues with built in OpenLayers and XRay

from t-rex.

pka avatar pka commented on May 11, 2024

Then I'm supecting degerated geometries caused by clipping or simplification (see #5). Can you turn off simplification and play with the clipping parameters? I'm very interested in a dataset working with OL, but not with MB GL js. Is your datasource public or can you make it available for testing?

from t-rex.

andreschardonguwo avatar andreschardonguwo commented on May 11, 2024

Thank's for the reply. I will test without simplification later today. I also can share this dataset. It's a query on our postgis server. However, I can export as shape file or geojson.

from t-rex.

andreschardonguwo avatar andreschardonguwo commented on May 11, 2024

Tried to remove clipping and simplification = false, and the result is the same. Some polygons have holes. Maybe that's the issue. However, on OL they are correctly drawn. I can send you the dataset. What's the best format?

from t-rex.

pka avatar pka commented on May 11, 2024

Best option would be a PG dump (pg_dump --file=out.dump --format=c --table=...). A file export would maybe do it as well.

from t-rex.

andreschardonguwo avatar andreschardonguwo commented on May 11, 2024

Find attached the dump file. Let me know if you able to test it. Thank you very much!.

out.zip

from t-rex.

pka avatar pka commented on May 11, 2024

Thanks for the data. I couldn't reproduce your output, but also saw some glitches when displaying it with Maputnik. A first look at the data shows some invalid geometries:

gid st_npoints st_nrings st_isvaliddetail
162620 16348 11 (t,,)
162621 17451 9 (t,,)
162622 16006 6 (t,,)
162623 11674 8 (t,,)
162624 809 1 (t,,)
162625 12193 1 (t,,)
162626 22191 14 (f,"Too few points in geometry component",0101000000FBA45F828DCA53C1BED636691E7644C1)
162627 14718 2 (t,,)
162628 8661 2 (t,,)
162629 11419 9 (f,"Too few points in geometry component",01010000002E4D0730DEDB53C10198F0D8160045C1)
162630 8195 5 (f,"Too few points in geometry component",0101000000417405DD7AE553C132B7F7E9B3DC44C1)
162631 8441 9 (t,,)
162632 12311 4 (t,,)
162633 5055 1 (t,,)
162634 27981 10 (t,,)
162635 10026 2 (t,,)
162636 6761 2 (t,,)
162637 5083 1 (t,,)
162638 2663 1 (t,,)
162639 3961 1 (t,,)
162640 2929 1 (t,,)
162641 5122 1 (t,,)
162642 2513 1 (t,,)
162643 20223 10 (f,"Too few points in geometry component",010100000046B04456ECE453C1926402CE9EA644C1)
162644 6420 3 (t,,)
162645 3559 1 (t,,)
162646 2835 1 (t,,)

from t-rex.

andreschardonguwo avatar andreschardonguwo commented on May 11, 2024

Thank you @pka. I've published the layer and removed the invalid geometries, however, mabox still is drawing the lines. OpenLayers still fine.

img2
img1

from t-rex.

pka avatar pka commented on May 11, 2024

These artifacts are caused by unclipped polygons or lines. Clipping has been fixed for reprojected layers in 7801bb8 and in a6889b7 for config files written with version 0.7.2.
Always use buffer_size in your configuration!

from t-rex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.