Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8683883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:09:30+00:00 2026-06-12T22:09:30+00:00

I’m current drawing some tile (small square images) for a mapping app. I’m using

  • 0

I’m current drawing some tile (small square images) for a mapping app.

I’m using WPF to draw shapes on to these tiles.

I have a list of geospatial coordinates that make up polygons that are drawn.

The geospatial coordinates that make up these polygons are converted in to pixel coordinates.

The tiles are created at various set levels of detail.

At most of these levels of detail the drawing is fine; but at certain levels a visual artifact appears in the form of a spike or a line.

Here’s an example, these images are at three different levels of detail, one which shows the problem and two either side where the problem isn’t occurring.

This image is the highest detail level and is ok:

Ok Image

This image is at the medium detail level and exhibists the spikes (The one along road 85 is easiest to spot):

Bad Image

This image is at the lowest detail level and is ok:

enter image description here

The spikes appear to occur when two lines in the polygon get close to each other and/or form a dense point (convergence).

We have checked the source data and these artifacts don’t exist (this is also confirmed by the fact it renders correctly most of the time).

The next suspect was the coordinate conversion process, but again we checked it and the points being produced shouldn’t be drawn in this way.

That leaves WPF as the culprit which leaves us in a hard place as we can’t simply fix whatever the issue is as we could with our own code.

Have you guys seen this kinda thing before?

A fix would be fantastic 😉

At the moment it’s looking like we either have to put up with this issue or switch to using Direct2D. We already moved away from GDI+ rendering due to it being single threaded within a process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:09:31+00:00Added an answer on June 12, 2026 at 10:09 pm

    The solution is to change the LineJoin property on the Pen object to ‘Round’.

    http://msdn.microsoft.com/en-us/library/system.windows.media.pen.linejoin.aspx

    http://msdn.microsoft.com/en-us/library/system.windows.media.penlinejoin.aspx

    Many thanks to Moozhe who provided this answer in the comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a small JavaScript validation script that validates inputs based on Regex. I
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.