Select to view content in your preferred language

Using custom data in ArcGIS Silverlight

3317
5
12-27-2010 03:56 AM
KeremCelik
Emerging Contributor
Hi,

I would like to use custom data in Silverlight applications.

More detailed explanation :

Let's say I have a *.shp file which contains point features (About 500 records). I would like to load this data into my Silverlight application without manually publishing(putting it into a mxd map document and publish it in ArcGIS Server Manager or in Catalog) it.

I think the solution is publishing this data dynamically. But I am not sure. If so can you give me the process that I need to do.

Thanks in advance.

Kerem.
0 Kudos
5 Replies
RichardWatson
Deactivated User
Silverlight applications can use HTTP to communicate with server applications.  One solution would be to create your own web service and have that web service make whatever data you need available.  If you need help with developing web services then just Google because this topic is widely discussed.
0 Kudos
KeremCelik
Emerging Contributor
Silverlight applications can use HTTP to communicate with server applications.  One solution would be to create your own web service and have that web service make whatever data you need available.  If you need help with developing web services then just Google because this topic is widely discussed.


Actually, I know how to create a web service, but what I do not know is how to publish a service (In this case, it is data, another processes is needed actually, create an mxd file for that data) dynamically, in other words by code.
0 Kudos
JMcNeil
Deactivated User
Kerem,

This probably is not the solution you are looking for but if you visit:

http://esrislcontrib.codeplex.com/

Check out the Utility classes, which will help users load shapefiles from their computer directly on to the Silverlight API map without uploading the shapefile to the server.

The code is super easy to get up and running and it is all there to change and modify.

It basically loads the shape as a graphic and then from there you can apply map tips or grab field information from the graphic. 

The only thing about this is assigning the symbology to the layer -- Red points, polys, or lines for each layer/graphic added.  The symbology is usually set at the mxd level so having the enduser select a color at/on load time would be a great enhancement.  I thought about it but the code is heavy and I'm not that seasoned or just did not have the time...whatever makes me feel better.

Hope this helps.

J
0 Kudos
JMcNeil
Deactivated User
Oh ya there is a projection (shapefile projection limitation...needs to be in web Mercator if I remember right), which makes sense because it is creating a graphic and then displaying it on the fly.

J
0 Kudos