Mateusz,
You have to set relativeToVRT to 0 if you want to use absolute path.
2011/8/13 Mateusz Kędzior
>
>
> W dniu 13 sierpnia 2011 08:05 użytkownik Chaitanya kumar CH <
> chaitanya...@gmail.com> napisał:
>
>> Mateusz,
>>
>> This is what I did to process evap_OBC.asc ...
>>
>> 1. Run the comm
W dniu 13 sierpnia 2011 08:05 użytkownik Chaitanya kumar CH <
chaitanya...@gmail.com> napisał:
> Mateusz,
>
> This is what I did to process evap_OBC.asc ...
>
> 1. Run the command "gdal2xyz.py -csv evap_OBC.asc evap_OBC.csv". I got a
> csv file.
> 2. Edited the file evap_OBC.csv to add the line "L
Mateusz,
This is what I did to process evap_OBC.asc ...
1. Run the command "gdal2xyz.py -csv evap_OBC.asc evap_OBC.csv". I got a csv
file.
2. Edited the file evap_OBC.csv to add the line "Longitude,Latitude,Value"
(without the quotes) at the beginning.
3. Created a file named evap_OBC.vrt with th
Hi Chaitanya,
but there is no example with CSV file stored in local hard disc.
I see an example with shp file - there is no full path to it...
but as I tell, when I leave only filename of CSV and use ogrinfo tool on
such VRT file, I get information about empty file without any geometry or
tables o
Mateusz,
Refer to OGR's VRT format driver page.
http://www.gdal.org/ogr/drv_vrt.html
2011/8/11 Mateusz Kędzior
> Hi Chaitanya,
>
> I try to add full path to csv file - is it correct?
>
> ===NEW VRT
> FILE
>
>
Hi Chaitanya,
I try to add full path to csv file - is it correct?
===NEW VRT
FILE
"/media/windows/studia/2_sem_mgr/mgr/prof_Zawadzki/dods/gldas/00Z07Apr2009_00Z15Apr2009/evap_OBCXYZn.csv"
wkbPoint
What is the output of ogrinfo on the .vrt file?
2011/8/11 Mateusz Kędzior
> Hi Chaitanya,
>
> I say that I don't need to create VRT file, but I was wrong. When I try to
> run ogr2ogr utility:
> *
> ogr2ogr -f GML output_file.gml input_file.csv*
>
> I discover that created file contain only table
Hi Chaitanya,
I say that I don't need to create VRT file, but I was wrong. When I try to
run ogr2ogr utility:
*
ogr2ogr -f GML output_file.gml input_file.csv*
I discover that created file contain only table - if I choose ESRI shapefile
as output, I get only dbf file.
So i try to generate such fi
Mateusz,
You have to change the OGRVRTLayer name property to point to the file name
without the extension. Also change the SrcDataSource element.
FYI, this process creates a vector file with points. gdal_polygonize
produces polygons.
2011/8/10 Mateusz Kędzior
> Hi again,
>
> is it mandatory t
Hi again,
is it mandatory to create such file?
Regarding to information on GDAL/OGR page should I create simple text file
which contains only other OGRVRTLayer name property :
test.csv
wkbPoint
WGS84
==
Best regards,
Mateusz
W dniu 9 sier
Create a text file with just the header. Use the cat command to join this
file and the xyz file.
$ cat HeaderFile.csv file1.csv > file1.csv
You can repeat this on all files in a shell script.
Otherwise add the following line in the gdal2xyz.py script at line 144 [1].
dst_fh.write( 'Longitude,Lati
Chaitanya,
if I understand properly, I need to add one line to each of processed files.
How I can do it quickly? Is there any option in gdal2xyz.py script?
If no - what would You recommend?
I think about sed utility, but it's general difficult in use.
When I am thinking about Python I see only o
Mateusz,
gdal2xyz.py creates space delimited fields. Consider running it with the
-csv option to delimit it with comma.
Now you can almost use it as a csv format vector file. You just need to add
a header row and define a small VRT file as described in OGR's CSV driver
page[1].
Run ogrinfo and ogr
Hello,
I would like to show value of each raster cell as label. My idea (I don't
know any plugin or any functionality in GDAL/OGR which allow to do it
easier) is to export raster using gdal2xyz.py into coordinates-value format
and then save it as vector (GML or shapefile). For this second task, I
14 matches
Mail list logo