All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.osgeo.grass.v.v__net__steiner Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package org.osgeo.grass.v;

import org.jgrasstools.grass.utils.ModuleSupporter;

import oms3.annotations.Author;
import oms3.annotations.Documentation;
import oms3.annotations.Label;
import oms3.annotations.Description;
import oms3.annotations.Execute;
import oms3.annotations.In;
import oms3.annotations.UI;
import oms3.annotations.Keywords;
import oms3.annotations.License;
import oms3.annotations.Name;
import oms3.annotations.Out;
import oms3.annotations.Status;

@Description("Note that 'Minimum Steiner Tree' problem is NP-hard and heuristic algorithm is used in this module so the result may be sub optimal")
@Author(name = "Grass Developers Community", contact = "http://grass.osgeo.org")
@Keywords("vector, networking")
@Label("Grass/Vector Modules")
@Name("v__net__steiner")
@Status(Status.CERTIFIED)
@License("General Public License Version >=2)")
public class v__net__steiner {

	@UI("infile,grassfile")
	@Description("Name of input vector map")
	@In
	public String $$inputPARAMETER;

	@UI("outfile,grassfile")
	@Description("Name for output vector map")
	@In
	public String $$outputPARAMETER;

	@Description("Arc type (optional)")
	@In
	public String $$typePARAMETER = "line,boundary";

	@Description("Arc layer (optional)")
	@In
	public String $$alayerPARAMETER = "1";

	@Description("Node layer (used for terminals) (optional)")
	@In
	public String $$nlayerPARAMETER = "2";

	@Description("Arcs' cost column (for both directions) (optional)")
	@In
	public String $$acolumnPARAMETER;

	@Description("Categories of points on terminals (layer is specified by nlayer)")
	@In
	public String $$tcatsPARAMETER;

	@Description("Number of steiner points (-1 for all possible) (optional)")
	@In
	public String $$nspPARAMETER = "-1";

	@Description("Use geodesic calculation for longitude-latitude locations")
	@In
	public boolean $$gFLAG = false;

	@Description("Allow output files to overwrite existing files")
	@In
	public boolean $$overwriteFLAG = false;

	@Description("Verbose module output")
	@In
	public boolean $$verboseFLAG = false;

	@Description("Quiet module output")
	@In
	public boolean $$quietFLAG = false;


	@Execute
	public void process() throws Exception {
		ModuleSupporter.processModule(this);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy