I have just begun to fiddle around with QGIS. Now, I have a .shp file containing a map of Sweden. I want to add a vector point to that map by adding a new point layer through the Delimited Text File plugin. The CSV file that I'm importing contains the following data:
id,lat,long
1,62.30000,14.10000
The dot appears on the screen but very far away from the country map. I assumed that was because the layers were set to different CRS, but after right-clicking each layer and changing the CRS to WGS 84, nothing changes. What am I doing wrong here?
EDIT: Just go it to work by deleting the point layer, changing the coordinates in the CSV file to SWEREF99 TM, and importing the layer anew with the same plugin. But I'm still wondering if it's not possible to change the CRS after importing?
You can always change a layer's CRS by overriding the setting in layer properties - General tab. Note that the features are not reprojected when you change this setting. You are just telling QGIS to interpret the coordinates differently.
Related
I'm new to python and doing a work project that involves juggling a lot (5-10k) of "places" (polygons representing regions) in google earth. As such, I wanted to run a list compare between the places I have in google earth against a txt file list of places I should have. The only problem is that I cannot seem to find a way to copy paste or otherwise capture the name text of the google earth places. Copying with control c or right click copy copies them as a KMZ file, or when pasted into a text editor gives the full source from their "properties" tab. I'm fairly confident in manipulating and comparing the lists once I have the data in that format, but could really use some help in attaining it as such.
First right-click on saved places in Google Earth and save as KML (text) file.
Next, you can use Python to extract the place names from the KML file.
Here's some sample code using pykml module to parse out the place names.
from pykml import parser
with open('places.kml') as f:
root = parser.parse(f).getroot()
# iterate over each placemark
for pm in root.Document.Placemark:
name = pm.name.text
print(name)
I'm trying to save a large number of images in JPEG format. Each file combines 2 layers visible on the screen. To achieve this, I've recorded a simple action that saves the file as X.jpg. I don't mind the fact that it saves the next file as X copy.jpg, but the problem occurs when trying to save the 3rd image (and other consecutive images), as instead of creating another file, it replaces the previous X copy.jpg file with the 3rd image.
Does anyone know how to instruct it to keep creating new files instead of rewriting the X copy one?
I need to be able to use the WEKA Explorer GUI but make the font size bigger for displaying to an audience. I was able to change the fonts for some parts of the text by modifying the call to java in the file RunWeka.ini Specifically, I changed the first uncommented line to
cmd_default=javaw -Dswing.aatext=true -Dswing.plaf.metal.controlFont=Tahoma-plain-18 -Dswing.plaf.metal.userFont=Tahoma-plain-18 -Dfile.encoding=#fileEncoding# -Xmx#maxheap# -Djava.net.useSystemProxies=#systemProxies# #javaOpts# -classpath "#wekajar#;#cp#" #mainclass#
The difference from what comes with the Weka distribution is that I added the first three arguments - the ones that begin with -Dswing. This changes the font size in many places but fails to change a few places as marked in the screen shot below.
Does anyone know how to change the font size for the remaining text? Another argument to java?
I'm trying to create a mute music button:
And I'm doing it by drawing 2 vector lines over a music note vector. I've tried selecting them every which way but whenever I try to take the path → difference nothing happens. Ideally I'd like to subtract the big like (white in the above image) and add the small line.
How would I do this?
Got it. You have to be in the edit paths mode:
You may also need to convert the object into a path. Path → Object to Path
I am creating a chart using raphael.js. In my chart there are rectangles which are connected using arrows. I am exporting this svg using Raphael Export and then converting this svg string to pdf using batik. But in the pdf i am not getting the arrowheads at the connectors connecting the various rectangles in the pdf. I am using raphael graffle for creating connection between rectangles.
I really need those arrows in the pdf. Please let me know what could be the issue.
Also adding defs tag statically and replacing the arrow-head attribute with marker-end-url by manipulating the svg string doesn't looks like a good solution.Is there any other way of doing it.?
I think i have found the issue.
It seems like the issue is with the defs tag(that contains the marker ids) of raphael are not included in exported svg and also marker-end-url attribute is not present in the path elements because of which arrow-heads are not showing.
In path elements of rapahel, while export, instead of marker id another attribute is added which is "arrow-end": "classic-midium-midium". So when i added the defs tag of raphael into my generated svg and replace the arrow-end attribute with the marker-end-url attribute by giving the required value the arrow heads appeared.
But now the issue is with the positioning of arrow heads. In the exported svg the x and y coordinates of horizontal and vertical arrowheads is slightly more which leads to intersection of arrows with the object(rectangles in my case) which doesn't look good. But yes for now i am going with it.I have modify raphael.export.js. So for any one who looking for solution have to add following 2 lines of code in raphael.export.js
1.In R.fn.toSVG function add following after initialization of svg variable at line number 217
You have to append defs tag of raphael to svg variable here. Not able to post here.
2.In the serializer variable where the tag for path is creatd add following line at line number 199
initial['marker-end'] = "url(#raphael-marker-endclassic33)";
Thanks