| Other Functions |
l ProjectLayers(string projStr)
Project the plot by Proj4 string parameter. Please check Proj4 help document to know how to set projection string. Also some websites have the projection information, such as http://remotesensing.org/geotiff/proj_list/ .
Example:
myApp.ProjectLayers("+proj=moll+lon_0=105")
l Zoom(double minX, double maxX, double minY, double maxY)
Zoom the plot to the extent. Width and Height ratio of the map view will not be changed.
Example:
myApp.Zoom(75, 135, 15, 55)
l ZoomEx(double minX, double maxX, double minY, double maxY)
Zoom the plot to the exact extent. Width and Heigh ratio of the map view will be changed to fit the extent.
Example:
myApp.ZoomEx(0, 360, -90, 90)
l SetMaskout(string layerName)
Set maskout layer by layer name.
Example:
myApp.SetMaskout("china.shp")
l SetIllustration(bool visible)
Set illustration visible or not.
Example:
myApp.SetIllustration(True)
l SaveFigure(string aFile)
Save the plot to an image file.
Example:
myApp.SaveFigure(".\\try.png")
l SetInterpolation(double minX, double maxX, double minY, double maxY, int xNum, int yNum, string aInterMethod, float radius, int minNum)
Set interpolation parameters for interpolating station data to grid data.
Example:
myApp.SetInterpolation(60,140,-20,60,160,160,"IDW_Radius",1,1)
l SetLegendScheme(string legendFile)
Set legend scheme by the legend file.
Example:
myApp.SetLegendScheme(".\\Legend\\rain.lgs")
l SetLegendBreak(string layerName, int brkIdx, Color aColor, Color outlineColor, float outlineSize, bool drawOutline, bool drawFill, bool drawShape)
Set a legend break of the legend scheme of the layer by layer name.
Example:
myApp.SetLegendBreak("country1.shp",0,Color.Yellow,Color.Gray,1,True,False,True)
l SetTitle(string aTitle)
Set the plot¡¯s title.
Example:
myApp.SetTitle("MeteoInfo script demo - Grid data calculation")
l MoveLayerToTop(string layerName)
Move the layer to the top of the layers, then the layer will be plotted on the top of other layers.
Example:
myApp.MoveLayerToTop("country1.shp")