MGMapLayerSetup.getDataFile   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

String getDataFile()

Description

Gets the name of the data file from which Autodesk MapGuide Server retrieves data for this layer.

The path of the file is relative to the search path set in the Autodesk MapGuide Server Administrator.

This method does not apply to Text and Point map layers from OLE DB data sources, or to Buffer or Redline map layers.

For Text, Point, Polyline and Polygon map layers from Spatial Data Provider (SDP) Data Sources, this method returns the same value as getSdpFeatureTable. We strongly encourage you to use getSdpFeatureTable instead.

For GIS Design Server layers, this method returns the database and theme name, separated by a vertical bar delimiter (for example, configuration name| theme name).

For DWG layers, this methods returns the Autodesk DWG file. This use of this method is retained for backward compatibility and will be deprecated in the next release. Instead, you should use the MGDwgDataSources.getDwg method.

For raster layers, this method returns the raster image file or catalog.

Returns

String - The data file name.

Error Codes

-15 (does not apply)

See Also

setDataFile, DataFile, getSdpFeatureTable, setSdpFeatureTable, SdpFeatureTable, getDwg, setDwg, Dwg