POST
|
I need your help! I have a very simple polygon shape. In an edit session, I want to show the shape lenght of the modified polygon "in real time" (meaning that everytime a point of the polygon is moved, I'll show the new patrol length in a label). My OnSketchModified fire up correctly, it is just that I don't know how to calculate the lenght. Thanks !
... View more
03-10-2016
08:09 AM
|
0
|
1
|
1615
|
POST
|
Hi Group ! I want to know if I can display SQL spatial data in a vb.net arcObjects application. I have a SQL geography layer that a join to other data to have a final result to display.Everything is done in a stored procedure. The result includes a shape field and a unique renderer is applie must be applied. Is there any way to display SQL spatial in my application ?? Thank you !
... View more
07-14-2015
10:17 AM
|
0
|
1
|
2739
|
POST
|
Thanks Duncan... and you're right... so here is my code : Sub ExportFeature(ByVal intWhat As Integer, ByVal pFC As IFeatureClass, ByVal pFL As IFeatureLayer, ByVal pTable As ITable) Dim GP As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor Dim strViewName As String = "" Dim strTableName As String = "" Dim strJoinedField As String = "" Dim strIndexName As String = "" Select Case intWhat Case 1 'TP/INT strViewName = "TPINTView" strTableName = "outTPINT" strJoinedField = "cell" strIndexName = "cell01" End Select frmModuleSIG.Cursor = Cursors.WaitCursor Dim pTableView As MakeTableView = New MakeTableView pTableView.in_table = pTable pTableView.out_view = strViewName RunTool(GP, pTableView, Nothing) frmModuleSIG.Cursor = Cursors.WaitCursor Dim pCopyRows As CopyRows = New CopyRows pCopyRows.in_rows = strViewName pCopyRows.out_table = frmModuleSIG.opAffMain.oLIP.Siif.RépertoireUsagerCitrix & "DonneesSIG\ModuleSIG.mdb\" & strTableName RunTool(GP, pCopyRows, Nothing) frmModuleSIG.Cursor = Cursors.WaitCursor Dim pAddIndex As AddIndex = New AddIndex pAddIndex.in_table = frmModuleSIG.opAffMain.oLIP.Siif.RépertoireUsagerCitrix & "DonneesSIG\ModuleSIG.mdb\" & strTableName pAddIndex.fields = strJoinedField pAddIndex.index_name = strIndexName pAddIndex.unique = True pAddIndex.ascending = True RunTool(GP, pAddIndex, Nothing) frmModuleSIG.Cursor = Cursors.WaitCursor Dim pjoinfeatures As AddJoin = New AddJoin pjoinfeatures.in_layer_or_view = pFL pjoinfeatures.in_field = strJoinedField pjoinfeatures.join_field = strJoinedField pjoinfeatures.join_table = frmModuleSIG.opAffMain.oLIP.Siif.RépertoireUsagerCitrix & "DonneesSIG\ModuleSIG.mdb\" & strTableName pjoinfeatures.join_type = False RunTool(GP, pjoinfeatures, Nothing) frmModuleSIG.Cursor = Cursors.WaitCursor Dim pcopyFeatures As CopyFeatures = New CopyFeatures If Not pFL Is Nothing Then pcopyFeatures.in_features = pFL pcopyFeatures.out_feature_class = frmModuleSIG.opAffMain.oLIP.Siif.RépertoireUsagerCitrix & "DonneesSIG\" & strTableName & ".shp" RunTool(GP, pcopyFeatures, Nothing) End If frmModuleSIG.Cursor = Cursors.WaitCursor Dim pRemoveJoin As RemoveJoin = New RemoveJoin pRemoveJoin.in_layer_or_view = pFL pRemoveJoin.join_name = strTableName RunTool(GP, pRemoveJoin, Nothing) frmModuleSIG.Cursor = Cursors.WaitCursor Dim pdelete As Delete = New Delete pdelete.in_data = frmModuleSIG.opAffMain.oLIP.Siif.RépertoireUsagerCitrix & "DonneesSIG\ModuleSIG.mdb\" & strTableName RunTool(GP, pdelete, Nothing) System.Runtime.InteropServices.Marshal.ReleaseComObject(pFC) System.Runtime.InteropServices.Marshal.ReleaseComObject(pFL) GC.Collect() end sub The IFeatureClass is my grid layer wich is a big canvas of the territory splitted in small cells. My iTable may contains up to 22 000 data. Thanks again !
... View more
07-09-2015
05:23 AM
|
0
|
1
|
252
|
POST
|
Hi ! Let see... In my arcGIS Engine 10 VB.NET 2010 application, I have a SDE grid layer that I want to join to an iTable (the iTable contains values that are in relation with the grid). I already have all the code in place that use geoprocessing to MakeTableView, CopyRows, AddIndex, AddJoin, CopyFeatures and RemoveJoin to finally create a SHP from a MDB personnel GDB and display the final result. It works well..... but it is sooo slow that my users still use an older VB6 graphic display software. I'm sure I'm doing something wrong... As we have arcGIS Server standard 10.1, tell me I'm out of the track and that something much better can be done to make y users happier... !!! Thanks... your help will be appreciated !!
... View more
07-08-2015
12:34 PM
|
0
|
3
|
2748
|
POST
|
Hi ! I've been trying to use the html popup interface under arcObjects 9.3.1 vb.net 2008 without any success. Is it more faisable with version 10 ? How can I implement the iHTMLPopupIdentify in my code to have someting like arcMap's html popup windows ? Is there any sample available somewhere ?? I really need your help !
... View more
01-12-2011
09:54 AM
|
0
|
0
|
932
|
POST
|
It is true that using OpenFeatureClass, I would have to specify my query to correctly set my iDisplayTable; but as OpenFetaureQuery works fine with it, I'd like to keep my open attribute table function as general as I can. Otherwise, I would have know, for each featureLayer in my table of content if there's a query to apply or not and so on... So I now hope that ESRI can figure it out. Thank you for your precious help.
... View more
04-09-2010
12:24 PM
|
0
|
0
|
332
|
POST
|
Finally, funny facts ! I tried with a filegeo in Engine : it did'nt work better. Cannot zoom to extend and all features are in the attribute table. BUT, I tried in arcMap VBA : Tada ! Everyting works fine !!! I can zoom to layer and only the selected features are in the attribute table. So I guess it is a problem with arcEngine OR the way to proceed is a bit different (but undocumented, of course).
... View more
04-09-2010
04:51 AM
|
0
|
0
|
332
|
POST
|
Thanks Kirk... I really tried your code but some problems : 1) if I open then attribute table, it will contains the 73000 records even if only 66 records were selected (and 66 are displayed) and 2) Unfortunatly, the zoom to extend doesn't work either. I tried to play around with the code without any success. What am I doing wrong ???
... View more
04-08-2010
10:17 AM
|
0
|
0
|
332
|
POST
|
Hi ! When I do an OpenFeatureQuery to seach by attribute in a lake dataset it result a featurelayer where the extend is the same as Lake. I mean that if I only have 1 lake resulting from my query def, zoom to layer won't bring me to that lake it zoom out to the dataset extend. My code works fine and the result looks great too but I'd like to set the extend of the resulting feature layer to an envelope that would fit the selection. Any help would be appreciated. Thanks ! AcrGIS Engine 9.3.1; vb.net 2008; SDE 9.3.1 (arcGIS Server basic).
... View more
04-07-2010
12:19 PM
|
0
|
7
|
2042
|
Online Status |
Offline
|
Date Last Visited |
02-10-2021
03:25 PM
|