POST
|
Dear All, I am trying to use ITinSurface3.Intersect to define the difference between two TINs (existing and after). Unfortunately the outputFeatureClass is always empty !!! any idea what could be the problem ? exstTinSur->Intersect(afterRst, NULL, pDiffFtrCls, L"Volume", L"Area", L"Code"); Thanks for any hint which might help 🙂 Warmly, Nazereh
... View more
06-24-2013
03:42 AM
|
0
|
0
|
228
|
POST
|
Hi all, I am trying to use ITinSurface3.QueryLocate method to find the intersection of the extension of a 3d Line (Vector) with a tin surface. I am facing difficuties defining the Vector3d for the IRay. I have a 3d Line with two set of x-y-z coordinates, the Vector3d is supposed to be perpendicular to this line and make a 45 degree slope with the XY-plane. Any idea how to define this Vector3d ? Thanks
... View more
05-14-2013
12:11 AM
|
0
|
0
|
11
|
POST
|
Hello every body could you solve this issue !? I am tring to add a Raster Layer (RGB) with 3d properties (base heights) to my ArcScene which I open and get access to it trough C++. But I get problems with the opened ArcScene through C++ and the layer does not apear properly. Here are my codes ! is that the right way of opening ArcScene and adding layer (raster or feature) to it !?? I use ArcGIS Desktop 10. IAppROTPtr ipAppROT(CLSID_AppROT); ISxDocumentPtr ipSxDoc(CLSID_SxDocument); IDocumentPtr ipDoc(ipSxDoc); CComPtr<IApplication> ipApl; ipApl.CoCreateInstance(CLSID_AppRef); ipDoc->get_Parent(&ipApl); ipApl->put_Visible(VARIANT_TRUE); then I try to add my Raster Layer which I have uploaded from my Raster Dataset and add it to my SxDocument like this : direct way: ipSxDoc->AddLayer(ipRstLyr); through ILayer: ILayerPtr ipLyr(ipRstLyr); ipSxDoc->AddLayer(ipLyr); unfortunately neither the direct way works nor the one through ILayer !!! any idea ??? thank you very much. Nazereh
... View more
04-13-2012
04:12 AM
|
0
|
0
|
4
|
POST
|
I have modified my code as below.I still get the rounded corners.:( Dim pInGeomColl As IGeometryCollection Set pInGeomColl = New GeometryBag pInGeomColl.AddGeometry pfeature.Shape 'Adding my polygon to geom collection Dim pOutGeomColl As IGeometryCollection Set pOutGeomColl = New GeometryBag pBufferConstruction.ConstructBuffers pInGeomColl, 40, pOutGeomColl Set pBufferPolygon = pOutGeomColl.geometry(0) Hello there, could you ever solve this problem !? I am confronting the same issue ! Thank you very much, Nazereh
... View more
02-23-2012
06:25 AM
|
0
|
0
|
18
|
POST
|
Dear Neil, I have a similar issue ! I have a Workspace and need to ceate a feature class inside of it ! these are my codes : IFeatureWorkspacePtr ipFtrWksp =(IFeatureWorkspacePtr)ipWksp; //---> ipWksp has value and ipFtrWksp created successfully IFeatureClassPtr ipFtrCls(CLSID_FeatureClass); IFieldsPtr ipFlds(CLSID_Fields); ipFlds = createFields(L"Type"); ipFtrWksp->CreateFeatureClass(L"testLin", ipFlds, NULL, NULL, esriFTSimple, L"Shape", NULL, &ipFtrCls); //---> NULL for ipFtrCls!!! IFieldsPtr createFields(BSTR fieldName) { if (fieldName == NULL) return E_POINTER; IFieldsPtr ipFields(CLSID_Fields); IFieldsEditPtr ipFieldsEdit = ipFields; IFieldPtr ipField(CLSID_Field); IFieldEditPtr ipFieldEdit = ipField; //Object ID ipFieldEdit->put_Name(L"FID"); ipFieldEdit->put_Type(esriFieldTypeOID); ipFieldsEdit->putref_Field(0, ipField); //2nd Field ipField.CreateInstance(CLSID_Field); ipFieldEdit = ipField; //Shape ipFieldEdit->put_Name(L"Shape"); ipFieldEdit->put_Type(esriFieldTypeGeometry); IGeometryDefPtr ipGeomDef(CLSID_GeometryDef); ISpatialReferencePtr ipSR(CLSID_UnknownCoordinateSystem); IGeometryDefEditPtr ipGeomDefEdit = ipGeomDef; ipGeomDefEdit->put_GeometryType(esriGeometryPolyline); ipGeomDefEdit->putref_SpatialReference(ipSR); ipFieldEdit->putref_GeometryDef(ipGeomDef); ipFieldsEdit->putref_Field(1, ipField); //3rd Field ipField.CreateInstance(CLSID_Field); ipFieldEdit = ipField; //Shape ipFieldEdit->put_Name(fieldName); ipFieldEdit->put_Type(esriFieldTypeString); ipFieldEdit->put_Length(20); ipFieldsEdit->putref_Field(2, ipField); ipFields = ipFieldsEdit; return ipFields; }
... View more
01-31-2012
12:57 AM
|
0
|
0
|
8
|
POST
|
Dear Neil, I belive you can help me on following issue: all what I need is to Open an ArcScene, create a FileGDB (testGDB.gdb), create a FeatureClass inside of it and add a Polyline to it, add the feature class as a Layer to my ArcScene. I have written following codes : ::CoInitialize(NULL); ArcGISVersionLib::IArcGISVersionPtr ipVer(__uuidof(ArcGISVersionLib::VersionManager)); VARIANT_BOOL succeeded; if (FAILED(ipVer->LoadVersion(ArcGISVersionLib::esriArcGISDesktop, L"10.0", &succeeded))) return 0; OLE_HANDLE iphWnd = NULL; //Connect to ArcScene IAppROTPtr mpAppROT(CLSID_AppROT); IApplicationPtr ipApplication(CLSID_AppRef); //---------> I get here always class is not registered BUT, I ArcScene opens !!!! ISxDocumentPtr ipSxDoc(CLSID_SxDocument); IDocumentPtr ipDoc(ipSxDoc); ipDoc->get_Parent(&ipApplication); ipApplication->put_Visible(VARIANT_TRUE); ipApplication->get_hWnd(&iphWnd); IMapPtr ipMap(CLSID_Map); then I start creating my FileGDB: IWorkspaceFactoryPtr ipWkspFct(CLSID_FileGDBWorkspaceFactory); IWorkspaceNamePtr ipWkspNam(CLSID_WorkspaceName); ipWkspFct->Create(NULL, gdbName, NULL, NULL, &ipWkspNam); up to here, it works properly and the gdb gets created. IWorkspacePtr ipWksp(CLSID_Workspace); ipWkspFct->OpenFromFile(gdbPath, NULL, &ipWksp); //-------> here is the problem ! always NULL for ipWksp. Any Idea !? as I am a new VC++ programmer, please give me some instructions ! I have ArcGIS Desktop 10.0 and VS2008 Thank you vor any help 🙂 Nazereh
... View more
01-31-2012
12:43 AM
|
0
|
0
|
11
|
POST
|
Dear all, I am having the same problem. I tried sample codes to open a File GDB Workspace which already exists with the name testGDB.gdb: there is also a sample in EDN, I have ArcGIS 10, Visualstudio 2008. I always get NULL result for the variable "outWorkspace", that is why I cant get any pointer to create a feature class inside the GDB. Is there something I am missing !? any hint !???? I have checked several times, there is no problem with my path ! because the testGDB.gdb is created directly by ArcGIS connString is in my case : C:\Daten\Bearbeitung\testGDB.gdb which goes with the codes. http://resources.esri.com/help/9.3/a...E9202DB246.htm HRESULT openFGDBWorkspace(BSTR connString, IWorkspace** outWorkspace) { IWorkspaceFactoryPtr ipWorkspaceFactory(CLSID_FileGDBWorkspaceFactory); return ipWorkspaceFactory->OpenFromFile(connString, NULL, outWorkspace); } I tried also to go through IWorkspaceName, IName.Open() gives also NULL result ! am I missing a kind of Initializing the Licence ??? It is a Desktop Product ! thanks for any help. Nazereh
... View more
01-31-2012
12:23 AM
|
0
|
0
|
2
|
POST
|
Thank you very much, I have tried that, still NULL result !!!
... View more
01-28-2012
01:24 PM
|
0
|
0
|
4
|
POST
|
Hey all, I tried sample codes to open a File GDB Workspace which already exists with the name testGDB.gdb: there is also a sample in EDN, I have ArcGIS 10, Visualstudio 2008. I always get NULL result for the variable "outWorkspace", that is why I cant get any pointer to create a feature class inside the GDB. Is there something I am missing !? any hint !???? I have checked several times, there is no problem with my path ! because the testGDB.gdb is created directly by ArcGIS connString is in my case : C:\Daten\Bearbeitung\testGDB.gdb which goes with the codes. http://resources.esri.com/help/9.3/arcgisdesktop/com/samples/Geodatabase/Accessing_Data/07EA5491-885D-498A-9794-46E9202DB246.htm HRESULT openFGDBWorkspace(BSTR connString, IWorkspace** outWorkspace) { IWorkspaceFactoryPtr ipWorkspaceFactory(CLSID_FileGDBWorkspaceFactory); return ipWorkspaceFactory->OpenFromFile(connString, NULL, outWorkspace); } thanks for any help. Nazereh
... View more
01-27-2012
03:51 AM
|
0
|
2
|
525
|
POST
|
Hey all, I tried your codes to open a File GDB Workspace which already exists with the name testGDB.gdb: there is also a sample in EDN, I have ArcGIS 10, Visualstudio 2008. I always get NULL result for the variable "outWorkspace", that is why I cant get any pointer to create a feature class inside the GDB. Is there something I am missing !? any hint !???? I have checked several times, there is no problem with my path ! because the testGDB.gdb is created directly by ArcGIS connString is in my case : C:\Daten\Bearbeitung\testGDB.gdb which goes with the codes. http://resources.esri.com/help/9.3/arcgisdesktop/com/samples/Geodatabase/Accessing_Data/07EA5491-885D-498A-9794-46E9202DB246.htm HRESULT openFGDBWorkspace(BSTR connString, IWorkspace** outWorkspace) { IWorkspaceFactoryPtr ipWorkspaceFactory(CLSID_FileGDBWorkspaceFactory); return ipWorkspaceFactory->OpenFromFile(connString, NULL, outWorkspace); }
... View more
01-27-2012
03:48 AM
|
0
|
0
|
4
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|