X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Mar 2016 01:13 PM by  anon
Re. using the POLYFILL procedure
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:16
New Member


--
21 Mar 2016 01:13 PM
    Hi, I am trying to plot thevertices of a polygon over an existing raster in an IMAGE() window. The snippetis as follows: ;----------------------------------------- shp_and_raster = IMAGE(REFORM(ortho2[0,*,*]),GEOTIFF=gtiff_VI_l_shrinked,RGB_TABLE=8,/ORDER, $ SEMIMAJOR_AXIS=6378137.0d, SEMIMINOR_AXIS=6356752.314245d, ZONE=17,ELLIPSOID='WGS 84', GRID_UNITS="m", $ IMAGE_LOCATION=[0,754],$ IMAGE_DIMENSIONS=[new_ns*gtiff_VI_l_shrinked.MODELPIXELSCALETAG[0],new_nl*gtiff_VI_l_shrinked.MODELPIXELSCALETAG[1]],$ MAP_PROJECTION='UTM') POLYFILL,(*RESULT.VERTICES)[0,*],(*result.VERTICES)[1,*],/data ;-------------------------------------------- The POLYFILL procedure opens a new IDL WINDOW instead of plotting it in the existing IMAGE() window. Unfortunately there’s no /overlay and /current keywords in thePOLYFILL procedure. Expecting a solution to this. Thanks, Regards, Puneeth

    Deleted User



    Basic Member


    Posts:143
    Basic Member


    --
    25 Mar 2016 03:19 PM
    This is a little confusing. The POLYFILL routine is a Direct Graphics. The IMAGE routine is an Function Graphics routine (aka, Graphics, (New) Graphics, IDL 8 Graphics). The following article discusses the different types of IDL graphics: http://www.harrisgeospati...hics-Categories.aspx Instead of using POLYFILL, use the POLYGON routine with the FILL_COLOR keyword set: http://www.harrisgeospati...om/docs/polygon.html
    You are not authorized to post a reply.