Changes between Version 2 and Version 3 of CodeSnippets


Ignore:
Timestamp:
10/15/08 09:22:59 (16 years ago)
Author:
jbirch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSnippets

    v2 v3  
    4242{{{
    4343#!cpp
    44 while (reader.ReadNext()) {
    45         extentAsByteArr = reader.GetExtent();
    46       // if extent type is dynamic and no geometries have been added
    47       // the extent can be null
    48       if (extentAsByteArr != null)
    49       {
    50         geom = geomFactory.CreateGeometryFromFgf(extentAsByteArr);
    51         extentAsText = geom.Text;
    52       }
    53       else
    54       {
    55         extentAsText = "No extent found";
    56       }
    57 }
     44  while (reader.ReadNext()) {
     45    extentAsByteArr = reader.GetExtent();
     46    // if extent type is dynamic and no geometries have been added
     47    // the extent can be null
     48    if (extentAsByteArr != null)
     49    {
     50      geom = geomFactory.CreateGeometryFromFgf(extentAsByteArr);
     51      extentAsText = geom.Text;
     52    }
     53    else
     54    {
     55      extentAsText = "No extent found";
     56    }
     57  }
    5858}}}
    5959