/** * Instantiates a renderer for drawing a simple network (e.g. links). * The specifications for the symbol layer are made in the private method {@code init()}; * * @param gType The type of geometry that is to be drawn. */ public SimpleNetworkRenderer(VectorLayer layer) { super(QGisConstants.renderingType.singleSymbol,layer); this.geometryType = layer.getGeometryType(); init(); }
private boolean isCsvDataLayer(VectorLayer vlayer) { return(vlayer.getInputType().equals(QGisConstants.inputType.csv) && !vlayer.getGeometryType().equals(QGisConstants.geometryType.No_geometry)); }
public VectorLayer(String name, String path, org.matsim.contrib.analysis.vsp.qgis.QGisConstants.geometryType geometryType){ super(name, path); this.geometryType = geometryType; this.useHeader = false; this.vectorJoins = new HashSet<VectorJoin>(); this.setType(QGisConstants.layerType.vector); if(!this.getInputType().equals(QGisConstants.inputType.xml)){ if(this.getGeometryType().equals(QGisConstants.geometryType.Line)){ this.setLayerClass(QGisConstants.layerClass.SimpleLine); } else if(this.getGeometryType().equals(QGisConstants.geometryType.Point)){ this.setLayerClass(QGisConstants.layerClass.SimpleMarker); } } }
if(vlayer.getGeometryType().equals(QGisConstants.geometryType.No_geometry)){ out.write("\t\t<maplayer minimumScale=\"0\" maximumScale=\"1e+08\" geometry=\"" + vlayer.getGeometryType().toString().replace("_", " ") + "\" type=\"" + vlayer.getType() + "\" hasScaleBasedVisibilityFlag=\"0\">\n"); out.write("\t\t<maplayer minimumScale=\"0\" maximumScale=\"1e+08\" simplifyDrawingHints=\"1\" minLabelScale=\"0\" maxLabelScale=\"1e+08\" simplifyDrawingTol=\"1\" geometry=\"" + vlayer.getGeometryType().toString() + "\" simplifyMaxScale=\"1\" type=\"vector\" hasScaleBasedVisibilityFlag=\"0\" simplifyLocal=\"1\" scaleBasedLabelVisibilityFlag=\"0\">\n");
if(this.getGeometryType().equals(QGisConstants.geometryType.Line)){ } else if(this.getGeometryType().equals(QGisConstants.geometryType.Point)){
if(layer.getGeometryType().equals(QGisConstants.geometryType.Line)){ } else if(layer.getGeometryType().equals(QGisConstants.geometryType.Point)){ } else if(layer.getGeometryType().equals(QGisConstants.geometryType.Polygon)){