ArcEngine development encountered pit

Environmental ArcGIS10.1 Oracle11g

1, the code successfully created a feature dataset, but refresh oracle database does not come out. Solution: The inspection found that the sections of the code on the back IWorkSpaceEdit.startEditing, due after creating stopediting (true) does not call, it has been a recognition failure. The implementation of the previously mentioned startEditing code.

2、更新数据报ORA-20085 Insert Spatial Reference SRID 300026 does not match SDE.REDLINERANG_A.SHAPE registered Spatial Reference SRID 300005

ORA-06512:at “SDE.ST_DOMAIN_METHODS”, line 1986

Solution: After a lookup table sde.ST_SPATIAL_REFERENCES, SRID 300005 represents a reference system is unknown, SRID 300026 from the bar is defined in a local coordinate system, guess is specified in the data processing data sets to generate hm_point unknown coordinate system to directly copy after sde library, which coordinates sde registered as SRID 300005; the library is then disposed in the sde feature dataset coordinate system SRID 300026, but sde class library and the element coordinates of the feature dataset SRID to 300005 SRID 300026. The current solution is: The manner in import library feature data set SDE import processing the data generated. Another way: setting a coordinate system corresponding to generate processed data sets, and then copy and paste SDE library.

3. When using delete delete delete feature datasets and not inside feature classes, feature class also need to traverse deleted.

4, mxd document you want to set up a coordinate system.

 

5, call the copy GP ARCSDE tool to copy data into the database, an error ora-29855 ora-01536 XX table space beyond the space limit. Found to the current user usage quotas set the table space, you can change it to unlimited use.  alter user skate quota unlimited on skate_ts;  

http://blog.csdn.net/lrh_079/article/details/17001453

6, access axpagelayoutcontrol.printer get null. Solution: no default printer on your computer, you can set the default printer. Microsoft XPS Document Writer can be set as the default printer.

7, the difference Axcontrols and maptcontrol: 10.2, exist in ESRI.Arcgis.Controls, maptcontrol is the interface, Axcontrols is control.

Reference https://blog.csdn.net/crury/article/details/5624525

The official explanation given is from ESRI:

Axcontrols .net package corresponding to components corresponding to the com Controls assembly, when in use, and need to add ESRI.Arcgis.Axcontrols ESRI.Arcgis.Controls namespace namespace. Both AE contains all the components.

A master's explanation:

AxMapControl is a .NET component, it is COM components through .NET wrapper control of the CCW (COM callable wrapper), it is in the global assembly loaded (default directory in C: / WINDOWS / Assembly). The ESRI MapControl is ArcGIS Bin file installation directory loaded. The main difference is to be registered to a registry (COM that is the latter), and the other does not require registration to the registry (loaded directly in the GAC, which is the .NET features of the new technology lies).
------- -------------- 
author: crury 
source: CSDN 
original: https: //blog.csdn.net/crury/article/details/5624525 
copyright: This article is a blogger original article, reproduced Please attach Bowen link!

8, transfer AxMapControl

http://blog.sina.com.cn/s/blog_488e2b5b0100ztxr.html

Problem Description:

The AxMapControl passed to another class used.

Solution 1 :( original program)

public void func(IMapControl2 mapControl)

{

   ...

}

The main function call: func ((IMapControl2) this.AxMapControl1.Object);

 

Above normal program has actually solved, but the problem is that every call, every cast, for the user, must be a burden.

Solution 3: (perfect solution)

1. Add added AXControl referenced class (note not AxMapControl)

Class function:

public void func(AxControl axMapControl)

{

    IMapControl2 mapControl = (IMapControl2)axMapControl.Object;

   ...

}

The main function call:

func(this.AxMapControl1)

 

 

 

 

Guess you like

Origin blog.csdn.net/Chen_cs/article/details/52688122