Re: [Qgis-user] check for coordinates in an attribute table for shapefile layer

2022-01-31 Thread geo . guide
Dear Maria,

 

OK, I understand. So you have to do the reverse: update your shapefile geometries with the erroneous updated coordinates in the attribute table. Like Nicholas, I supposed you have to handle point data.

 

You can transfer the coordinates from your table to your geometries with copy and paste.


	Either you still remember the entries on which you have applied changes to or
	you may calculate the differences between actual values (geometries) and desired values (attribute table) in new columns of your table to systematically identify them


Set your point layer to edit mode (toggle editing), the digitizing toolbar should be visible. Select the point you want to apply an update with a right mouse click and the vertex editor appears. There you can transfer your desired coordinates with copy and paste. Up to now I don't know an easy method to update the actual geometry with values in the attribute table automatically (only the reverse).

 

If you are stuck, consider to contact Nicolas via zoom.


 

Regards, Christine

 

Gesendet: Montag, 31. Januar 2022 um 09:48 Uhr
Von: "Maria Shinoto" 
An: "geo.gu...@web.de" 
Betreff: Re: [Qgis-user] check for coordinates in an attribute table for shapefile layer

Dear Christine,

Thank you for your immediate help. I thought of exporting an importing in the worst case. Since I have already prepared a map / print layout with lots of individual positioning of point labels, I wanted to avoid it if possible. I now had a look on the geometry tools.

Thanks a lot,
Maria


> Am 31.01.2022 um 17:22 schrieb geo.gu...@web.de:
>
> Dear Maria,
>
> if you export your shapefile to csv and reimport it in QGIS with your X and Y values as the valid coordinates again, your problem should be solved.
>
> It's possible and better to edit the geometry directly with the geometry tools.
>
> Regards, Christine
>
>
> Gesendet: Montag, 31. Januar 2022 um 09:03 Uhr
> Von: "Maria Shinoto" 
> An: qgis-user@lists.osgeo.org
> Betreff: [Qgis-user] check for coordinates in an attribute table for shapefile layer
> Hi,
>
> I imported a .csv file with about 100 datasets and created a shapefile layer from the X and Y data.
>
> Then I did something stupid. I deleted some duplicates and changed the X and Y data slightly in three or four data sets, and I created a new row with one new data point and X and Y data.
>
> What I did no realize is that the data in X and Y will not be accepted automatically as geo coordinates.
>
> Now I have a map without the full set of points, and I do not know the following:
>
> 1. How do I check quickly, which rows need ne geocoordinates from the X and Y columns?
>
> 2. When I figured which data set need updates, how do get the X and Y data into their geocoordinates and get them shown on the map.
>
> Thanks,
> Maria
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
 



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] check for coordinates in an attribute table for shapefile layer

2022-01-31 Thread Nicolas Cadieux
Hi,
See below 

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 31 janv. 2022 à 03:09, Maria Shinoto  
> a écrit :
> 
> Hi, 
> 
> I imported a .csv file with about 100 datasets and created a shapefile layer 
> from the X and Y data. 

By « dataset » I imagine you mean object like line, polygon and points? Since 
you only talk about x and y, I take for granted that you are talking about 
points.  Do you still have the original .csv file?  That would be useful.
> 
> Then I did something stupid. I deleted some duplicates and changed the X and 
> Y data slightly in three or four data sets, and I created a new row with one 
> new data point and X and Y data.

I guess you moved some points around in the .shp file, created a new x and y 
and updated the geometry from the new x and y?  Can you use the same steps and 
update the geometry from the original x and y or did  these disappear when you 
created the shape file?  

> 
> What I did no realize is that the data in X and Y will not be accepted 
> automatically as geo coordinates. 
> 
> Now I have a map without the full set of points, and I do not know the 
> following:
> 
>1. How do I check quickly, which rows need ne geocoordinates from the X 
> and Y columns?

If you have the original csv, you can use that remake the ordinal file, then, 
in the vector menu, you can substrat (difference I think, I’am not in front of 
a computer)  one vector file from the other.  The difference between both files 
will indicate what changed.  You can also regenerate the new x and y fields 
(like testY and testY) using the field calculator and $x and $y functions.  If 
you don’t have geometries, then those field will come up as empty. 


> 
>2. When I figured which data set need updates, how do get the X and Y data 
> into their geocoordinates and get them shown on the map. 
> 
> Thanks, 
> Maria
> 
I you are still stuck, we could zoom.  I am in Montreal time.
Nicolas 
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] check for coordinates in an attribute table for shapefile layer

2022-01-31 Thread geo . guide
Dear Maria,

 

if you export your shapefile to csv and reimport it in QGIS with your X and Y values as the valid coordinates again, your problem should be solved.

 

It's possible and better to edit the geometry directly with the geometry tools.

 

Regards, Christine

 
 

Gesendet: Montag, 31. Januar 2022 um 09:03 Uhr
Von: "Maria Shinoto" 
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] check for coordinates in an attribute table for shapefile layer

Hi,

I imported a .csv file with about 100 datasets and created a shapefile layer from the X and Y data.

Then I did something stupid. I deleted some duplicates and changed the X and Y data slightly in three or four data sets, and I created a new row with one new data point and X and Y data.

What I did no realize is that the data in X and Y will not be accepted automatically as geo coordinates.

Now I have a map without the full set of points, and I do not know the following:

1. How do I check quickly, which rows need ne geocoordinates from the X and Y columns?

2. When I figured which data set need updates, how do get the X and Y data into their geocoordinates and get them shown on the map.

Thanks,
Maria

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] check for coordinates in an attribute table for shapefile layer

2022-01-31 Thread Maria Shinoto
Hi, 

I imported a .csv file with about 100 datasets and created a shapefile layer 
from the X and Y data. 

Then I did something stupid. I deleted some duplicates and changed the X and Y 
data slightly in three or four data sets, and I created a new row with one new 
data point and X and Y data. 

What I did no realize is that the data in X and Y will not be accepted 
automatically as geo coordinates. 

Now I have a map without the full set of points, and I do not know the 
following:

1. How do I check quickly, which rows need ne geocoordinates from the X 
and Y columns?

2. When I figured which data set need updates, how do get the X and Y 
data into their geocoordinates and get them shown on the map. 

Thanks, 
Maria

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user