olivierdalang / VectorBender

VectorBender is a QGis plugin
GNU General Public License v3.0
37 stars 15 forks source link

Translation of layer is not working #24

Open NPennanen opened 4 years ago

NPennanen commented 4 years ago

I have a vector layer that was georeferenced somewhere else and it ended up just a bit off. I have been trying to move it to the proper location using the VectorBender plugin but it doesn't seem to work. When I run the plugin with the line of translation laid out, the dialog box indicates the process was successful. Then I look at my layer and it is in the same location.

I know it's not an overall failure of the plugin or an issue with dependencies because if I draw a new polygon and try to translate it using the same process, it is successful. I think there must be something about the existing layer that is "anchoring" it in place. I tried reprojecting the layer so it would be in the same CRS as the project and that didn't help anything.

I know there is a lot more data on this layer than on the polygon I just made to test this plugin. So I think it's something about the information held in this layer that's preventing an effective translation. I just don't know what it is.

magerlin commented 4 years ago

I just experienced exactly the same. I think it has to do with some projection issues.

I exported both layers with lat/lon (WGS 84 EPSG:4326) as Coordinate Reference System and now it worked smoothly :-)

willemhoffmans commented 4 years ago

Thanks, this information helps me a lot! But, unfortunately, my problem is not completely solved.

I have a vector layer in EPSG:28992 (Dutch coördinate system), leading to no transformation, as NPennanen says. Converting it to EPSG:4326 and then using Vector Bender works partly. When I use a transformation with 2 points, it works, but the layer needs to be bended also, it seems. So I have to define 4 points. Afer that, however, QGIS crashes.

So the above solution seems to be OK, except when you need a Bending (4 pairs) transformation.

wingo1 commented 4 years ago

THE CRS of the origin and the "Vector Bender" must be the same.