[mapguide-trac] #1450: Enhance the GetWfsFeature API to support customized namespaceUrl and namespacePrefix

MapGuide Open Source trac_mapguide at osgeo.org
Thu Sep 30 09:29:21 EDT 2010


#1450: Enhance the GetWfsFeature API to support customized namespaceUrl and
namespacePrefix
-------------------------------+--------------------------------------------
   Reporter:  liuar            |       Owner:  liuar            
       Type:  enhancement      |      Status:  new              
   Priority:  low              |   Milestone:                   
  Component:  Feature Service  |     Version:  2.2.0            
   Severity:  minor            |    Keywords:  WFS GetWfsFeature
External_id:                   |  
-------------------------------+--------------------------------------------
 In order to pass the OGC CITE test, MapGuide need to have its
 GetWfsFeature API extended to support user defined namespaceUrl and
 namespacePrefix.

 Two more parameters added in the the new interface: namespacePrefix and
 namespaceUrl

 {{{
 ////////////////////////////////////////////////////////////////////////////////////////////////////////
     /// \brief
     /// Retrieves feature information based on the supplied criteria with
 specified format.
     ///
     /// <!-- Syntax in .Net, Java, and PHP -->
     /// \htmlinclude DotNetSyntaxTop.html
     /// virtual MgByteReader GetWfsFeature(MgResourceIdentifier
 featureSourceId, string featureClass, MgStringCollection
 requiredProperties, string srs, string filter, int maxFeatures, string
 wfsVersion, string outputFormat, string sortCriteria, string
 namespacePrefix, string namespaceUrl);
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude JavaSyntaxTop.html
     /// virtual MgByteReader GetWfsFeature(MgResourceIdentifier
 featureSourceId, string featureClass, MgStringCollection
 requiredProperties, string srs, string filter, int maxFeatures, string
 wfsVersion, string outputFormat, string sortCriteria, string
 namespacePrefix, string namespaceUrl);
     /// \htmlinclude SyntaxBottom.html
     /// \htmlinclude PHPSyntaxTop.html
     /// virtual MgByteReader GetWfsFeature(MgResourceIdentifier
 featureSourceId, string featureClass, MgStringCollection
 requiredProperties, string srs, string filter, int maxFeatures, string
 wfsVersion, string outputFormat, string sortCriteria, string
 namespacePrefix, string namespaceUrl);
     /// \htmlinclude SyntaxBottom.html
     ///
     /// \param featureSourceId (MgResourceIdentifier)
     /// The resource identifier defining the
     /// location of the feature source in
     /// the repository.
     /// \param featureClass (String/string)
     /// The feature class containing the features to retrieve.
     /// \param requiredProperties (MgStringCollection)
     /// The collection of properties to retrieve for each feature. If the
     /// collection is null or empty, all properties will be retrieved.
     /// \param srs (String/string)
     /// The spatial reference system in which to return feature geometries
     /// \param filter (String/string)
     /// An XML string containing the definition for an OGC filter
     /// \param maxFeatures (int)
     /// The maximum number of features to retrieve. If the value is less
     /// than or equal to zero, all features will be retrieved.
     /// \param wfsVersion (String/string)
     /// A string identifying the wfs version
     /// \param outputFormat (String/string)
     /// A string identifying the output format of
     /// the retrieved feature information.
     /// The supported values of output format are specified in OpenGIS Web
 Feature Service (WFS) Implementation Specification - section 9.2
     /// http://portal.opengeospatial.org/files/?artifact_id=8339
     /// \param sortCriteria (String/string)
     /// A string identifying the sort criteria
     /// \param namespacePrefix (String/string)
     /// A string identifying the namespace prefix in the output xml
     /// \param namespaceUrl (String/string)
     /// A string idenyifying the namespace url in the output xml
     ///
     /// \return
     /// Returns an MgByteReader containing the requested feature
 information.
     ///
     ///
     /// \exception MgInvalidArgumentException
     ///
     virtual MgByteReader* GetWfsFeature(MgResourceIdentifier*
 featureSourceId, CREFSTRING featureClass,
         MgStringCollection* requiredProperties, CREFSTRING srs, CREFSTRING
 filter, INT32 maxFeatures,CREFSTRING wfsVersion, CREFSTRING outputFormat,
 CREFSTRING sortCriteria, CREFSTRING namespacePrefix, CREFSTRING
 namespaceUrl) = 0;
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1450>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list