81 | | |
82 | | A new API method will be added to the Feature service. This new !GetSpatialContexts API method is an overload of the previous !GetSpatialContexts API method. It contains an additional argument: bIgnoreOverrides. |
83 | | |
84 | | {{{ |
85 | | virtual MgSpatialContextReader* MgFeatureService::GetSpatialContexts(MgResourceIdentifier *resource, |
86 | | bool bActiveOnly, |
87 | | bool bIgnoreOverrides); |
88 | | |
89 | | Gets all of the spatial contexts available in the feature source or just the active one. |
90 | | This behaves exactly the same as the previous GetSpatialContexts method when ignoreOverrides is set to false. |
91 | | If ignoreOverrides is set to true, coordinate system overrides specified in the SupplementalSpatialContextInfo are ignored. |
92 | | |
93 | | Remarks: |
94 | | The FdoSpatialContextList XML schema contains a specification of the content of the spatial context information returned in the MgSpatialContextReader object. |
95 | | |
96 | | Parameters: |
97 | | resource (MgResourceIdentifier) A resource identifier identifying a feature source in the repository. |
98 | | bActiveOnly (boolean/bool) If true, the return value contains only the active spatial context. If false, the return value contains all of the available spatial contexts. |
99 | | bIgnoreOverrides (boolean/bool) If true, the original spatial contexts are returned. If false, coordinate system overrides |
100 | | |
101 | | Returns: |
102 | | Returns an MgSpatialContextReader object. |
103 | | |
104 | | Exceptions: |
105 | | MgFeatureServiceException |
106 | | MgInvalidArgumentException |
107 | | MgInvalidOperationException |
108 | | MgFdoException |
109 | | }}} |
110 | | |