[Qgis-user] Question on how to add data to shapefiles

Kumaran Narayanaswamy kumaran.narayanaswamy at kcubeconsulting.com
Mon Dec 7 17:34:06 PST 2009


Hello Katie,

 

You can use the Ftools Plugin -  Join Attribute tool to do this. Store your
ASCII file as DBF file and using the Join attribute tool using the Join
field (IED) you can link the attributes to the shape file.

 

Hope this helps.

 

Regards

Kumaran

 

From: qgis-user-bounces at lists.osgeo.org
[mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of Carbonari, Katie
(IS)
Sent: Monday, December 07, 2009 7:24 PM
To: Swapnil Chaudhari
Cc: qgis-user at lists.osgeo.org
Subject: RE: [Qgis-user] Question on how to add data to shapefiles

 

 

Thanks for the advice. To answer your question, my grid is not a regular
grid. My grid is defined in one of my shapefiles. When you look at the
shapefile in Attribute table, this is what you see:

IED     X             Y        KS
1   453780.594 3961930.333     3
2   515181.635 3977431.333     3
3   568577.604 4179629.000     3


where IED is the cell number I mentioned before, X and Y are in UTM
coordinates, don't know what KS (it's always 3). So the ascii file I want to
add has 2 columns, the first being 1 through length of file that corresponds
with the IED value in my shapefile and the second column is the data.

Thanks,
Katie


-----Original Message-----
From: Swapnil Chaudhari [mailto:sslan at rediffmail.com]
Sent: Sat 12/5/2009 7:17 AM
To: Carbonari, Katie (IS)
Cc: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] Question on how to add data to shapefiles



Dear Katie,

There is a way to get this work done, I'm not sure if it is the right way
though.

Use the plugin name delimited text layer. You will have to save your ASCII
file to .csv format which is possible in windows notepad.

Feed in the details when you open the plugin.

What surprises me is, ".....There are 200,000 lines in each ASCII file, with
each line corresponding to the cell numbers in the shapefiles." I'm not sure
what you mean by cell number. Is it raster that has been converted to
vector.



Hope it works

Cheers



On Fri, 04 Dec 2009 21:54:01 +0530  wrote

>





>



>



Good morning. I'm new to GIS and very new to QGIS. I have 3 files I need to
visualize. 2 are shapefiles that I easily visualized in QGIS. The other file
is an ASCII text file that has various parameters. There are 200,000 lines
in each ASCII file, with each line corresponding to the cell numbers in the
shapefiles. I want to visualize the data in the ASCII file using the same
grid in the shapfiles. Does anyone know a way to do this? Any help would be
appreciated.

>



>

Thanks,

>

Katie









_______________________________________________



Qgis-user mailing list



Qgis-user at lists.osgeo.org



http://lists.osgeo.org/mailman/listinfo/qgis-user





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20091208/5c4d095d/attachment.html>


More information about the Qgis-user mailing list