Connecting SDE in WPF

3182
4
Jump to solution
09-11-2015 07:58 AM
KK2014
by
New Contributor III

Hi ,

How to connect sde worksapace from wpf.Are there any examples ?

Thanks

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor

Hi,

There is not direct API for connecting to ArcSDE, however you can create Map Packages which reference layers in ArcSDE. For more information, see ArcGIS Runtime SDK for WPF

You can also create Geoprocessing packages which perform various ArcSDE data access and management functions such as listing feature classes, etc. For more information see ArcGIS Runtime SDK for WPF

Finally, you can dynamically add content from ArcSDE workspaces to the Map via the DynamicLayers capability of the LocalMapService. For more information see the following samples:

ArcGIS Runtime SDK for WPF Samples

ArcGIS Runtime SDK for WPF Samples

Cheers

Mike

View solution in original post

4 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

There is not direct API for connecting to ArcSDE, however you can create Map Packages which reference layers in ArcSDE. For more information, see ArcGIS Runtime SDK for WPF

You can also create Geoprocessing packages which perform various ArcSDE data access and management functions such as listing feature classes, etc. For more information see ArcGIS Runtime SDK for WPF

Finally, you can dynamically add content from ArcSDE workspaces to the Map via the DynamicLayers capability of the LocalMapService. For more information see the following samples:

ArcGIS Runtime SDK for WPF Samples

ArcGIS Runtime SDK for WPF Samples

Cheers

Mike

View solution in original post

KK2014
by
New Contributor III

Hi Michel,

We are using ArcGISLocalFeatureLayer for editing feture we are adding layer in map normally and we can edit normaly in 9.3.1 SDE version from EDIT.mpk file.We are also adding layer normaly but when we trying edit in 10.1 SDE version from .mpk file RuntimeLocalServer.exe has stopped working.Here is the code below.program give exception in bold font line.

           ArcGISLocalFeatureLayer  sahmusFeatureLayerPoint= null;

                sahmusFeatureLayerPoint= new ArcGISLocalFeatureLayer();

                sahmusFeatureLayerPoint.Path = @"C:\EDIT\Data\EDIT.mpk";

                sahmusFeatureLayerPoint.LayerName = "POINT";

                sahmusFeatureLayerPoint.Editable = true;

                sahmusFeatureLayerPoint.Initialize();

                sahmusFeatureLayerPoint.Initialized += (ss, ee) =>

                {

                    MyMap.Layers.Add(sahmusFeatureLayerPoint);

                };

        private void okButton_Click(object sender, RoutedEventArgs e)

        {

            if (comboFeature.SelectedIndex != 0)

            {

                ESRI.ArcGIS.Client.Graphic addGraphic = new Graphic();

                addGraphic.Attributes.Add("TYPE", comboFeature.SelectedIndex);

                addGraphic.Attributes.Add("DESCRİPTİON", txtAciklama.Text);

                addGraphic.Attributes.Add("USER", txtKullaniciAdi.Text);

                addGraphic.Geometry = m_EditReelPoint;

                sahmusFeatureLayerPoint.Graphics.Add(addGraphic);

                sahmusFeatureLayerPoint.SaveEdits();

                sahmusFeatureLayerPoint.Refresh();

            }

        }

Here is also exception output:

exe.JPG

View problem details:

Problem signature:

  Problem Event Name: APPCRASH

  Application Name: RuntimeLocalServer.exe

  Application Version: 10.2.0.3607

  Application Timestamp: 525c3f91

  Fault Module Name: KERNELBASE.dll

  Fault Module Version: 6.1.7601.18798

  Fault Module Timestamp: 5507b485

  Exception Code: ebf00baa

  Exception Offset: 0000c42d

  OS Version: 6.1.7601.2.1.0.256.48

  Locale ID: 1055

  Additional Information 1: 1145

  Additional Information 2: 1145d54f633f55d317cd2ab4c6541b42

  Additional Information 3: 1f67

  Additional Information 4: 1f6755aae98366e0489b81cde6820b48

Read our privacy statement online:

  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:

  C:\windows\system32\en-US\erofflps.txt

Thanks

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Which version of the ArcGIS Runtime SDK for WPF are you using?

Please can you describe your scenario/workflow?

Cheers

Mike

KK2014
by
New Contributor III

Hi,

-We are using 10.2.0 version of the ArcGIS Runtime SDK for WPF.

-We want to create ArcGISLocalFeatureLayer and we want to create or edit features in ArcGISLocalFeatureLayer.After adding feature ArcGISLocalFeatureLayer crash dialog that as you can see in previous message.Application works fine edits feature in 9.3.1 version of SDE but in 10.1 version of SDE don't edit.Is it about licence problem 10.2.0 version of the ArcGIS Runtime SDK for WPF.

Thanks.

0 Kudos