<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>RE: [Qgis-user] Question on how to add data to shapefiles</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hello Katie,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hope this helps.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Kumaran<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
qgis-user-bounces@lists.osgeo.org [mailto:qgis-user-bounces@lists.osgeo.org] <b>On
Behalf Of </b>Carbonari, Katie (IS)<br>
<b>Sent:</b> Monday, December 07, 2009 7:24 PM<br>
<b>To:</b> Swapnil Chaudhari<br>
<b>Cc:</b> qgis-user@lists.osgeo.org<br>
<b>Subject:</b> RE: [Qgis-user] Question on how to add data to shapefiles<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p style='margin-bottom:12.0pt'><span style='font-size:10.0pt'>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:<br>
<br>
IED    
X            
Y        KS<br>
1   453780.594 3961930.333     3<br>
2   515181.635 3977431.333     3<br>
3   568577.604 4179629.000     3<br>
<br>
<br>
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.<br>
<br>
Thanks,<br>
Katie<br>
<br>
<br>
-----Original Message-----<br>
From: Swapnil Chaudhari [<a href="mailto:sslan@rediffmail.com">mailto:sslan@rediffmail.com</a>]<br>
Sent: Sat 12/5/2009 7:17 AM<br>
To: Carbonari, Katie (IS)<br>
Cc: qgis-user@lists.osgeo.org<br>
Subject: Re: [Qgis-user] Question on how to add data to shapefiles<br>
<br>
<br>
<br>
Dear Katie,<br>
<br>
There is a way to get this work done, I'm not sure if it is the right way
though.<br>
<br>
Use the plugin name delimited text layer. You will have to save your ASCII file
to .csv format which is possible in windows notepad.<br>
<br>
Feed in the details when you open the plugin.<br>
<br>
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.<br>
<br>
<br>
<br>
Hope it works<br>
<br>
Cheers<br>
<br>
<br>
<br>
On Fri, 04 Dec 2009 21:54:01 +0530  wrote<br>
<br>
><br>
<br>
<br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
><br>
<br>
<br>
<br>
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.<br>
<br>
><br>
<br>
<br>
<br>
><br>
<br>
Thanks,<br>
<br>
><br>
<br>
Katie<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<br>
<br>
<br>
Qgis-user mailing list<br>
<br>
<br>
<br>
Qgis-user@lists.osgeo.org<br>
<br>
<br>
<br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br>
<br>
<br>
</span><o:p></o:p></p>

</div>

</body>

</html>