Changes between Version 1 and Version 2 of MapGuideRfc158


Ignore:
Timestamp:
Apr 12, 2017, 9:14:56 AM (7 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc158

    v1 v2  
    6565
    6666{{{
     67/////////////////////////////////////////////////////////////////////////////////////////////////////////
     68/// \brief
     69/// A helper class to output GeoJSON from feature readers
     70///
    6771class MG_PLATFORMBASE_API MgGeoJsonWriter : public MgGuardDisposable
    6872{
    6973PUBLISHED_API:
     74    //////////////////////////////////////////////////////////////////
     75    /// \brief
     76    /// Constructs a MgGeoJsonWriter object
     77    ///
     78    /// <!-- Syntax in .Net, Java, and PHP -->
     79    /// \htmlinclude DotNetSyntaxTop.html
     80    /// MgGeoJsonWriter();
     81    /// \htmlinclude SyntaxBottom.html
     82    /// \htmlinclude JavaSyntaxTop.html
     83    /// MgGeoJsonWriter();
     84    /// \htmlinclude SyntaxBottom.html
     85    /// \htmlinclude PHPSyntaxTop.html
     86    /// MgGeoJsonWriter();
     87    /// \htmlinclude SyntaxBottom.html
     88    ///
    7089    MgGeoJsonWriter();
    7190
     91    //////////////////////////////////////////////////////////////////
     92    /// \brief
     93    /// Converts the current feature in the given feature reader to GeoJSON
     94    ///
     95    /// \remarks
     96    /// The id and geometry properties are inferred from the class definition returned by the feature reader
     97    ///
     98    /// <!-- Syntax in .Net, Java, and PHP -->
     99    /// \htmlinclude DotNetSyntaxTop.html
     100    /// string FeatureToGeoJson(MgFeatureReader featureReader, MgTransform transform);
     101    /// \htmlinclude SyntaxBottom.html
     102    /// \htmlinclude JavaSyntaxTop.html
     103    /// String FeatureToGeoJson(MgFeatureReader featureReader, MgTransform transform);
     104    /// \htmlinclude SyntaxBottom.html
     105    /// \htmlinclude PHPSyntaxTop.html
     106    /// string FeatureToGeoJson(MgFeatureReader featureReader, MgTransform transform);
     107    /// \htmlinclude SyntaxBottom.html
     108    ///
     109    /// \param featureReader (MgFeatureReader)
     110    /// The feature reader
     111    ///
     112    /// \param transform (MgTransform)
     113    /// An optional transform
     114    ///
     115    /// \return
     116    /// Returns the GeoJSON output as a string.
     117    ///
    72118    STRING FeatureToGeoJson(MgFeatureReader* featureReader, MgTransform* transform);
    73119
     120    //////////////////////////////////////////////////////////////////
     121    /// \brief
     122    /// Converts the current feature in the given feature reader to GeoJSON
     123    ///
     124    /// <!-- Syntax in .Net, Java, and PHP -->
     125    /// \htmlinclude DotNetSyntaxTop.html
     126    /// string FeatureToGeoJson(MgFeatureReader featureReader, MgTransform transform, string idPropertyName, string geomPropName);
     127    /// \htmlinclude SyntaxBottom.html
     128    /// \htmlinclude JavaSyntaxTop.html
     129    /// String FeatureToGeoJson(MgFeatureReader featureReader, MgTransform transform, String idPropertyName, String geomPropName);
     130    /// \htmlinclude SyntaxBottom.html
     131    /// \htmlinclude PHPSyntaxTop.html
     132    /// string FeatureToGeoJson(MgFeatureReader featureReader, MgTransform transform, string idPropertyName, string geomPropName);
     133    /// \htmlinclude SyntaxBottom.html
     134    ///
     135    /// \param featureReader (MgFeatureReader)
     136    /// The feature reader
     137    ///
     138    /// \param transform (MgTransform)
     139    /// An optional transform
     140    ///
     141    /// \param idPropertyName (String/string)
     142    /// The name of the id property. The value of the property specified will be written to the top-level "id" property of the GeoJSON
     143    ///
     144    /// \param geomPropName (String/string)
     145    /// The name of the geometry property. The value of the property specified will be written to the top-level "geometry" property
     146    /// of the GeoJSON. If this property is not specified, no geometry is written.
     147    ///
     148    /// \return
     149    /// Returns the GeoJSON output as a string.
     150    ///
    74151    STRING FeatureToGeoJson(MgReader* reader, MgTransform* transform, CREFSTRING idPropertyName, CREFSTRING geomPropName);
    75152};
    76153}}}
    77154
    78 The {{{SELECTFEATURES}}} operation with {{{CLEAN=1}}} will use this class to output the response as GeoJSON
     155The {{{SELECTFEATURES}}} operation with {{{CLEAN=1}}} will use this class to output the response as GeoJSON.
     156
     157This class is also available to the public API for MapGuide applications to use.
    79158
    80159== Implications ==