[Gdal-dev] About ogrinfo
Lijian Shi
lijian.shi at und.nodak.edu
Thu Mar 1 21:59:47 EST 2007
Hi,
I am a new guy of OGR. Today I use the followed command to browse the
information of a shp file:
ogrinfo -al polygon.shp
The result is the below. But when I read the code of ogrinfo, I did not find
the code used to print the information in red color(see below). Dose anyone
know which part of the code to do that job?
Best regards,
Lijian
INFO: Open of `polygon.shp'
using driver `ESRI Shapefile' successful.
Layer name: polygon
Geometry: Polygon
Feature Count: 34
Extent: (-100.098424, 44.963097) - (-100.083363, 44.966678)
Layer SRS WKT:
(unknown)
SHAPEAREA: Real (10.2)
RATE: Real (10.2)
OGRFeature(polygon):0
SHAPEAREA (Real) = 4.15
RATE (Real) = 170.00
POLYGON ((-100.098188735462756 44.966701411517263,-100.083332738651549
44.966617726539234,-100.083331471183172
44.96649894786075,-100.087000792125792
44.966571834777092,-100.085369560328502
44.965557716817564,-100.0851654979203
44.964606587551181,-100.084887922346397
44.964480610164905,-100.085194649692895
44.964606587551181,-100.085383502480624
44.965557716817564,-100.08730751947229
44.966344175643322,-100.087292309851804
44.966333377581641,-100.089114929373565
44.966364871928207,-100.089114929373565
44.966364871928207,-100.087263158079196
44.966344175643322,-100.087263158079196
44.966551138492207,-100.094440831480952
44.966581733000297,-100.094463645911674
44.966602429285189,-100.096729879364318
44.966552038330676,-100.096722274554082
44.966571834777092,-100.096757763668549
44.966552038330676,-100.096780578099285
44.966551138492207,-100.096783113036025
44.966537640915099,-100.097290100385607
44.966250592442087,-100.097756528747226
44.966033731369997,-100.097944114066578
44.965689993073156,-100.097771738367712
44.966033731369997,-100.096794520251393
44.966561036715412,-100.098195072804614
44.966561036715412,-100.098188735462756 44.966701411517263))
OGRFeature(polygon):1
SHAPEAREA (Real) = 0.08
RATE (Real) = 170.00
POLYGON ((-100.096823672023987 44.966305482588965,-100.096868033417081
44.966054427654882,-100.097086037977405
44.965578413102456,-100.097173493295202
44.965133892896596,-100.097257146207895
44.964906233762825,-100.097260948613012
44.964906233762825,-100.097101247597891
44.965578413102456,-100.096823672023987 44.966305482588965))
OGRFeature(polygon):2
SHAPEAREA (Real) = 0.11
RATE (Real) = 170.00
POLYGON ((-100.094140441476313 44.964948526171071,-100.09396806577746
44.965268868667607,-100.09396806577746
44.965713388873468,-100.093952856156974
44.965971642515335,-100.094186070337784
44.966250592442087,-100.09419367514802
44.966259590826823,-100.093923704384366
44.965982440577015,-100.093909762232258
44.965268868667607,-100.094140441476313 44.964948526171071))
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070301/5373e8ca/attachment.html
More information about the Gdal-dev
mailing list