Global Mapper v25.0

Split selected line features to selected area features

gunerb
gunerb Global Mapper User
edited November 2012 in Technical Support
Hi,

I have a big contour map where I need to crop a specific (smaller) part. In order to this, I did
1. Create an area (where I want to crop the contour lines)
2. Select the lines within the area (selecting those are partially in the area as well as the ones completely inside) and then select the area with 'ctrl'
3. Split the lines to selected area (in order to split the contour lines at the intersection points)

Until this steps it seems ok but;

when I select the lines withing the area (this time only the ones completely inside the area) before I delete them; I see that there are a few lines, which are outside the area, are also selected.

As a conclusion, is there way to unselect these lines additionally, before I delete the lines inside the area? or any other way to clip the contour lines inside an area defined by a user?

GM version: v13 (64-bit)

Thanks in advance,

Comments

  • global_mapper
    global_mapper Administrator
    edited October 2012
    I did find an issue with the selection of lines that start on the outer boundary of the area and then go out, but stay within the bounding box of the area. I have placed a new build at http://www.globalmapper.com/global_mapper13.zip with this fixed for you to try. Simply download that file and extract the contents into your existing v13.xx installation folder to give it a try. If you are using the 64-bit v13 version there is a new build at http://www.globalmapper.com/global_mapper13_64bit.zip .

    Something simpler you might do though is just have the cropped results go directly to a new layer. Then you can just turn off all layers except that one in the Control Center.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
  • gunerb
    gunerb Global Mapper User
    edited October 2012
    Mike,

    Patch file solved the problem.

    Thanks a lot.
  • gunerb
    gunerb Global Mapper User
    edited October 2012
    Mike,

    According to your suggestion with cropping the image and putting it in a new layer:
    My final aim is to have the cropped area as blank in the original map. Because I will then put a smaller map (with higher res.) in that blank area.

    When I cropped the area and put it in a separate layer, the cropped area still exists in the original map. Do you have any suggestion?

    Thanks in advance,
  • global_mapper
    global_mapper Administrator
    edited October 2012
    There is a somewhat tricky way to get around this. What you first need to do is create an area feature that covers all of your data, then add the area you want to get rid of as an island/hole in that area using the right-click option in the Digitizer Tool to subtract/add islands. Once you have that all-encompassing area with the hole, select it and right-click again and select the Advanced Feature Creation submenu option to create a 'Single Vertex List' out of the area with islands. This will create a new area where the island is incorporated into the outer boundary through a "stock arc". Then you can crop your lines to that new area and select to delete the cropped features. That should just leave the parts of the lines outside your hole.

    Given the complexity of this I think I will make this more straight-forward in v14.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
  • wmiswm
    wmiswm Global Mapper User Trusted User
    edited October 2012
    I will do just exactly the same thing, not realizing cropping and removing polylines inside of polygon is so complicated. Will this feature be available in v14.1 or even earlier? I am also looking forward to the v14.1 for fixing illegal polygons.
  • global_mapper
    global_mapper Administrator
    edited October 2012
    Actually I have already added this for v14 so that you can directly crop line and point features to areas with holes in them using the Digitizer Tool. I have placed a new build at http://www.globalmapper.com/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.globalmapper.com/global_mapper14_64bit.zip .

    You would need to install the normal v14 release from the links below prior to applying the patch:

    32-bit: http://www.globalmapper.com/downloads/global_mapper14_setup.exe
    64-bit: http://www.globalmapper.com/downloads/global_mapper14_setup_64bit.exe

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
  • wmiswm
    wmiswm Global Mapper User Trusted User
    edited October 2012
    May I clarify the working procedure of removing polylines/POI within an area. Please help to point out any wrong place.
    1. in digitizer mode, select the area of interest.
    2. right click, select to insert vertex and break the line at any polyline intersactions.
    3. create an area that covers the whole area of polylines of interest.
    4. re-select the area of 1., right click, and make it a hole of the area of 3. above.
    5. select the area of 4. above, right click, crop to delete features outside of the cropped area.
    6. select and delete the area of 4. to complete the procedure.

    Is the above procedure correct?
  • global_mapper
    global_mapper Administrator
    edited October 2012
    With the new change in the latest 14 build to allow cropping lines to areas with holes in them you can skip #2 where you insert the vertices at the intersections. Just crop the lines to the area in #5 and that should work. New vertices will automatically be added as part of the crop.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
  • wmiswm
    wmiswm Global Mapper User Trusted User
    edited October 2012
    Fine, thanks a lot. But why not simply make an option of crop to delete/edit?
  • global_mapper
    global_mapper Administrator
    edited October 2012
    So an option to basically cut out all vector features in an area, leaving what is outside of that?

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
  • wmiswm
    wmiswm Global Mapper User Trusted User
    edited October 2012
    crop, and tag the cropped out features with a searchable tag/attribute, and leave the remaining uncropped features untouched seems to be the best solution. By this, the user can do whatever to both side of the crop afterwards.
  • gunerb
    gunerb Global Mapper User
    edited October 2012
    Hi all,
    If there is a posibility to add a new/particular option to delete features inside a specific area for v14, would it make sense to add an option in the pop-up (for CROP) menu as suggested below?

    1. Creating an area with the digitizer tool
    2. Select the area and right click and select "CROP loaded features.."

    An additional option can be added in pop-up menu, on right-hand side: "Delete features inside the area.."

    Thanks,
  • global_mapper
    global_mapper Administrator
    edited October 2012
    I have updated the existing crop option to have a new checkbox to control whether you keep the features inside or outside of the selected area(s). I have placed a new build at http://www.globalmapper.com/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.globalmapper.com/global_mapper14_64bit.zip .

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
  • wmiswm
    wmiswm Global Mapper User Trusted User
    edited October 2012
    I discovered a bug of this build. A polyline/feature which has no connection to the selected area will not be retained by the "retain feature outside of the crop area" option.
  • global_mapper
    global_mapper Administrator
    edited October 2012
    Can you provide an example? In my testing all lines that are outside the selected area are kept just fine.

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com
  • wmiswm
    wmiswm Global Mapper User Trusted User
    edited October 2012
    I have sent you an email. Please check. Thank you very much.
  • global_mapper
    global_mapper Administrator
    edited October 2012
    Ok I got your file and made some changes but I will have to do a lot more to handle your case with massive numbers of islands. The current method for cropping lines to areas with islands was intended for simple cases. I will have to rethink it to handle cases like yours. I have placed a new build at http://www.globalmapper.com/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.globalmapper.com/global_mapper14_64bit.zip .
  • wmiswm
    wmiswm Global Mapper User Trusted User
    edited November 2012
    hi Mike, I have tested your latest build, and unfortunately there are still a lot of unexpected bugs around. There are numerous examples. To just quote one, please go to 114.0607338386 22.4902252842 of the map. The polyline there should be "inside", but now cropped to the "outside" layer. I am not in a hurry to solve the problem. Please take your time to see what can be done to better handle the situation.

    I find that the way GM handles island is not very reliable. I have also tried to crop all the "polygons" of the map to make them "islands" of the whole background, and then find that the result is just unacceptable. You can try by yourself to replicate my findings. Just create one big polygon to cover the whole region I sent you, select all the polygons in digitizer mode and crop against the big polygon to see the result.
  • global_mapper
    global_mapper Administrator
    edited November 2012
    I have now updated the crop of lines to areas with islands to work regardless of the type of island configuration, and my testing with your sample seems ok. I'm still working on using the islands on area cropping, but that didn't work before anyway. I have placed a new build at http://www.globalmapper.com/global_mapper14.zip with the latest changes for you to try. Simply download that file and extract the contents into your existing v14.xx installation folder to give it a try. If you are using the 64-bit v14 version there is a new build at http://www.globalmapper.com/global_mapper14_64bit.zip .

    Thanks,

    Mike
    Global Mapper Guru
    gmsupport@bluemarblegeo.com
    http://www.globalmapper.com