<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Do you have elevation data stored in the source data somewhere? You can convert lines to points using QGIS Vector tool -> Extract Nodes, but if you do not have elevation values stored in the attribute table for the lines, it won't help you :)<div><br></div><div>Feel free to share a zipped set of files with me (directly) if you want me to take a peek.</div><div><br></div><div>Tyler<br><div><br><div><div>On 2013-01-29, at 1:28 PM, Murat BEYHAN wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=iso-8859-9" http-equiv="Content-Type">
<meta content="OPENWEBMAIL" name="GENERATOR">
<div bgcolor="#ffffff">
Dear
Mitchell,
<br>Thanks for repply
me.
<br>As you say I have to obtain point data first. If I would able to obtain
xyz data it will be easy using GMT xyz2grd.
<br>But my problem I could not do that. So I produced point data using ogr2ogr
command and it is drawn by qgis
well
<br>The picture on this mail. Lines belongs shapefile and points belongs GMT
data. But there is a problem its atribute table are
null
<br>and ogrinfo gives 0.0 for the field structure. So is this normal or not.
And I couldn't achieve to use gdal_grid using GMT data
file.
<br>Do you have any
idea, please.
<br>Thanks
<br>
<br>murat@murat:~/maps$ ogr2ogr -f "GMT" -nlt point test1.gmt
e34c3_n.shp
<br>murat@murat:~/maps$ ogrinfo -so -al test1.gmt
<br>INFO: Open of
`test1.gmt'
<br> using driver `GMT'
successful.
<br>
<br>Layer name:
test1
<br>Geometry:
Point
<br>Feature Count:
341440
<br>Extent: (697857.170000, 4597069.190000) - (708674.200000,
4611236.780000)
<br>Layer SRS
WKT:
<br>(unknown)
<br>UserId: Real
(0.0)
<br>FNODE_: Real
(0.0)
<br>TNODE_: Real
(0.0)
<br>LPOLY_: Real
(0.0)
<br>RPOLY_: Real
(0.0)
<br>LENGTH: Real
(0.0)
<br>CVRGE34C3#: Integer
(0.0)
<br>CVRGE34C3-: Integer
(0.0)
<br>DETAY: String
(0.0)
<br>SEMBOL: Integer
(0.0)
<br>YUKSEKLIK: Real
(0.0)
<br>
<br>
<br>
<br>
<br>
<br><font size="2"><b>On Tue, 29 Jan 2013 12:05:17 -0800, Tyler Mitchell
wrote</b>
<br>>
gdal_grid command can convert OGR to GDAL formats, but you need to only have
point data. Your line shape file won't work with
it.
<br>> So if you can
convert your lines into a set of points, and you will need a Z or elevation
point or attribute to point gdal_grid
to.
<br>>
<br>> Perhaps you already
have the point data in your grass dataset that you could export to GDAL.
But I also suspect you just do all you need to in grass
itself.
<br>>
<br>>
Tyler
<br>>
<br>> On 2013-01-29, at 11:04 AM, Murat BEYHAN
wrote:
<br class="Apple-interchange-newline"><blockquote type="cite">
<br>> Dear
All,
<br>>
<br>> Is it possible to obtain dem grid data from shapefile
using gdal or
ogr.
<br>> info about shape file as
follows
<br>>
<br>>
murat@murat:~/maps$ ogrinfo -so -al
e34c3_n.shp
<br>> INFO: Open of
`e34c3_n.shp'
<br>> using driver `ESRI
Shapefile'
successful.
<br>>
<br>> Layer name:
e34c3_n
<br>> Geometry:
Line
String
<br>> Feature Count:
4047
<br>> Extent: (697857.170000,
4597069.190000) - (708674.200000,
4611236.780000)
<br>> Layer SRS
WKT:
<br>>
(unknown)
<br>> UserId: Real
(11.0)
<br>> FNODE_: Real
(11.0)
<br>>
TNODE_: Real
(11.0)
<br>> LPOLY_: Real
(11.0)
<br>> RPOLY_: Real
(11.0)
<br>> LENGTH: Real
(18.5)
<br>> CVRGE34C3#: Integer
(5.0)
<br>>
CVRGE34C3-: Integer
(5.0)
<br>> DETAY: String
(12.0)
<br>> SEMBOL: Integer
(3.0)
<br>> YUKSEKLIK: Real
(12.3)
<br>>
<br>> I have installed and use
grass, GMT and qgis, but I'm not good at GIS.
My
<br>> purpose is to
obtain slope map of topographic data.
<br>>
<br>> any suggestion
appreciated.
<br>>
Regards
<br>>
<br>>
Murat
<br>>
<br>> --
<br>>
This message has been scanned for viruses
and
<br>> dangerous content by
MailScanner, and
is
<br>> believed to be
clean.
<br>>
<br>>
_______________________________________________
<br>> gdal-dev mailing
list
<br>> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<br>>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
<br>>
</blockquote>
<br>>
<br>>
<span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; " class="Apple-style-span"><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; " class="Apple-style-span">
<br>> <span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; " class="Apple-style-span">
<br>> <span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; " class="Apple-style-span"><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium; " class="Apple-style-span">
<br>>
<br class="Apple-interchange-newline">
<br>>
<br>>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="width: 1036px; position: static; z-index: auto;" class="MsoNormalTable">
<tbody>
<tr><td valign="top" style="padding: 0in;">
<br>> <b><span style="font-size: 10pt; font-family: Arial,sans-serif; color: black;">Tyler
Mitchell</span></b><b><span style="font-size: 10pt; font-family: Arial,sans-serif; color: black;"><o:p></o:p></span></b>
<br>> <span style="font-size: 10pt; font-family: Arial,sans-serif; color: rgb(102, 102, 102);">Engineering
Director
<br>> Actian
Corporation</span>
<br>>
</td></tr>
<tr style="height: 9pt;"><td valign="top" style="padding: 0in; height: 9pt;"><font face="Arial, sans-serif" color="#0000ff" class="Apple-style-span"><span style="font-size: 13px; line-height: 16px;" class="Apple-style-span"><u><a href="mailto:tyler.mitchell@actian.com">tyler.mitchell@actian.com</a>
<br>>
</u></span></font>
<br>>
</td></tr>
<tr><td valign="top" style="padding: 0in;">
<br>>
<span style="font-family: Calibri,sans-serif; font-size: 15px;" class="Apple-style-span"><span style="font-size: 10pt; font-family: Arial,sans-serif; color: rgb(0, 150, 186);">MOBILE </span></span><span style="font-family: Calibri,sans-serif; font-size: 15px;" class="Apple-style-span"><span style="font-size: 10pt; font-family: Arial,sans-serif; color: rgb(102, 102, 102);">250-303-1831</span></span>
<br>> <span style="font-size: 10pt; font-family: Arial,sans-serif; color: rgb(0, 150, 186);">SKYPE</span><span style="font-size: 10pt; font-family: Arial,sans-serif; color: rgb(102, 102, 102);"> spatialguru</span><span style="font-size: 10pt; font-family: Arial,sans-serif; color: rgb(31, 73, 125);">
<br>>
</span><a style="color: blue; text-decoration: underline;" target="_blank" href="http://www.actian.com/"><span style="font-size: 10pt; font-family: Arial,sans-serif; color: rgb(227, 102, 36);">www.actian.com
<br>>
</span></a></td></tr>
</tbody>
</table>
</span></span></span></span></span>
<br>>
<br>> --
<br>> This message has been scanned for viruses
and
<br>> dangerous content
by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and
is
<br>> believed to be
clean.
<br>
<br>
<br>Murat Beyhan
<br>
Jeofizik Yük. Müh.
<br>
T.C.
<br>
BAŞBAKANLIK
<br>
Afet ve Acil Durum Yönetimi Başkanlığı
<br>
Deprem Dairesi Başkanlığı
<br>
Eskişehir Yolu 12. Km. Lodumlu/Ankara
<br>
Tel:+90 (312) 2872680-1550
<br>
<br>
</font>
<br>--
<br>This message has been scanned for viruses and
<br>dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br>believed to be clean.
</div>
<span><map.jpg></span></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><br class="Apple-interchange-newline"><br></div><div><div style="text-align: left; "><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width: 1036px; position: static; z-index: auto; "><tbody><tr><td valign="top" style="padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 12pt; "><b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: black; ">Tyler Mitchell</span></b><b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: black; "><o:p></o:p></span></b></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; line-height: 12pt; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(102, 102, 102); ">Engineering Director <br>Actian Corporation</span><br></div></td></tr><tr style="height: 9pt; "><td valign="top" style="padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; height: 9pt; "><font class="Apple-style-span" color="#0000ff" face="Arial, sans-serif"><span class="Apple-style-span" style="font-size: 13px; line-height: 16px; "><u><a href="mailto:tyler.mitchell@actian.com">tyler.mitchell@actian.com</a><br></u></span></font><br></td></tr><tr><td valign="top" style="padding-top: 0in; padding-right: 0in; padding-bottom: 0in; padding-left: 0in; "><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; line-height: 12pt; "><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(0, 150, 186); ">MOBILE </span></span><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(102, 102, 102); ">250-303-1831</span></span></div><div style="margin-top: 0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 12pt; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(0, 150, 186); ">SKYPE</span><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(102, 102, 102); "> spatialguru</span><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125); "><br></span><a href="http://www.actian.com/" target="_blank" style="color: blue; text-decoration: underline; "><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(227, 102, 36); ">www.actian.com<br></span></a></div></td></tr></tbody></table></div></div></span></span></div></span></div></span></span>
</div>
<br></div></div></body></html>