-
cutting vector export to polygon
Hi Mike,
We're running some export of contours and specifying a polygon to extract but seem to be getting a bounding box area?
Script is:
=========================================
GLOBAL_MAPPER_SCRIPT VERSION="1.00"
UNLOAD_ALL
DEFINE_PROJ PROJ_NAME="OSGB"
PROJCS["Transverse_Mercator",GEOGCS["Geographic Coordinate System",DATUM["OSGB_1936",SPHEROID["Airy",6377563.396,299.3249753150316]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["scale_factor",0.9996012717],PARAMETER["central_meridian",-2],PARAMETER["latitude_of_origin",49],PARAMETER["false_easting",400000],PARAMETER["false_northing",-100000],UNIT["Meter",1]]
END_DEFINE_PROJ
DEFINE_SHAPE SHAPE_NAME="contourpoly"
344557,175246
344522,175504
344423,175746
344264,175953
344057,176112
343815,176211
343557,176246
343298,176211
343057,176112
342849,175953
342690,175746
342591,175504
342557,175246
342591,174987
342690,174746
342849,174538
343057,174379
343298,174280
343557,174246
343815,174280
344057,174379
344264,174538
344423,174746
344522,174987
344557,175246
END_DEFINE_SHAPE
IMPORT FILENAME="C:\data\HEIGHT.gmc" TYPE=AUTO PROJ_NAME="OSGB"
GENERATE_CONTOURS ELEV_UNITS=METERS INTERVAL=1 GLOBAL_BOUNDS=342507,174196,344607,176296 GEN_SPOT_ELEVATIONS=YES
UNLOAD_LAYER FILENAME="C:\data\HEIGHT.gmc"
EXPORT_VECTOR FILENAME="C:\Outputs\contourpoly\contour.dxf" TYPE=DXF ELEV_UNITS=METERS SPATIAL_RES=10,10 GEN_WORLD_FILE=YES POLYGON_CROP_NAME="contourpoly" EXPORT_DXF_LABELS=YES DXF_TEXT_SIZE=8 SHAPE_TYPE=LINES
===================================
Any ideas?
Thanks
Andy
-
-
Andy,
Global Mapper does not support cropping vector line and area features to an arbitrary polygon. What you can do though is provide the polygon as a crop area for your elevation layer, then the contours that are generated should be cropped to the polygon since it won't have valid elevations outside the crop area.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
-
-
follow up on vector crop
Hi Mike,
I think you mentioned that the cropping of vector element (for DXF/DWG output) might be supported at some point in the future.
Is this something that has progressed or that is just a long way off in the pipeline...?
Thanks!
Andy
-
-
Andy,
Actually that is already done and is available in any v11.xx release. Just crop your export to a selected area just like you would any raster export and the areas and lines will be cropped to the selected area.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
-
-
Hi Mike,
In my defense, there are so many updates (all great) that i must have missed that one!
Brilliant as always.
BTW, on a seperate note, i noticed that in v10 it is possible to "selected area features" is that limited to a certain number of areas - e.g. would a few hundred thousand cause a melt down! This would be loaded from a single shp file (or mapinfo tab file)...
Thanks again
Andy
-
-
Andy,
You could possibly run out of memory trying to setup an export gridded/cropped to hundreds of thousands of areas. To do that many at once you would likely need the 64-bit v11 installation to allow for more memory usage.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules