Deleting overlapping lines in QGIS - maps

I had to digitize a geologic map. I've made all the polygons for the different units. Now I want to make the contacts/line styles for each polygon. Some contacts are definite, solid line, while other are inferred, dashed line. So it requires 2 different line types. If I make dashed lines for the inferred polygons, then the polygons that have lines on top of one another may look like a solid line. I went ahead and generated another layer with the polygons and used Polygons to Lines in QGIS. Now I want to delete the overlapping lines. So far none of the processes in QGIS are working. Does anyone have a technique for doing this?
I want to have one line that is doesn't have overlapping lines underneath.

Related

Dataset containing countries ISO codes and images of their borders

Looking for a dataset which would contain all countries with images of their borders without any text data on it.
This is closest to what I want https://www.geoboundaries.org/index.html#tabs1-css
Problem is that these images contain frame and text around country borders:
This could be cut if it always had same dimensions but unfortunately these images differ a lot. Where do I find this kind of dataset?
All credit goes to #Mike, who has commented my original question.
After little tweaks this gets the job done:
https://codesandbox.io/s/vector-layer-forked-bx2pi1?file=/main.js

Graphs the same size in gnuplot multiplot when each take up most of its canvas and one has labels

I've reedited this question a few times: I've made some good progress!
So, as I understand it, multiplot splits the whole canvas up into equal sized parts as needed. This is a little weird when your different plots have different dimensions, as in my case, but it works. The problem might come in when the graph are supposed to be very close together (e.g. each takes up most of its canvas), but one of them has labels. In that case, it seems the plot with labels must resize to be smaller so everything can fit. That's where I am now.
I see a few options.
make all the plots farther apart-- but I don't want to do that.
somehow make the label not part of the multiplot-- I would totally do this, but I don't know how. It's possible even just the axis tics themselves would be too big, but I can probably deal with that or compromise just that amount on the spacing.
So my question is, how can I put words in a gnuplot graph, completely separately from a plot?
(The picture is also giant, which is unfortunate, it was the only way I could make the formatting work)
Two things:
Multiplot has a convenience mode layout <rows>, <columns> that, as you say, splits the page into equal rectangles. But you do not have to use this convenience mode; you can assign each sub-plot to any arbitrary rectangle on the page, even one that overlaps or is interior to another rectangle. Here is an example from the online demo set that is close to what you show:
Demo of multiple plots with explicit alignment of borders
Placing text anywhere on the page: The set label command allows you to position the text using screen coordinates rather than plot coordinates. For example, to place a single large label centered at the top of a page that contains multiple plots:
set label 1 "This label is positioned independent of all plots"
set label 1 at screen 0.5, screen 0.95 center
set label 1 font "Times,20"

Connect dots in separate d3 graphs

I have a d3 graph that is a series of dots on a horizontal line (for ease, let's say a red one, blue one, green one). Not too tough.
I have several of these graphs stacked on top of each other. Easy.
A solid line then needs to connect all the red dots vertically across the different graphs. This is where my mind explodes.
Is it possible to draw a line across multiple graphs.
Do I make a single graph that sits over all of the individual graphs.
Is there a way to find the location of a node in a different graph and draw a line towards that one.
Do I need to calculate a phantom node based on the height of a row and some trigonometry to draw the line.
Any suggestions of approaches would be greatly appreciated. I am in pre-dev stage, trying to figure out level of effort for the designers who are asking this.

Accessing or omitting non-existing data

I'm performing some geographical computations in a grid with squares (i.e. regions). I'm using Delphi, but the logic could probably be applied to C++ too. Let me first explain what I want to do.
The following image is a portion of my grid, which is represented by a two-dimensional array Square that denotes the centre point in each square, and the "movement through the layers":
The green square has an X and Y coordinate of 2, so that is Square[2,2]. The actual coordinates are stored in Square[2,2].Latitude and Square[2,2].Longitude as wel as extra information in e.g. Square[2,2].Info that I use for computations.
Now comes the purpose: I need to do some computations on the surrounding areas. How many of the surrounding areas can be called "neighbours", depends on how many "layers" I have defined. In the image above, I used two of these "layers". That means that when starting from the green cell, I go around it once (blue arrows) and then again in the second layer (red arrows).
Now comes the problem: if I would have started in Square[1,1] (green square) instead of Square[2,2] as in the image below, the second layer (in red) would try to access data on the left side and at the bottom that does not exist (i.e. in the "-1" column and row). See the image below. This problem occurs at all borders of course.
I probably can make exceptions with IF-statements for every scenario, but I was wondering if there are common programming "tricks" that can handle such situations where you try to access data does not exist.
For example, I imagine it would be very handy if I can follow the pattern of the arrows depicted in the first image to access all the neighbouring squares every single time, even if there are non-existing squares. So, looking at the first image, after Square[3,0] you'd go to something like Square[3,-1] etc. and then eventually come back into the "feasible" zone in Square[0,3].
To visit neighborhood, you can use some kind of BFS (breadth-first search).
But for sparse structure (like the last picture shows) it is worth to use some data structure to organize cells in a good way. Perhaps kd-tree is suitable - you add all existing cells in the tree and make range search around given cell to get other cells in its vicinity.
Also look at another spatial data structures (see list at the bottom of kd-tree page).

Mixed markers on the same Oxyplot line?

I have a plot where three lines are shown. Each line has a marker that identifies its type.
The user can choose a type of line and click on the plot to create those lines.
No problems this far.
The problem is that i need one of those lines to have two distinct types of markers, for example, the user can right click somewhere on the plot, which will open a context menu and choose one option that would create a point with a special marker for that line. The question is: is it possible to mix markers on the same LineSeries? If the answer is yes, how can I do that?
Thank you.
I'm not sure it qualifies as a data series, if it has different markers. I think you need to keep a line series showing the line and muliple line series showing the different markers. You then need to sync all the series when adding a point.

Resources