Silverlight and Personal Geodatabase

929
8
04-17-2010 01:10 AM
KevinCoetzee
New Contributor
Is it possible to connect Silverlight API to Personal Geodatabase, if so how?

Thank You
0 Kudos
8 Replies
dotMorten_esri
Esri Notable Contributor
Yes. You will need to publish your GDB/MXD to ArcGIS Server.
0 Kudos
MRASAR2010
New Contributor
Can anyone please send a sample for connecting .sde or .mdb file using silverlight
0 Kudos
dotMorten_esri
Esri Notable Contributor
You can't. Data that Silverlight works with out of the box is services published by ArcGIS Server.
0 Kudos
ElliottCarson
New Contributor III
You can connect to GeoDatabases using a Silverlight WCF Service. This type of service can be used to read/write to geodatabases using arc objects.
0 Kudos
StevenMorlock
New Contributor II
How about exposing a geoprocessor task that will return a featurelayer from SDE?

Within SL4 i can call the gp-task and get the layer and then add it to the map.

I examined the arcgis python (v10) library but couldn't find a proper method to just return a featurelayer based upon a workspace string and location.

Did somebody did something similar like this and got it working?

I would be interesting to hear some feedback on this. Thanks!
0 Kudos
dotMorten_esri
Esri Notable Contributor
I would highly advise against an approach that involves sending a local path to a server. It could be a gaping security hole that allows a malicious user from browsing the entire file system.
0 Kudos
StevenMorlock
New Contributor II
the user needs to send the workspace data to actual access the SDE so that's not really the problem. Anyway, what would the best approach be? How can I expose layers stored in SDE in Silverlight without making a (REST/SOAP) service for each layer?

I think this would be one way of doing it. The other way would be making an own WCF service and then return the Feature layer, but then the resulting feature class needs to be mapped to an object/data structure within silverlight.

What is ESRI point of view on this? What would be best practise without creating a service for each layer. We are dealing with dynamic environment where we want to display the files that have been uploaded to the SDE database.

I'm open for suggestions. Thanks for your time and effort in helping us.
0 Kudos
StevenMorlock
New Contributor II
Hi, just want to point everybody with the same problem to the following two pages

http://viswaug.wordpress.com/2009/02/10/automating-startstop-ags-and-ags-services-2/

http://www.spoiledtechie.com/post/How-to-publish-a-ArcMap-to-the-ArcGIS-Servere280a6.aspx

It shows you how to start/stop and howto create a new service. Both codes are made for 9.3 but are easily to convert. You probably want to do some code optimization as well.

The idea is to have an empty MXD, use python arcpy.mapping to add the necessary layers, expose the service using this code and then consume it in silverlight...
0 Kudos