|
Posted by ZMY on July 24, 2007, 2:07 am
Please log in for more thread options
Dear all,
Could any one give me a hint of display a data table below on a city
map, with size proportional to variable "size"?
Name Size Lat Lon
A 18 35.2 -118.0
B 0.3 35.1 -117.9
...
I am really new to GIS, and I have to use Quantum-GIS (0.8.1 on WinXP)
because it is free. But it doesn't come with a complete introduction
manual...
Thanks a lot in advance,
ZMY
|
|
Posted by brunclik on July 24, 2007, 8:38 am
Please log in for more thread options
First make sure you have the "Add delimited text layer" plugin - look
into menu Plugins | Plugin Manager and enable it. Open the map you
want to add the data to.
If the file looks like shown, it is either multiple-space or TAB
separated (delimited) file. It is needed* to change it to something
else, preferably to comma separated file. Do it by opening it in a
spreadsheet and then saving it as a .csv (comma separated) file. When
opening, you can set both space and TAB as delimiters and check also
the "group delimiters" option (or whatever it is named in your
software). When saving, you may need to check an option to customize
the export and select the comma separator. I did it in
OpenoOffice.org, but Excell or any other spreadsheet should do
simirally.
Then click the "T" icon of the "Add delimited text layer" plugin
(Usually on the left of the main icon tollbar) or use the Plugins menu
to launch the plugin. Open the .csv file in the plugin dialog. It
should work out of the box including automatic recognition of "lat"
and "lon" columns data as the x,y coordinates. If not, you can
customize the dialog and press the "Parse" button. Last thing is to
press to "Add layer" button.
Now you should have opened the csv file in the map. It is good idea to
save it as shapefile through right-clicking the layer name in the list
of opened layers. Then, by double clicking the same name you get the
dialog to set its properties, where you can change the "single symbol"
to something else to get different look of each point. You can create
classess or use unique values. By default every symbol will have
differnet color, but the same size. I do not know of an automatic way
to set the size of symbol by attribute value, but of course you can do
it manually - for few values using Unique Symbols and for more using
Grauated Symbol with classes (which does not work for me in QGIS 0.8
Linux).
Tomas IV.
* note: Later I found that if you have a TAB delimited file, you can
use it directly, without fiddling with spreadsheet import/export. Only
it is not possible to put the TAB into the delimiter filed in the
plugin dialog just by pressing the TAB key of your keyboard. But you
can for example open your .csv file in a text editor and copy and
paste the TAB separator from there with Ctrl-C, Ctrl-V.
> Dear all,
>
> Could any one give me a hint of display a data table below on a city
> map, with size proportional to variable "size"?
>
> Name Size Lat Lon
> A 18 35.2 -118.0
> B 0.3 35.1 -117.9
> ...
>
> I am really new to GIS, and I have to use Quantum-GIS (0.8.1 on WinXP)
> because it is free. But it doesn't come with a complete introduction
> manual...
>
> Thanks a lot in advance,
>
> ZMY
|
|
Posted by brunclik on July 24, 2007, 8:46 am
Please log in for more thread options On 24 ec, 14:38, brunc...@atlas.cz wrote:
> Then click the "T" icon of the "Add delimited text layer" plugin
> (Usually on the left of the main icon tollbar)
Oh, it's on the right side of the toolbar, of course...
|
| Similar Threads | Posted | | TAB to SHP problem! | December 15, 2006, 8:14 am |
| Simple GIS Problem ? | November 11, 2004, 5:41 am |
| Problem with mapserver | March 4, 2005, 7:18 pm |
| problem with Map Server | April 23, 2005, 4:46 pm |
| problem with 3d analist | January 5, 2006, 9:03 am |
| Point in polygon problem - Help please | June 16, 2004, 10:22 am |
| problem with Thiessen polygon dll | July 29, 2004, 11:49 am |
| Problem compiling MapServer | November 29, 2004, 4:15 am |
| Printing Problem in ArcGIS | January 2, 2007, 10:40 am |
| Problem with DEM in a flat area | April 19, 2007, 12:28 am |
|