none
binary operation on shape give error RRS feed

  • Question

  • Hi all

    When I draw shape on map and try to perform operation on the shape like

    intersection

    union

    difference

    unionAggregate

    it give me below error

    found non-noded intersection between LINESTRING

    and for symdifferent operation following error occur

    found non-noded intersection between LINESTRING

    this.seg.p1.equals2D is not a function

    side location conflict

    Is there any limitation while using this function with shape.

    For example this operation only perform on small shape or can perform on particular area only.

    Thanks!!


    binary operation on shape
    • Edited by vikas dugi Tuesday, September 4, 2018 8:46 AM
    Tuesday, September 4, 2018 8:44 AM

All replies

  • Hi Vikas,

    Please take a look at https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/binaryoperations as it demonstrates how to use binary operations.

    It sounds like you may have a shape definition issue as indicated by the two errors "Side Location Conflict" and "Non-Noded Intersection" imply.

    Sincerely,

    IoTGirl

    Tuesday, September 4, 2018 4:53 PM
    Owner
  • Hi IoTGirl

    Thank you for reply.

    However, I'm referring  same link to perform operation.binary operation not work with all situation it work in some situation only. That's why I'm asking  in which situation it work.

    All the above error is given by binary operation function.

    according to you there may be shape definition issue but suppose if shape definition issue then not single operation should be work but here for same primitives some operation work some not.


    Thanks!

    Wednesday, September 5, 2018 6:50 AM
  • Hi Vikas,

    In order for a binary operation to work it must have a well defined shape to work against.  The failures you show indicate the shape is not defined well enough to do the calculation.  For further reference, please see https://msdn.microsoft.com/en-us/library/mt762902.aspx 

    Sincerely,

    IoTGirl

    Wednesday, September 5, 2018 3:35 PM
    Owner
  • Hi IoTGirl

    Thanks for replay

    However I'm referred all below links for operation:

    https://bingmapsv8samples.azurewebsites.net/#Binary%20Operations

    https://msdn.microsoft.com/en-us/library/mt762861.aspx

    https://msdn.microsoft.com/en-us/library/mt762902.aspx

    for shape creation I'm using fully custom Drawing Toolbar. refer below link

    https://bingmapsv8samples.azurewebsites.net/#Fully%20Custom%20Drawing%20Toolbar

    from  this toolbar we taking shape that area is greater then 160 m because this toolbar even allow non area shape also draw on map.

    So I'm taking shape that are defined by above toolbar.

    Thanks!

    Thursday, September 6, 2018 12:18 PM
  • Hi Vikas,

    Sorry but that does not help me help you.  You are somehow defining a bad shape or shape crossing and that is what the message is telling you.

    Sincerely,

    IoTGirl

    Thursday, September 6, 2018 5:31 PM
    Owner