csv QGIS:我所有的点都在大西洋结束

whlutmcx  于 2022-12-15  发布在  其他
关注(0)|答案(1)|浏览(103)

我按照QGIS网页中的tutorial指南操作,但无法从指南中的.csv文件正确导入数据集。
Here可以下载.csv文件
Here您可以下载shape .shp文件
1.我只需在QGIS内部双击shp即可将其导入
1.我按了ctrl+L以打开分隔文本图层窗口
1.从那里我选择了.csv文件使用x作为经度和y作为纬度

这是结果

Wrong point localization

我所做的

1..csv文件中的经纬度坐标看起来正确
1.我从世界Map上复制了一个位置坐标(在我的例子中爱尔兰),并创建了一个包含这些坐标的test .csv文件。当导入csv文件到我的项目中时,它被放置在大西洋上,而不是爱尔兰。
这是bug吗?我真的不明白发生了什么。
正如您所看到的,这些点分布得相对较好,这意味着原始信息是正确的,但有一些与点的比例有关的东西不起作用(即使坐标不模糊)

7cjasjjr

7cjasjjr1#

You will need to know a few things.
1.If the files you are using have coordinates systems assigned to them. I am unsure about shp files as i deal mainly in Mesh Datasets and Rasters. I do know that the CSV coordinates or Text file coordinates if they are GPS values ie:Lat Long have to be saved into a co-ordinates system value and that the QGIS project has to use the same coordinate system. The system uses the GPS coordinates to place the points accurately on the QGIS map. My Method is to use a site like bbox and use my Coordinates system of choice and record these Lat Long values into .CSV and then copy the same CRS settings from bbox within QGIS project then the shp and or imported files end up placed correctly when you load the imported text file layer or shp file. Also file formatting is important for text files like you have ie:CSV. If you set the CRS within the QGIS project if the layer you import in is from another CRS QGIS will automatically change this to the CRS you have set. If you do not have geographic information setout correctly you will have the problem you have now also another problem is if the file does not contain CRS information at all. But from what you are telling us this looks like a CRS mismatch problem.
2.What the coordinates system is for the files you have ie:epsg 4326 or 3857 these are two very different different systems that can drastically alter the placement of your points.
3.If they dont have a coordinate system assigned to them then you will need to assign one and use this same coordinates system within QGIS project before you import in the files. . 4.If the files do contain coordinate systems references then in QGIS you will need to set the project CRS system to the same as the files you have. This will apply the CRS to all layers you add to this project weather they are vectors, mesh, rasters and or base layers.
Good luck.

相关问题