DK for ActiveX | TatukGIS_XDK11.ITGIS_ArcGISFeatureServer | Interfaces | Methods | Properties
Encapsulates an ArcGIS feature server.
// C# public interface ITGIS_ArcGISFeatureServer: ITBaseObject { }
' VisualBasic Public Interface ITGIS_ArcGISFeatureServer Implements ITBaseObject End Class
// Oxygene type ITGIS_ArcGISFeatureServer = public interface( ITBaseObject ) end;
| Name | Visibility | Description | |
|---|---|---|---|
| AttachDelphiObj | public | Only for internal use of TatukGIS. (Inherited from ITBaseObject) |
|
| Create_ | public | Creates a feature server instance for the specified service. | |
| DelphiObj | public | Only for internal use of TatukGIS. (Inherited from ITBaseObject) |
|
| Open | public | Opens a feature service from the specified URL. | |
| OpenLayer | public | Opens a feature layer from the specified service URL and layer id. | |
| Open_2 | public | Opens the feature service using the current URL. | |
| Name | Visibility | Description | |
|---|---|---|---|
| Layers | public | List of available feature service layers. | |
| Name | public | Feature service name. | |
| Url | public | Feature service URL. | |
PURPOSE: Represents one ArcGIS Feature Service connection and manages the layers discovered for that service.
BEHAVIOR: Stores the service URL, service name, and a layer list. The open methods connect to the service and populate available layer metadata, whileOpenLayer opens a single layer by id.
USAGE: Use this class to open a Feature Service endpoint and inspect or access its layers.
server = TGIS_ArcGISFeatureServer() server.Open(url) layer = server.OpenLayer(url, "0")
CONSTRAINTS: This class derives fromTGIS_ObjectDisposable. The layer list belongs to the server object and follows its lifecycle.
fs := TGIS_ArcGISFeatureServer.Create;
try
fs.Open('https://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer');
GIS.Lock;
try
for fl in fs.Layers do begin
ll := GisCreateLayer(fl.Name, fl.Path);
GIS.Add(ll);
ll.ParamsList.Assign( fl.DrawingInfo ) ;
end;
finally
GIS.Unlock;
end;
finally
FreeObject(fs);
end;
GIS.FullExtent;