Create Buffer Error

digitalaviator
digitalaviator Global Mapper UserTrusted User
edited May 2010 in Bug Report
Hi Mike,

Attempted to use new create buffer for polygon area for all California Counties...

Number of buffer zones for each feature: 1
Buffer Distance: 100m
Combine overlapping buffer areas: unchecked

Getting the following error a few times on the state:
Error creating buffer for feature.
Error joining areas for buffer

PolygonUtils.cpp - 83
Version: v11.02
Build Time: Feb 22 2010 15:37:36

Attached the .shp file...

It appears from the error it's trying to combine overlapping buffer areas but I'm wondering what may be causing this error?

Kindest Regards,
Dean.

Comments

  • global_mapper
    global_mapper Administrator
    edited March 2010
    Dean,

    I'll take a look and see if I can track down the problem.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • global_mapper
    global_mapper Administrator
    edited March 2010
    Dean,

    I was able to get this fixed so now you shouldn't get that error. I have placed a new build at http://www.globalmapper.com/global_mapper11.zip with the change for you to try. Simply download that file and extract the contents into your existing v11.xx installation folder to give it a try. If you are using the 64-bit v11 version there is a new build at http://www.globalmapper.com/global_mapper11_64bit.zip .

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Hi Mike,

    I just tried this and still no joy:

    Error creating buffer for feature.
    Error joining areas for buffer

    PolygonUtils.cpp - 93
    Version: v11.02
    Build Time: May 2 2010 21:58:42

    Settings are:

    Select all areas first...
    Number of Buffer Zones = 1
    Buffer Distance = 100m (also tried 10m)
    Combine Overlapping Buffer Areas = Off

    Dean.
  • global_mapper
    global_mapper Administrator
    edited May 2010
    Dean,

    I was able to reproduce the problem and fix it. I have placed a new build at http://www.globalmapper.com/global_mapper11.zip with the change for you to try. Simply download that file and extract the contents into your existing v11.xx installation folder to give it a try. If you are using the 64-bit version, there is a new build available at http://www.globalmapper.com/global_mapper11_64bit.zip .

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Hi Mike,

    Looks good so far :-) Thanks... Will see if I manage to break it on a bigger dataset :p

    Cheers,
    Dean.
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Hmm, okay it worked for one file but for a different shp file:

    Global Mapper
    Error creating buffer for feature Alameda
    Error joining areas for buffer
    Polygon join failed! Invalid polygon.

    PolygonUtils.cpp - 107
    Version: v11.02
    Build Time: May 3 2010 21:51:23
    Use Ctrl+V to Paste Error
    OK
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Hi Mike,

    I'm still getting errors in trying to generate buffers...

    I'm not sure what's going on but yesterday when I created buffers for California (off a tiger county boundary dataset), it choked on 3 of the counties and gave the same error messages as before about "Error joining areas for buffer".

    I went back and manually selected those counties by themselves and created a buffer without any problems.

    However today with Florida and Uath I've been taking the same approach to work around the bug, but even the individual counties are giving me grief and I can't even create a buffer around the areas selected individually without getting the above "Error joining areas for buffer" bug.

    Is there anything more I can to to help track down this bug?
  • global_mapper
    global_mapper Administrator
    edited May 2010
    Dean,

    Can you provide the Florida and Utah file that are causing problems? The true issue here is that the 3rd-party area combining library used in side Global Mapper has problems in a lot of cases, but so far I've been able to fix/work-around them, although the lack of robustness in the library is really straining things.

    Note that even though you are combining buffers, there are still a large number of area combines done when creating buffers as buffers create range rings around each vertex as well as rectangular corridors around each segment, then combine those areas to create the buffers.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Hi Mike,

    I've attached the zip file and will PM you the password...
    Note that even though you are combining buffers, there are still a large number of area combines done when creating buffers as buffers create range rings around each vertex as well as rectangular corridors around each segment, then combine those areas to create the buffers.

    Note: I have combining buffers checked as off as I'm trying to keep all area files separate, unless I'm not understanding the above :D
  • global_mapper
    global_mapper Administrator
    edited May 2010
    Dean,

    Actually there is area combining (polygon joining) being done regardless of whether you check the option to combine buffers. This is because is buffer is created by joining a collection of range rings and rectangular segment buffers for a feature just to form the single buffer around that feature. If you check the option to combine buffers then the final buffers for each feature are then combined, but in your case the problem is happening when doing the combines to form the original buffers.

    I will take a look and see if I can reproduce this issue and find another workaround for our polygon combine library issue.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Ahh okay I understand what is happening with the process now... Thanks for all your work on this, hopefully this is the last of the bugs with it :-)

    Love you work, it's right up there with Adobe's work on Photoshop CS5...

    Cheers
    Dean.
  • global_mapper
    global_mapper Administrator
    edited May 2010
    Dean,

    Ok I've got a further fix. I have placed a new build at http://www.globalmapper.com/global_mapper11.zip with the change for you to try. Simply download that file and extract the contents into your existing v11.xx installation folder to give it a try. If you are using the 64-bit version, there is a new build available at http://www.globalmapper.com/global_mapper11_64bit.zip .

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Hi Mike,

    I'm running tests now and the first test on a different but related dataset worked correctly with no errors. Looks like you may have resolved all the bugs with this one...

    Cheers,
    Dean.
  • digitalaviator
    digitalaviator Global Mapper User Trusted User
    edited May 2010
    Hi Mike,

    This last run has been going well, with Utah I only got 2 errors (Kane & Sevier) when doing the whole state, but then selecting each of the 2 counties that didn't buffer individually and asking it to create a buffer, both worked.

    I'm still awaiting the Florida test I'm running, so far only one county Osceola has errored, and so far nothing has errored on California...

    If I can render the counties that error individually then that's workable for me...

    EDIT: Just got done with Florida and only had 1 County (Osceola) that glitched. Am testing that individually...