Select to view content in your preferred language

How to Import a Shapefile?

2951
3
08-07-2012 02:45 PM
JoshPorter
Occasional Contributor
Hello, I am a big newbie when it comes to shapefiles, but I need to learn how to display client shapefile data on my Silverlight ESRI map.  They supply the files/urls/data and we overlay it on our maps.  Can anyone help me out?
Josh
0 Kudos
3 Replies
wangzhifang
Frequent Contributor
You could use shapefile class here: http://esrislcontrib.codeplex.com/ 🙂
0 Kudos
by Anonymous User
Not applicable
Can i take it a step further & if i wanted to load a shapefile into a geodatabase (via the SL site) what is the recommended approach to this - publish a geoprocessing scrpt to perform this function?

Brad
0 Kudos
JoshPorter
Occasional Contributor
It is possible, but it is not easy. And if you do get it working you will find there is a performance limit to the size of the file that can be displayed.  The esrislcontrib library is out of date and needs updating before it is usable. The file parsing mechanism implemented there does not account for the projection of the file being imported, so unless you correct that by writing your own .prj file parsing routine it provides unusable output.  It is a great starting point however and my thanks go out to Vish Uma for putting together such a nice project.


Unless you are willing to put in some effort, it might be better to wait for ESRI to publish this capability.


Should you proceed, you may find this link helpful: http://www.digitalpreservation.gov/formats/fdd/fdd000280.shtml
🙂
Josh
0 Kudos