POST
|
I was thinking you had gotten an error about the DBMS client release. Now that I see the error in your last post, though, it looks like you did not create a geodatabase. Yes, you were right. I had not created an enterprise geodatabase. Now its done. Thanks for all your co-operation. Chandan.
... View more
06-13-2013
06:30 AM
|
0
|
0
|
85
|
POST
|
Chandan, What version of the SQL Server Native Client do you have installed? You'll need at least the 2008 version to connect. In the case of SQL Server, though, you run the Native Client installation that matches your OS - you cannot run the 32-bit SQL Server Native Client installation executable on a 64-bit machine. http://resources.arcgis.com/en/help/main/10.1/#/Setting_up_a_connection_to_SQL_Server/002q00000038000000/ Peter, Installed native client is 10.0 comes with "Microsoft SQL Server 2008 R2 RTM - Express with Management Tools" (SQLEXPRWT_x64_ENU.exe), downloaded from microsoft.com. Is there any way-out available to run 32-bit SQL Server Native Client. Log file: ------------------------------------------------------- ArcSDE 10.1 for SQL Server Build 679 Thu Apr 5 11:43:21 2012 ------------------------------------------------------- DB_instance_open() against SQL Server using OLEDB driver. Connected to instance . . . Previous SDE Server Release 0.0.0 is not compatible with the current Release 10.1.0.
... View more
06-12-2013
08:51 AM
|
0
|
0
|
492
|
POST
|
Yes, that is correct. I am also getting the same error. I am using SQLServer 2008 Express Edition. OS: Windows 7 Ultimate x64 Database: SQLServer Express Edition x64 Please provide a solution. Thanks, Chandan
... View more
06-11-2013
10:42 AM
|
0
|
0
|
492
|
POST
|
I have successfully opened a geodatabase using propertyset. the code is as given below:
public IWorkspace FileGdbWorkspaceFromPropertySet(string database)
{
try
{
IPropertySet propertySet = new PropertySetClass();
propertySet.SetProperty("DATABASE", database);
IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactoryClass();
return workspaceFactory.Open(propertySet, 0);
}
catch (System.Runtime.InteropServices.COMException Exp)
{
MessageBox.Show(Exp.Message + "\n" + Exp.StackTrace);
return null;
}
}
Now I need to populate a listbox with the name of all the featureclasses present inside the geodatabase. Please help me to solve this.... Thanks.....!
... View more
08-04-2010
07:28 AM
|
0
|
2
|
500
|
POST
|
I am using visual studio toolbar button. My question is how to make the zoom in, zoom out functionality similar to arc map?
... View more
07-23-2010
01:41 PM
|
0
|
1
|
715
|
POST
|
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000240000000 Thank you very much ldonahue Its done... current code is: public void getFeature(IActiveView activeView, int button, int shift, int X, int Y)
{
IMap map;
IPoint ClickedPoint = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y);
if (activeView is IMap)
{
map = activeView.HitTestMap(ClickedPoint);
if (map == null) return;
IRubberBand rubberEnv = new RubberEnvelopeClass();
IGeometry geom = rubberEnv.TrackNew(activeView.ScreenDisplay, null);
IArea area = (IArea)geom;
if (geom.IsEmpty == true)
{
IEnvelope tempEnv = new EnvelopeClass();
tagRECT RECT = new tagRECT();
RECT.bottom = 0;
RECT.left = 0;
RECT.right = 5;
RECT.top = 5;
IDisplayTransformation dispTrans = activeView.ScreenDisplay.DisplayTransformation;
dispTrans.TransformRect(tempEnv, ref RECT, 4);
tempEnv.CenterAt(ClickedPoint);
geom = (IGeometry)tempEnv;
}
if (geom.IsEmpty == true) return;
ISpatialFilter spatialFilter = new SpatialFilterClass();
IFeatureLayer schoolLayer = (IFeatureLayer)axMapControl1.get_Layer(0);
IFeatureClass schoolFeature = schoolLayer.FeatureClass;
spatialFilter.Geometry = geom;
spatialFilter.GeometryField = schoolFeature.ShapeFieldName;
spatialFilter.SpatialRel = esriSpatialRelEnum.esriSpatialRelContains;
spatialFilter.SubFields = "SCHOOL";
int nameFieldPosition = schoolFeature.FindField("SCHOOL");
using (ComReleaser comReleaser = new ComReleaser())
{
IFeatureCursor schoolCursor = schoolFeature.Search(spatialFilter, false);
comReleaser.ManageLifetime(schoolCursor);
IFeature schoolFeat = null;
while ((schoolFeat = schoolCursor.NextFeature()) != null)
{
string name = Convert.ToString(schoolFeat.get_Value(nameFieldPosition));
MessageBox.Show(name);
}
}
}
}
Please have a look at the code for any optimization... Thanks.....!
... View more
07-22-2010
09:43 PM
|
0
|
0
|
213
|
POST
|
I am new to ArcObjects. Trying to make a method to get attributes from a feature by mouse click. Any body, please help me to perform spatial query to get attributes of a feature. My code is as below. public void getFeature(IActiveView activeView, int button, int shift, int X, int Y)
{
IMap map;
IPoint ClickedPoint = activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y);
if (activeView is IMap)
{
map = activeView.HitTestMap(ClickedPoint);
if (map == null) return;
IRubberBand rubberEnv = new RubberEnvelopeClass();
IGeometry geom = rubberEnv.TrackNew(activeView.ScreenDisplay, null);
IArea area = (IArea)geom;
if (geom.IsEmpty == true)
{
IEnvelope tempEnv = new EnvelopeClass();
tagRECT RECT = new tagRECT();
RECT.bottom = 0;
RECT.left = 0;
RECT.right = 5;
RECT.top = 5;
IDisplayTransformation dispTrans = activeView.ScreenDisplay.DisplayTransformation;
dispTrans.TransformRect(tempEnv, ref RECT, 4);
tempEnv.CenterAt(ClickedPoint);
geom = (IGeometry)tempEnv;
}
if (geom.IsEmpty == true) return;
@ HERE I NEED SPATIAL FILTER @
}
} Thanking you...
... View more
07-22-2010
11:30 AM
|
0
|
2
|
976
|
POST
|
I am new to ArcObject. Previously I use ArcView GIS 3x with Avenue Script. I use ArcGIS Desktop 9.3 and ArcGIS Engine 9.3.1. Can any body please post a sample code to do the same function? Thanks in advance
... View more
07-20-2010
10:39 AM
|
0
|
0
|
1164
|
POST
|
U can write the code under mapcontrol_mousedown event. 1)By using ITopologicalOperator u have to create some buffer around the mouse click area. 2) Then check is there any geometry avalable in that buffer. 3) Then pass that geometry to spatial filter u can get the attribute values The first and second point are done. Now how to create spatial filter....?
... View more
07-20-2010
07:17 AM
|
0
|
0
|
174
|
POST
|
You are great Doug... It works... Thank you very much..
... View more
07-19-2010
08:22 AM
|
0
|
0
|
249
|
POST
|
I am using C# as the development language for ArcGIS Engine. I have developed an application for ArcView GIS 3.2. Now I have to translate that application to ArcGIS Application. I am facing problem to get attributes of a point feature by clicking on a map control. Can anybody please give the C# code. Thanks.......!
... View more
07-18-2010
05:39 AM
|
0
|
2
|
786
|
POST
|
I am using C#.NET 2008 with ArcEngine9.3 and ArcGIS Desktop 9.3. I want to use the Add Data dialog box to add layers (.shp, .lyr, etc..) to a desktop application. Which command i have to use to show the dialog box (Add Data dialog box in ArcMap). Thanks in advance.....
... View more
07-17-2010
01:30 PM
|
0
|
2
|
2933
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|