POST
|
Hi, I'm building an ArcMap addin using VS2013. I added the WPF Toolkit nugget, but when my code runs in ArcMap, it says it can't find the toolkit dlls. I went to the addin location (C:\Users\pedro.abreu\AppData\Local\ESRI\Desktop10.3\AssemblyCache\...) and I know the toolkit dlls are there. I tried adding another dll to the project as an experiment and I got the same result. Am I missing something? Do I have to register those external dlls somewhere in order for ArcMap to recognize them? Cheers, Pedro
... View more
04-07-2016
08:12 AM
|
0
|
0
|
1064
|
POST
|
Apparently this problem only affects Dynamic Map Service Layers
... View more
01-28-2013
08:25 AM
|
0
|
0
|
138
|
POST
|
Hi all, I am using the IdentifyTask to get a cell value of a raster. Since I upgrade to the 3.0 API version it stopped working. I can see on fiddler that the response is the one I want, but the IdentifyTask event args keep coming empty (as seen in the attached image). Is there a patch that fixes this issue? Cheers, Pedro
... View more
01-22-2013
12:49 AM
|
0
|
1
|
450
|
POST
|
To be honest, I don't know what dark magic runs behind the scene... But it was the only way that I found for ArcCatalog to recognize the Views. About the SDEBINARY on the initial post, I showed a link to a esri page that claims that views won't work with Binary storage type.... And they weren't working with SDE 10.1 (they were working with SDE 10.0)
... View more
07-20-2012
07:11 AM
|
0
|
0
|
301
|
POST
|
Hi all, First of all: Thanks for the reply, Vince 😉 Second, here's how I solve the issue: Create Table 1: CREATE TABLE [MyFeatClass] ( [OID] int NOT NULL, [SHAPE] geometry NULL, [MyTable_Guid] uniqueidentifier NOT NULL ); Create Table 2: CREATE TABLE [MyTable] ( [Guid] uniqueidentifier NOT NULL, [Name] nvarchar(50) NOT NULL, ); GO Create View: CREATE VIEW [MyView] AS SELECT MyFeatClass.OID, MyFeatClass.SHAPE, MyTable.Name, FROM MyFeatClass INNER JOIN MyTable ON MyFeatClass.MyTable_Guid = MyTable.Guid Register Table 1 as FeatureClass: sdetable -o register -t MyFeatClass -c OID -C SDE -u [user] -p [pass] -D [database] -i sde:sqlserver:[instance] sdelayer -o add -l MyFeatClass,SHAPE -t GEOMETRY -e nl+M -C OID,SDE -g GRID,5700 -x 0,0,200 -z 0,200 -G 30731 -P HIGH -L off -i sde:sqlserver:[instance] -s [server] -D [database] -u [user] -p [pass] Register View: sdetable -o create_view -T "MyView" -t "MyFeatClass,MyTable" -c "MyFeatClass.SHAPE,MyFeatClass.OID,MyTable.Name" -w "MyFeatClass.MyTable_Guid=MyTable.Guid" -i sde:sqlserver:[instance] -s [server] -D [database] -u [user] -p [pass] sdelayer -o add -l MyView,SHAPE -t GEOMETRY -e np3 -C OID,SDE -g GRID,5700 -x 0,0,200 -z 0,200 -G 30731 -P HIGH -L off -i sde:sqlserver:[instance] -s [server] -D [database] -u [user] -p [pass]
... View more
07-20-2012
06:08 AM
|
0
|
0
|
301
|
POST
|
Hi all, Back in the good old 10.0 I was creating a spatial view between one Table and two Feature Classes defined as follow: sdetable -o create_view -T "spatialView_ROUTES_EVENT" -t "PODS.DBO.GEOM_LINEAR_EVENT,PODS.DBO.EVENT_RANGE,PODS.DBO.GEOM_ROUTES" -c "PODS.DBO.GEOM_LINEAR_EVENT.SHAPE,PODS.DBO.GEOM_LINEAR_EVENT.OID,PODS.DBO.EVENT_RANGE.FEATURE_ID,PODS.DBO.GEOM_ROUTES.STATUS,PODS.DBO.EVENT_RANGE.EVENT_GUID" -w "PODS.DBO.GEOM_LINEAR_EVENT.EVENT_GUID=PODS.DBO.EVENT_RANGE.EVENT_GUID AND PODS.DBO.GEOM_LINEAR_EVENT.GEOM_ROUTES_OID=PODS.DBO.GEOM_ROUTES.OID" -i sde:sqlserver:[instance] -s [server] -D PODS -u [user] -p [pass] Now that I am migrating the project to 10.1 the view is registered but it just doesn't work. ArcMap dosn't recognize it as a spatial view. After some research i come across with this bit of information: http://resources.arcgis.com/en/help/main/10.1/index.html#/Creating_a_database_view_in_ArcGIS_for_Desktop/002q000000rt000000/ "You cannot create a spatial view if the spatial column is a binary geometry data type" I went back and checked the way I was registering the Feature Class and I realize that yes, I was registering the Shape field as a binary type: sdelayer -o add -l dbo.GEOM_ROUTES,SHAPE -t SDEBINARY -e nl+M -C OID,SDE -g GRID,5700 -x 0,0,200 -z 0,200 -G 30731 -P HIGH -L off -i sde:sqlserver:[instance] -s [server] -D PODS -u [user] -p [pass] So, I thought, let's change the Shape field type to something else that SQL Server 2012 can recognize: 1st attempt: sdelayer -o add -l dbo.GEOM_ROUTES,SHAPE -t GEOMETRY -e nl+M -C OID,SDE -g GRID,5700 -x 0,0,200 -z 0,200 -G 30731 -P HIGH -L off -i sde:sqlserver:[instance] -s [server] -D PODS -u [user] -p [pass] Error: Invalid layer storage type (-196) 2nd attempt: sdelayer -o add -l dbo.GEOM_ROUTES,SHAPE -t GEOGRAPHY -e nl+M -C OID,SDE -g GRID,5700 -x 0,0,200 -z 0,200 -G 30731 -P HIGH -L off -i sde:sqlserver:[instance] -s [server] -D PODS -u [user] -p [pass] Error: Invalid layer storage type (-196) Can anybody help me out with this one...? Thanks, Pedro
... View more
07-19-2012
03:22 AM
|
0
|
5
|
415
|
POST
|
Neil, I've been coding ArcObjects for so many years, and never had a problem with instancing Workspaces Factories with the "new" keyword. But there's always a first for everything, and this was my first. Thank you for your help 😉
... View more
10-13-2010
09:37 AM
|
0
|
0
|
817
|
POST
|
Hi, With ArcGIS Desktop 10, Sometimes this line of code: IWorkspaceFactory factory = new FileGDBWorkspaceFactoryClass(); throws this exception: Unable to cast object of type System.__ComObject to type ESRI.ArcGIS.DataSourcesGDB.FileGDBWorkspaceFactoryClass I'm puzzled... Anybody has experienced this yet?
... View more
10-07-2010
07:32 AM
|
0
|
4
|
3921
|
POST
|
Hi Alain, I'm having a similiar problem... Did you find how to do it?
... View more
09-22-2010
06:27 AM
|
0
|
0
|
520
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|