#OSGEO IRC Log - 2010-01-24

For logs after Feb 3, 2007, all times are GMT-8. Prior logs are GMT-9.
Back to Logs
08:02:56 nelson: Python OGR question: should I be able to do this: feature.GetGeometryRef( ).getNumPoints( ) ?
08:03:46 nelson: Because this works: for count in range( 10 ): print feature.GetGeometryRef( ).getX( count )
08:04:12 nelson: and I'm thinking that this is the right documentation: http://www.gdal.org/ogr/classOGRLineString.html
08:04:13 sigq: Title: OGR: OGRLineString Class Reference ( at www.gdal.org )
08:04:27 crschmidt: nelson: capital 'g' in Get?
08:04:41 crschmidt: nelson: in both, I'd expect...
08:04:45 crschmidt: Surprised getX works
08:04:47 nelson: Not according to the documentation
08:04:52 crschmidt: nelson: the python documentation?
08:04:57 crschmidt: nelson: that thing you linked is C
08:05:44 nelson: sure, but the class structure is the same, as are the function calls ... or so I understand ( perhaps wrongly )
08:05:59 crschmidt: nelson: are you sure your getX in Python works, or is it GetX?
08:06:27 crschmidt: nelson: in Python code I have lying around, I have GetPointCount
08:06:36 nelson: GetX, sorry.
08:07:50 nelson: that works. /me is confused by function call renaming.
08:08:04 : * nelson hugs len( geom ) as being more pythonic
08:11:13 nelson: there .... I fixed it. len( geom ) now works. Now to figure out how to get it into SWIG
08:11:32 nelson: thanks for the help, crschmidt .
14:23:14 : -osgeologger- I am logging this channel at http://www.mapserv.nl/irc/
16:51:45 CIA-9: osgeo: hamish * r2948 /livedvd/gisvm/trunk/bin/install_opencpn.sh: script to install OpenCpn GPS navigation software
16:51:46 sigq: osgeofeed: Changeset [2948]: script to install OpenCpn? GPS navigation software <http://trac.osgeo.org/osgeo/changeset/2948>
19:40:34 CIA-9: osgeo: hamish * r2949 /livedvd/gisvm/trunk/bin/ ( install_geomajas.sh install_ossim.sh ): set svn props
19:40:35 sigq: osgeofeed: Changeset [2949]: set svn props <http://trac.osgeo.org/osgeo/changeset/2949>