<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1452505038758_9397"><span></span></div>Thank you for the reply Mr. Flannigan,<br><br>Sadly I have no knowledge of Perl.<br><div id="yui_3_16_0_1_1452505038758_9469" dir="ltr">If its "Geo::ShapeFile" module uses the same C# GDAL bindings (or is based on them), then I might try to take a look at your Perl code.<br>If not, then I guess I can not make use of it.<br><br>I respect the intention to help, though.<br><br>Kind regards,<br>Djordje Spasic<br></div><div id="yui_3_16_0_1_1452505038758_9426" class="qtdSeparateBR"><br></div><div style="display: block;" id="yui_3_16_0_1_1452505038758_9331" class="yahoo_quoted">  <div id="yui_3_16_0_1_1452505038758_9330" style="font-family: verdana, helvetica, sans-serif; font-size: 13px;"> <div id="yui_3_16_0_1_1452505038758_9329" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1452505038758_9445" dir="ltr"> <font id="yui_3_16_0_1_1452505038758_9446" size="2" face="Arial"> <hr id="yui_3_16_0_1_1452505038758_9505" size="1"> <b><span style="font-weight:bold;">From:</span></b> Mike Flannigan <mikeflan@att.net><br> <b><span style="font-weight: bold;">To:</span></b> gdal-dev@lists.osgeo.org <br><b><span style="font-weight: bold;">Cc:</span></b> issworld2000@yahoo.com<br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, January 11, 2016 3:11 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [gdal-dev] Reading the points from shp file<br> </font> </div> <div id="yui_3_16_0_1_1452505038758_9328" class="y_msg_container"><br><br>I can't help with the ironpython problem you are<br>having, but I have a couple of Perl scripts that<br>strip data from shp files.  They are not likely<br>to do what you want, but I could try it if you<br>want me to.<br><br>One of them says this:<br><br># This program extracts data from shp and shx files<br># and places the data into the $outfile.  Place both<br># the .shp and .shx file in the C:/Copy directory.<br># The output file is also created in the same directory.<br><br>I can also send the files if you run Perl.  They use<br>the Geo::ShapeFile module.<br><br><br>Mike<br><br><br>On 1/10/2016 2:00 PM, <a ymailto="mailto:gdal-dev-request@lists.osgeo.org" href="mailto:gdal-dev-request@lists.osgeo.org">gdal-dev-request@lists.osgeo.org</a> wrote:<br>> Hello,<br>><br>> I am trying to read the point geometry from .shp file in ironpython 2.7, by using C# gdal bindings (downloaded from gisinternals).<br>> There is a tutorial on how this can be done on gdal.org, but it's in C, C++ and Python languages, with which I am not familiar with (I am familiar with python, but the syntax is completely different from C# gdal bindings syntax).<br>><br>> I googled a bit, and found the ogrinfo C# file example by Tamas Szekeres, which helped me to replicate what I want in ironpython, but only partly.<br>> What I need is to get the points of each line and polygon from .shp file.I checked the Ogr.Geometry class, but I still do not understand how to do it.I tried using Ogr.Geometry.GetX/Y/Z method:<br>><br>><br>> feat = layer.GetNextFeature()<br>> geom = feat.GetGeometryRef()<br>> sub_geom = geom.GetGeometryRef(i)<br>> print sub_geom.GetX(i), sub_geom.GetY(i), sub_geom.GetZ(i)<br>><br>><br>> But it is not working. I can read only 47 points in this way, while the .shp file has much more points than those 47.<br>><br>> I would be very grateful for any kind of advice.<br>><br>> Thank you in advance.<br>><br>> Kind regards,<br>> Djordje Spasic<br><br><br><br></div> </div> </div>  </div></div></body></html>