Select to view content in your preferred language

Dynamic workspace and shapefile

717
0
10-17-2012 04:59 AM
by Anonymous User
Not applicable
Original User: vdkamp

I try to load a shape file into the dynamic workspace of a map service but can't get it working.

  • Created a map service.

  • Enabled dynamic workspace and added a workspace: Type: Shapefile, Connection String: D:\my_path, ID: GDSCWorkspaceID

  • In my software I created a LayerDataSorce as a source for a DynamicLayerInfo to be placed in the dynamicLayerInfos of my map service (as in the Dynamic Workspace example).


But what to use for the datasource? There are only a few classes implementing IDataSource.
I tried TableDataSource with workspaceID 'GDSCWorkspaceID' and dataSourceName 'myShape.shp' which is in D:\my_path. Doesn't work.

How should I do this?


Thanks,
Albert.
0 Kudos
0 Replies