Failure to Correctly Export Areas
Roger Edrinn
Global Mapper UserTrusted User
I'm working with a 7 x 4 deg extent, perhaps a dozen layers. I'm in the layer debug phase and only exporting 2 - 15x15-min extents as Polish MP files. I have an overlapping area that shows on one 15-min extent, yet not the other. Similar area types show on one and not on the other, overlapping or not.
But I have other areas of the same MP_TYPE with different feature names and they show on both extents. If I look at the master GM workfile and zoom in, all the areas are present and I can ID each.
I've opened the MP code in a text editor, the areas are indeed missing. Also tried GPSmapedit, again the area(s) are missing.
The area source layer is collection of shapefiles > GM workspace > GM Package file. I suspect it is somehow the package file which is the problem, admittedly a guess.
I'm doing the vector export with GM 9.03 3-16-2009.
Any ideas what's wrong or a test to try?
But I have other areas of the same MP_TYPE with different feature names and they show on both extents. If I look at the master GM workfile and zoom in, all the areas are present and I can ID each.
I've opened the MP code in a text editor, the areas are indeed missing. Also tried GPSmapedit, again the area(s) are missing.
The area source layer is collection of shapefiles > GM workspace > GM Package file. I suspect it is somehow the package file which is the problem, admittedly a guess.
I'm doing the vector export with GM 9.03 3-16-2009.
Any ideas what's wrong or a test to try?
Comments
-
Another data point:
I opened just the 4 x 7 deg area package file, exported the same two 15x15-min extents to .MP files and was able to replicate the export error. -
Here's the zipped GM Package file, should you care to play:
I'm exporting from N38.75 to N39 & W106 to W 106.5. The San Isabel NF shows always on the left, but only sometimes on the right extent. The Pike NF, same area type shows on the right. -
Roger,
I'll take a look and see if I can reproduce the problem.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Roger,
I took a look and found the problem. It was caused by the export clip boundary passing through duplicate islands/holes stacked on each other in the area being cropped. I was able to update the exporter to detect this situation and fix it automatically so everything should work now. I have placed a new build at http://www.globalmapper.com/global_mapper10.zip with the change for you to try. Simply download that file and extract the contents into your existing v10.xx installation folder to give it a try.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
When it took awhile, I suspected you quickly replicated the error. However, figuring out why was a bit tougher.
Given these are holes inside an area and not over an area, I'm puzzled as to why they would prevent the proper export? Also puzzled why another complex If-Then to detect them versus deleting the duplicates?
Also, how did GM create the duplicates in the first place?
Just curiosity.
Thanks -
The algorithm for cropping a polygon with holes to a rectangle failed when duplicate islands were there as the edge couldn't be properly followed. All that is done to fix the problem is to detect the duplicates and delete them before running the polygon through the clipper.
GM wouldn't have created the duplicates automatically, they were likely either in the source data, or the same hole was added to an area multiple times.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 12.9K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 181 Announcement and News
- 936 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website
