Skip to main content
9 events
when toggle format what by license comment
Jun 23, 2021 at 2:24 comment added Cookie Sorry I might get you confused but the '經度' and '緯度' in the table represents the lat/long. In my original post I modified it into lat/long but in fact I code it as ''' uri = "file:///" + path_to_csv + fname + "?encoding=%s&?delimiter=%s&crs=epsg:4326&xField=%s&yField=%s" % ("UTF-8", ";", "經度", "緯度") '''
Jun 22, 2021 at 10:57 comment added Taras I just checked your csv files, I think they do not have lat/long in it (Sorry I can not read Chinese), do not they? Therefore, you can not load them as a vector layer with a location, however, you can do it simply as a table: gis.stackexchange.com/a/133538/99589
Jun 22, 2021 at 10:50 comment added Cookie drive.google.com/drive/folders/…
Jun 22, 2021 at 10:44 comment added Cookie I'll put the short demo file with 3 species in it in the following link. Since I'm using Traditional Chinese, the only keyword you need is '經度' and '緯度' in the attribute table, which represents the X and Y field. And assuming the given files are in a folder ' C:\\Users\\MyPC\\Desktop\\Test '
Jun 22, 2021 at 8:49 comment added Taras Can you please show your csv files? Or share a piece of it?
Jun 22, 2021 at 8:39 comment added Cookie Hi, I've tried to implement your method and try it again. But it seems like the changes doesn't affect the result. I'll try to describe the problem here a bit more. The code seems to grab the files in the folder, which are listed in the Layer panel, while a warning sign appears claiming the sources are missing.(Layer data source could not be found) That's the point I'm very confused since the code certainly found the folder's location otherwise all the csv fils should not appears. :(
Jun 22, 2021 at 5:50 history edited Taras CC BY-SA 4.0
added 87 characters in body
Jun 22, 2021 at 5:14 history edited Taras CC BY-SA 4.0
added 293 characters in body
Jun 22, 2021 at 5:08 history answered Taras CC BY-SA 4.0