Changes between Version 8 and Version 9 of FDORfc28


Ignore:
Timestamp:
Oct 21, 2008, 11:31:27 AM (16 years ago)
Author:
gregboone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc28

    v8 v9  
    1 = FDO RFC 28 -  Add Min/Max Expression Functions =
     1= FDO RFC 28 -  Add Start/End Expression Functions =
    22
    33This page contains a request for comments document (RFC) for the FDO Open Source project. 
     
    2828This RFC proposes the following signatures for the new functions:
    2929
    30 double '''MinX'''(<geometry property>);[[BR]]
    31 double '''MinY'''(<geometry property>);[[BR]]
    32 double '''MinZ'''(<geometry property>);[[BR]]
     30double StartX(<geometry property>);[[BR]]
     31double StartY(<geometry property>);[[BR]]
     32double StartZ(<geometry property>);[[BR]]
    3333
    34 double '''MaxX'''(<geometry property>);[[BR]]
    35 double '''MaxY'''(<geometry property>);[[BR]]
    36 double '''MaxZ'''(<geometry property>);[[BR]]
     34double EndX(<geometry property>);[[BR]]
     35double EndY(<geometry property>);[[BR]]
     36double EndZ(<geometry property>);[[BR]]
    3737
    3838All of the above functions accept a geometry property only. The result of the functions depend on the provided geometry:
    3939
    40 If the provided geometry is a point geometry, the result of the Min/Max functions is the x, y, z values of the point.[[BR]]
    41 If the provided geometry is a line, the result of the Min/Max functions is the x, y, z values of the start and end points.[[BR]]
    42 If the provided geometry is a polygon, the result of the Min/Max functions is the x, y, z values of the start and end points of the exterior ring of the polygon.[[BR]]
     40If the provided geometry is a point geometry, the result of the Start/End functions is the x, y, z values of the point.[[BR]]
     41If the provided geometry is a line, the result of the Start/End functions is the x, y, z values of the start and end points.[[BR]]
     42If the provided geometry is a polygon, the result of the Start/End functions is the x, y, z values of the start and end points of the exterior ring of the polygon.[[BR]]
    4343
    4444Like the standard functions listed in RFC 8, the user can get access to the geometric function definitions via the FDO interface !GetWellKnownFunctions. The new functions will be categorized as geometry functions (!FdoFunctionCategoryType_Geometry).
     
    5555FdoPtr<FdoIdentifier> arg1 = FdoIdentifier::Create(L"GEOMETRY");
    5656functionArgs->Add(arg1);
    57 FdoPtr<FdoFunction> computedExpr = FdoFunction::Create(L"MINX", functionArgs);
    58 FdoPtr<FdoComputedIdentifier> computedId = FdoComputedIdentifier::Create(L"POLE_MINX", computedExpr);
     57FdoPtr<FdoFunction> computedExpr = FdoFunction::Create(L"STARTX", functionArgs);
     58FdoPtr<FdoComputedIdentifier> computedId = FdoComputedIdentifier::Create(L"POLE_X", computedExpr);
    5959idColl->Add(computedId);
    6060