Defining export bounds in script

LPlateAndy
LPlateAndy Global Mapper UserTrusted User
edited July 2008 in Technical Support
Hi,

Loving global mapper and the scripting - it's possible for anyone to use - even me!

I've found the GUI tools to set the export bounds by a selected feature and get a random polygon - that's great.

I tried doing the same by scripting and setting the extents by a shp file which worked to a certain degree in that it limited the image to a rectangular area containing the features extents. However, it also included mapping outside the requested polygon where i had expected a white (or otherwise) background.

Is there something i forgot to do?

Also, it would actually be even better if i could set the bounds using a 'GLOBAL_BOUNDS' style of command but with the option to specify all the points in the required polygon rather than just the bottom left, top right.

Hope someone can help!

Thanks

Andy

Comments

  • LPlateAndy
    LPlateAndy Global Mapper User Trusted User
    edited July 2008
    Hi,

    OK - i did look first honest... just not hard enough!

    POLYGON_CROP_FILE works fine.

    However, it would still be really handy if (as an alternative) i could specify a co-ord string in the current co-ord sytem for export.

    Thanks

    Andy
  • global_mapper
    global_mapper Administrator
    edited July 2008
    Andy,

    I will add an item to the todo list to allow this.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • global_mapper
    global_mapper Administrator
    edited July 2008
    Andy,

    FYI, I have completed adding support for inline specification of crop polygons, so the upcoming v10 release will have this feature. Here is an example of what your scripts can look like with this feature:

    GLOBAL_MAPPER_SCRIPT VERSION="1.00" FILENAME="C:\Temp\export test\test.gmw"
    UNLOAD_ALL
    DEFINE_SHAPE SHAPE_NAME="CROP_POLY"
    377493.234,4323974.016
    375343.359,4318676.109
    381101.953,4314414.750
    387014.109,4317178.875
    386975.719,4322400.000
    381869.766,4324588.266
    377493.234,4323974.016
    END_DEFINE_SHAPE
    IMPORT FILENAME="C:\Temp\export test\blue_springs_4_quads.dem" TYPE="USGS_DEM" EXPORT_RASTER FILENAME="C:\TEMP\EXPORT TEST\BLUE_SPRINGS_DEM_EXPORT.TIF" TYPE="GEOTIFF" \
    POLYGON_CROP_NAME="CROP_POLY"

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • LPlateAndy
    LPlateAndy Global Mapper User Trusted User
    edited July 2008
    Hi Mike,

    How come not every software supplier can achieve this kind of turnaround!

    Any idea when V10 is expected - nearest month would be handy.

    Thanks again!

    Andy

    P.S. Should i get an e-mail when there's a response to a thread? Only asked i might have missed this had i not happened to log back in.
  • PaulTocknell
    PaulTocknell Forum Administrator Unconfirmed
    edited July 2008
    In your user settings there is a way to automatically subscribe to threads which you have posted. Also, if you look at the top of this thread, you'll see "thread tools". You can select "subscribe to this thread" and you should get an email.

    Paul
  • global_mapper
    global_mapper Administrator
    edited July 2008
    Andy,

    We expect to officially release v10 around the end of August, but the first beta of v10 (which will include this new polygon crop feature) will hopefully be out in a week or two. The beta will be announced on the forum.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • LPlateAndy
    LPlateAndy Global Mapper User Trusted User
    edited July 2008
    cool - it just keeps getting better!

    Appreciate your hard work Mike.
  • timhoman
    timhoman Global Mapper User Trusted User
    edited July 2008
    Looking forward to the next release...

    --
    Tim