POST
|
I'm using ArcMap 10.2 and it's the same behaviour. This old topic talks about that: ArcGIS Labeling to Illustrator - Software Applications - CartoTalk so I think the issue is not new. When you are labeling line features, especially if you use the Maplex 'street placement', you can get several cases in Illustrator side: - each letter separated - each word separated as text on path - one straight text This behaviour is very disappointing for me. Ideally, I would get only texts on path, where path follows the whole street line. That would be so easier to adjust manually in Illustrator.
... View more
05-10-2016
07:51 AM
|
0
|
0
|
328
|
POST
|
Thanks for your reply Kyle. What a pity that symbol levels are not conserved by the Ai export. I thought Ai export was supposed to be WYSIWYG with the ArcMap rendering. Do you know if this issue is solved in 10.3? I agree with alternative solutions your propose. I resolved separating symbols to layers or re-ordering colors with an Ai ExtendScript.
... View more
11-17-2015
12:31 AM
|
0
|
0
|
372
|
POST
|
I use symbol levels to represent different overlaying lines by importance from a field value. The red lines are more important than the yellow ones and have to be on the top. That's what I get in ArcMap: And now that's what I get after an Illustrator export: Symbol levels are not respected as yellow and orange lines overlay red lines. I use ArcMap 10.2 (I don't know if the problem is still in 10.3). I observed that this problem happens randomly. PDF and EPS exports are not concerned by this issue. Here are the symbology and symbol levels properties for the layer:
... View more
11-16-2015
12:50 AM
|
0
|
2
|
3513
|
POST
|
For information, I run the program from Eclipse but the error also occurs running outside. Is there any configuration used by this ntvinv.dll such as registry key or environment variable? This problem is very blocking for me, so I would be very grateful to get any help.
... View more
06-10-2015
08:48 AM
|
0
|
0
|
1072
|
POST
|
I have developed an visual application using ArcObjects SDK for Java 10.2 which worked well until yesterday. Since, I'm facing a fatal error (full trace below) while I don't feel I have changed anything. The crash occurs when a JFrame is created containing a PageLayoutBean, then the JVM calls NativeObjRef.getJdk13WindowsHandleNative(), and then the ntvinv.dll calls Java_com_esri_arcgis_system_EngineInitializer_initLicensing. According to the description of the file, Ntvinv.dll is 'Native Invocation Library for ArcGIS Java Interop'. I don't see where licensing could be a problem as ArcMap starts well, and the other ArcObjects calls also work. I just discovered that there was a similar function available in Java: public static void initLicensing(int product, String pathToBin) Initialize the ArcObjects for ArcGIS Server with options optimal for usage in a ArcGIS Server Maybe parameters are wrong.. Any idea where to look? The trace: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7ce71790, pid=3848, tid=6472 # # JRE version: 6.0_43-b01 # Java VM: Java HotSpot(TM) Client VM (20.14-b01 mixed mode windows-x86 ) # Problematic frame: # C [ntvinv.dll+0x11790] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0262a800): JavaThread "main" [_thread_in_native, id=6472, stack(0x00430000,0x00480000)] siginfo: ExceptionCode=0xc0000005, reading address 0x00000000 Registers: EAX=0x00000000, EBX=0x00000000, ECX=0xbc5bb6fa, EDX=0x0047f51c ESP=0x0047f3ec, EBP=0x0047f644, ESI=0x0262a928, EDI=0x00000000 EIP=0x7ce71790, EFLAGS=0x00010202 Top of Stack: (sp=0x0047f3ec) 0x0047f3ec: 14864e80 0262a928 14864e80 0047f694 0x0047f3fc: 0047f6a4 0047f660 6a5c2e2e 625c6572 0x0047f40c: 6a5c6e69 2e747761 006c6c64 415c3a43 0x0047f41c: 49476372 65445c53 6f6c6576 4b726570 0x0047f42c: 30317469 6a5c322e 5c617661 5c65726a 0x0047f43c: 5c65726a 5c6e6962 7477616a 6c6c642e 0x0047f44c: 00540000 005904d8 00000000 0262a800 0x0047f45c: 0262b060 00000000 00000007 0047f554 Instructions: (pc=0x7ce71790) 0x7ce71770: 60 90 eb 7c 8b f8 85 ff 75 7a 53 e8 20 fd ff ff 0x7ce71780: 8b d8 8d 94 24 30 01 00 00 2b d3 eb 03 8d 49 00 0x7ce71790: 8a 08 88 0c 02 40 84 c9 75 f6 8d 94 24 30 01 00 0x7ce717a0: 00 52 ff 15 60 90 eb 7c 53 8b f8 e8 88 3f 02 00 Register to memory mapping: EAX=0x00000000 is an unknown value EBX=0x00000000 is an unknown value ECX=0xbc5bb6fa is an unknown value EDX=0x0047f51c is pointing into the stack for thread: 0x0262a800 ESP=0x0047f3ec is pointing into the stack for thread: 0x0262a800 EBP=0x0047f644 is pointing into the stack for thread: 0x0262a800 ESI=0x0262a928 is an unknown value EDI=0x00000000 is an unknown value Stack: [0x00430000,0x00480000], sp=0x0047f3ec, free space=316k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntvinv.dll+0x11790] Java_com_esri_arcgis_system_EngineInitializer_initLicensing+0x1020 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j com.esri.arcgis.interop.NativeObjRef.getJdk13WindowsHandleNative(Ljava/awt/Canvas;)J+0 j com.esri.arcgis.interop.NativeObjRef.a(Ljava/awt/Canvas;)J+1 j com.esri.arcgis.interop.r.getHandleForCanvas(Ljava/awt/Canvas;)J+1 j com.esri.arcgis.interop.Ocx.a()J+48 j com.esri.arcgis.interop.Ocx.addNotify()V+94 j com.esri.arcgis.controls.PageLayoutControl.addNotify()V+5 j java.awt.Container.addNotify()V+61 j javax.swing.JComponent.addNotify()V+1 j java.awt.Container.addNotify()V+61 j javax.swing.JComponent.addNotify()V+1 j java.awt.Container.addNotify()V+61 j javax.swing.JComponent.addNotify()V+1 j java.awt.Container.addNotify()V+61 j javax.swing.JComponent.addNotify()V+1 j javax.swing.JRootPane.addNotify()V+1 j java.awt.Container.addNotify()V+61 j java.awt.Window.addNotify()V+73 j java.awt.Frame.addNotify()V+70 j java.awt.Window.show()V+8 j java.awt.Component.show(Z)V+5 j java.awt.Component.setVisible(Z)V+2 j java.awt.Window.setVisible(Z)V+2 j latitude.arcobjects.utils.MapWindow.setPageLayout(Lcom/esri/arcgis/carto/IPageLayout;)V+51 j latitude.arcobjects.proxy.PageProxy.startVisualMode(Lcom/esri/arcgis/geometry/IEnvelope;)V+20 j latitude.application.export.Export.main([Ljava/lang/String;)V+2519 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x192f5400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=6220, stack(0x2b5d0000,0x2b620000)] 0x19352800 JavaThread "AWT-Shutdown" [_thread_blocked, id=5696, stack(0x21870000,0x218c0000)] 0x19252c00 JavaThread "Thread-3" daemon [_thread_in_native, id=6980, stack(0x1a7f0000,0x1a840000)] 0x19281000 JavaThread "J-Integra COM initialization thread (please don't touch)" daemon [_thread_blocked, id=468, stack(0x19710000,0x19760000)] 0x19280800 JavaThread "ArcGIS VisualBean Mode STA Thread" daemon [_thread_in_native, id=2652, stack(0x19680000,0x196d0000)] 0x1927f800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=6760, stack(0x195b0000,0x19600000)] 0x1927a800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2632, stack(0x19490000,0x194e0000)] 0x0253f400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3088, stack(0x18cd0000,0x18d20000)] 0x0253c800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=3256, stack(0x18c00000,0x18c50000)] 0x0253a400 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=5640, stack(0x18b60000,0x18bb0000)] 0x02534400 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=976, stack(0x18b10000,0x18b60000)] 0x02532000 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=700, stack(0x18a30000,0x18a80000)] 0x02528000 JavaThread "Attach Listener" daemon [_thread_blocked, id=6232, stack(0x188d0000,0x18920000)] 0x02524c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=6240, stack(0x18840000,0x18890000)] 0x024f5000 JavaThread "Finalizer" daemon [_thread_blocked, id=6616, stack(0x187b0000,0x18800000)] 0x024f3800 JavaThread "Reference Handler" daemon [_thread_blocked, id=6708, stack(0x18720000,0x18770000)] =>0x0262a800 JavaThread "main" [_thread_in_native, id=6472, stack(0x00430000,0x00480000)] Other Threads: 0x024ef000 VMThread [stack: 0x18690000,0x186e0000] [id=3836] 0x1917b800 WatcherThread [stack: 0x18d60000,0x18db0000] [id=3320] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 4928K, used 3885K [0x04630000, 0x04b80000, 0x09b80000) eden space 4416K, 76% used [0x04630000, 0x0497d6f0, 0x04a80000) from space 512K, 98% used [0x04a80000, 0x04afe058, 0x04b00000) to space 512K, 0% used [0x04b00000, 0x04b00000, 0x04b80000) tenured generation total 10944K, used 2157K [0x09b80000, 0x0a630000, 0x14630000) the space 10944K, 19% used [0x09b80000, 0x09d9b5d8, 0x09d9b600, 0x0a630000) compacting perm gen total 16384K, used 16187K [0x14630000, 0x15630000, 0x18630000) the space 16384K, 98% used [0x14630000, 0x155fee48, 0x155ff000, 0x15630000) No shared spaces configured. Code Cache [0x02630000, 0x02798000, 0x04630000) total_blobs=721 nmethods=477 adapters=187 free_code_cache=32092160 largest_free_block=1216 Dynamic libraries: 0x00400000 - 0x00425000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\javaw.exe 0x77240000 - 0x773c0000 C:\Windows\SysWOW64\ntdll.dll 0x75ec0000 - 0x75fd0000 C:\Windows\syswow64\kernel32.dll 0x76100000 - 0x76147000 C:\Windows\syswow64\KERNELBASE.dll 0x76d00000 - 0x76da1000 C:\Windows\syswow64\ADVAPI32.dll 0x76930000 - 0x769dc000 C:\Windows\syswow64\msvcrt.dll 0x76520000 - 0x76539000 C:\Windows\SysWOW64\sechost.dll 0x76bb0000 - 0x76ca0000 C:\Windows\syswow64\RPCRT4.dll 0x74bc0000 - 0x74c20000 C:\Windows\syswow64\SspiCli.dll 0x74bb0000 - 0x74bbc000 C:\Windows\syswow64\CRYPTBASE.dll 0x75d70000 - 0x75e70000 C:\Windows\syswow64\USER32.dll 0x75fd0000 - 0x76060000 C:\Windows\syswow64\GDI32.dll 0x76150000 - 0x7615a000 C:\Windows\syswow64\LPK.dll 0x76060000 - 0x760fd000 C:\Windows\syswow64\USP10.dll 0x769f0000 - 0x76a50000 C:\Windows\system32\IMM32.DLL 0x76540000 - 0x7660c000 C:\Windows\syswow64\MSCTF.dll 0x7c340000 - 0x7c396000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\msvcr71.dll 0x6d8c0000 - 0x6db70000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\client\jvm.dll 0x70500000 - 0x70532000 C:\Windows\system32\WINMM.dll 0x73790000 - 0x737dc000 C:\Windows\system32\apphelp.dll 0x6d870000 - 0x6d87c000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\verify.dll 0x6d3d0000 - 0x6d3ef000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\java.dll 0x6d420000 - 0x6d449000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\jdwp.dll 0x6d740000 - 0x6d746000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\npt.dll 0x6d8b0000 - 0x6d8bf000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\zip.dll 0x6d2b0000 - 0x6d2b7000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\dt_socket.dll 0x75e80000 - 0x75eb5000 C:\Windows\syswow64\WS2_32.dll 0x75e70000 - 0x75e76000 C:\Windows\syswow64\NSI.dll 0x70b50000 - 0x70b60000 C:\Windows\system32\NLAapi.dll 0x70b40000 - 0x70b50000 C:\Windows\system32\napinsp.dll 0x70b20000 - 0x70b32000 C:\Windows\system32\pnrpnsp.dll 0x70db0000 - 0x70dec000 C:\Windows\System32\mswsock.dll 0x73800000 - 0x73844000 C:\Windows\system32\DNSAPI.dll 0x70b10000 - 0x70b18000 C:\Windows\System32\winrnr.dll 0x70ae0000 - 0x70b07000 C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL 0x769e0000 - 0x769e5000 C:\Windows\syswow64\PSAPI.DLL 0x762c0000 - 0x76317000 C:\Windows\syswow64\SHLWAPI.dll 0x74520000 - 0x7453c000 C:\Windows\system32\IPHLPAPI.DLL 0x74510000 - 0x74517000 C:\Windows\system32\WINNSI.DLL 0x70aa0000 - 0x70ad8000 C:\Windows\System32\fwpuclnt.dll 0x70a90000 - 0x70a96000 C:\Windows\system32\rasadhlp.dll 0x70cb0000 - 0x70cb5000 C:\Windows\System32\wshtcpip.dll 0x6d6b0000 - 0x6d6c3000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\net.dll 0x70a80000 - 0x70a86000 C:\Windows\System32\wship6.dll 0x6d0b0000 - 0x6d1fc000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\awt.dll 0x74a80000 - 0x74ad1000 C:\Windows\system32\WINSPOOL.DRV 0x76160000 - 0x762bc000 C:\Windows\syswow64\ole32.dll 0x71000000 - 0x7119e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18807_none_41e554362bd82458\COMCTL32.dll 0x6f1f0000 - 0x6f203000 C:\Windows\system32\DWMAPI.DLL 0x6ee30000 - 0x6eeb0000 C:\Windows\system32\uxtheme.dll 0x6d2e0000 - 0x6d32f000 C:\ArcGIS\DeveloperKit10.2\java\jre\bin\fontmanager.dll 0x7ce60000 - 0x7ced5000 C:\ArcGIS\Desktop10.2\bin\ntvinv.dll 0x76db0000 - 0x76e3f000 C:\Windows\syswow64\OLEAUT32.dll 0x76b20000 - 0x76ba3000 C:\Windows\syswow64\CLBCatQ.DLL 0x71ea0000 - 0x71eb1000 C:\Program Files (x86)\Common Files\ArcGIS\bin\ArcGISVersion.dll 0x64530000 - 0x6455b000 C:\Windows\WinSxS\x86_microsoft.vc90.atl_1fc8b3b9a1e18e3b_9.0.30729.7523_none_51c8dd18bbe8adec\ATL90.DLL 0x644a0000 - 0x6452e000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.7523_none_508f21ccbcbbb7a8\MSVCP90.dll 0x711a0000 - 0x71243000 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.7523_none_508f21ccbcbbb7a8\MSVCR90.dll 0x732f0000 - 0x73307000 C:\Windows\system32\CRYPTSP.dll 0x731c0000 - 0x731fb000 C:\Windows\system32\rsaenh.dll 0x73220000 - 0x7322e000 C:\Windows\system32\RpcRtRemote.dll 0x617b0000 - 0x61987000 C:\ARCGIS\DESKTOP10.2\BIN\DADFLib.dll 0x74ae0000 - 0x74ae9000 C:\Windows\system32\VERSION.dll 0x74ff0000 - 0x75c3b000 C:\Windows\syswow64\SHELL32.dll 0x64480000 - 0x64497000 C:\ARCGIS\DESKTOP10.2\BIN\AoInitializer.dll 0x74a10000 - 0x74a20000 C:\ARCGIS\DESKTOP10.2\BIN\AppInitializerLib.dll 0x61510000 - 0x617a2000 C:\ARCGIS\DESKTOP10.2\BIN\AfCore.dll 0x70580000 - 0x70591000 C:\Windows\system32\NETAPI32.dll 0x70570000 - 0x70579000 C:\Windows\system32\netutils.dll 0x70550000 - 0x70569000 C:\Windows\system32\srvcli.dll 0x70540000 - 0x7054f000 C:\Windows\system32\wkscli.dll 0x704e0000 - 0x704f2000 C:\Windows\system32\MPR.dll 0x74d70000 - 0x74deb000 C:\Windows\syswow64\COMDLG32.dll 0x61060000 - 0x61501000 C:\ARCGIS\DESKTOP10.2\BIN\AfCore_libFNP.dll 0x72d10000 - 0x72d19000 C:\Windows\system32\snmpapi.dll 0x76320000 - 0x764bd000 C:\Windows\syswow64\SETUPAPI.dll 0x76900000 - 0x76927000 C:\Windows\syswow64\CFGMGR32.dll 0x76a70000 - 0x76a82000 C:\Windows\syswow64\DEVOBJ.dll 0x74560000 - 0x74567000 C:\Windows\system32\WSOCK32.dll 0x72be0000 - 0x72c1c000 C:\Windows\system32\OLEACC.dll 0x6f140000 - 0x6f14a000 C:\Windows\system32\wbem\wbemprox.dll 0x6f150000 - 0x6f1ac000 C:\Windows\system32\wbemcomn.dll 0x6f050000 - 0x6f05f000 C:\Windows\system32\wbem\wbemsvc.dll 0x6ef70000 - 0x6f006000 C:\Windows\system32\wbem\fastprox.dll 0x6ef50000 - 0x6ef68000 C:\Windows\system32\NTDSAPI.dll 0x76680000 - 0x766af000 C:\Windows\syswow64\WINTRUST.dll 0x75c40000 - 0x75d61000 C:\Windows\syswow64\CRYPT32.dll 0x766b0000 - 0x766bc000 C:\Windows\syswow64\MSASN1.dll 0x728b0000 - 0x728b3000 C:\Windows\system32\icmp.Dll 0x70b90000 - 0x70b9d000 C:\Windows\system32\dhcpcsvc6.DLL 0x70b70000 - 0x70b82000 C:\Windows\system32\dhcpcsvc.DLL 0x6d590000 - 0x6d5ac000 c:\arcgis\desktop10.2\bin\ccjw.dll 0x60ed0000 - 0x61060000 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18834_none_72d38c5186679d48\gdiplus.dll 0x7e690000 - 0x7e69f000 c:\arcgis\desktop10.2\bin\reghelp.dll 0x64390000 - 0x6447a000 C:\ARCGIS\DESKTOP10.2\BIN\BGLAPI.dll 0x60e00000 - 0x60ec6000 C:\ARCGIS\DESKTOP10.2\BIN\BGLGeomChestLib.dll 0x72830000 - 0x728a9000 C:\Windows\system32\mscms.dll 0x76a50000 - 0x76a67000 C:\Windows\syswow64\USERENV.dll 0x76670000 - 0x7667b000 C:\Windows\syswow64\profapi.dll 0x7a130000 - 0x7a180000 C:\ARCGIS\DESKTOP10.2\BIN\LCMS117LIB.DLL 0x60d20000 - 0x60df2000 C:\ARCGIS\DESKTOP10.2\BIN\BGLFontEngine.dll 0x79540000 - 0x7965f000 C:\ARCGIS\DESKTOP10.2\BIN\icuuc44.dll 0x781d0000 - 0x79011000 C:\ARCGIS\DESKTOP10.2\BIN\icudt44.dll 0x79350000 - 0x79383000 C:\ARCGIS\DESKTOP10.2\BIN\icule44.dll 0x64360000 - 0x6438f000 C:\ARCGIS\DESKTOP10.2\BIN\BGLAPILib.dll 0x60c80000 - 0x60d1f000 C:\ARCGIS\DESKTOP10.2\BIN\ImageAccessLib.dll 0x60be0000 - 0x60c73000 C:\ARCGIS\DESKTOP10.2\BIN\BGLRasterizerLib.dll 0x79300000 - 0x7930f000 C:\ARCGIS\DESKTOP10.2\BIN\icuio44.dll 0x79160000 - 0x792e5000 C:\ARCGIS\DESKTOP10.2\BIN\icuin44.dll 0x73610000 - 0x73705000 C:\Windows\system32\propsys.dll 0x74a50000 - 0x74a71000 C:\Windows\system32\ntmarta.dll 0x76cb0000 - 0x76cf5000 C:\Windows\syswow64\WLDAP32.dll 0x60b60000 - 0x60bd6000 C:\ARCGIS\DESKTOP10.2\BIN\BGLToGDIHelper.dll 0x64330000 - 0x64358000 C:\ARCGIS\DESKTOP10.2\BIN\BGLSymbolsLib.dll 0x60ab0000 - 0x60b5c000 C:\ARCGIS\DESKTOP10.2\BIN\BGLImageCoders.dll 0x637f0000 - 0x63828000 C:\Windows\system32\icm32.dll 0x60950000 - 0x60aa7000 C:\Windows\System32\msxml6.dll 0x60900000 - 0x60944000 C:\ARCGIS\DESKTOP10.2\BIN\BGLCache.dll 0x60620000 - 0x608f6000 C:\ARCGIS\DESKTOP10.2\BIN\Geometry.dll 0x605f0000 - 0x60612000 C:\Windows\system32\GLU32.dll 0x60520000 - 0x605e8000 C:\Windows\system32\OPENGL32.dll 0x60430000 - 0x60517000 C:\Windows\system32\DDRAW.dll 0x71de0000 - 0x71de6000 C:\Windows\system32\DCIMAN32.dll 0x7d3a0000 - 0x7d79b000 C:\ARCGIS\DESKTOP10.2\BIN\pe.dll 0x1c350000 - 0x1c3ad000 C:\ARCGIS\DESKTOP10.2\BIN\sg.dll 0x60220000 - 0x60425000 C:\ARCGIS\DESKTOP10.2\BIN\ExtTopoEngine.dll 0x1d060000 - 0x1d4be000 C:\ARCGIS\DESKTOP10.2\BIN\sde.dll 0x6f3d0000 - 0x6f3df000 C:\Windows\system32\SAMCLI.DLL VM Arguments: jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:49309 -Dfile.encoding=Cp1252 java_command: latitude.application.export.Export Launcher Type: SUN_STANDARD Environment Variables: PATH=C:\Python27\ArcGIS10.2\;C:\ARCGIS\DESKTOP10.2\BIN;C:\ArcGIS\DeveloperKit10.2\java\jre\bin;C:\PROGRA~2\Fiery\COMMAN~1\plugins;C:\PROGRA~2\COMMON~1\EFI;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Perl64\site\bin;C:\Perl64\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\apache-maven-3.2.1\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Python27\ArcGISx6410.2;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\GeoConcept SA\GeoConcept;C:\Program Files (x86)\GeoConcept SA\GeoLib\Data;C:\Program Files (x86)\GeoConcept SA\GeoConcept;C:\Users\Kevin\AppData\Roaming\npm;C:\MinGW\bin;C:\Program Files (x86)\Inkscape USERNAME=Kevin OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel --------------- S Y S T E M --------------- OS: Windows 7 , 64 bit Build 7601 Service Pack 1 CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht Memory: 4k page, physical 8322424k(5368132k free), swap 16643012k(13279444k free) vm_info: Java HotSpot(TM) Client VM (20.14-b01) for windows-x86 JRE (1.6.0_43-b01), built on Mar 1 2013 02:51:23 by "java_re" with MS VC++ 7.1 (VS2003) time: Wed Jun 10 11:52:47 2015 elapsed time: 98 seconds
... View more
06-10-2015
03:44 AM
|
0
|
3
|
7977
|
POST
|
Writing this question, I found a solution: it was at the creation of the workspace, we don't have to call the IWorkspaceProxy constructor but the Workspace() constructor: IWorkspace workspace = new Workspace(name.open()); After doing this modification, it solves the IWorkspace2 cast problem, good news. So, it seems there is an error in the ArcObjects Java documentation I initially followed: http://help.arcgis.com/en/sdk/10.0/java_ao_adf/conceptualhelp/engine/index.html#/How_to_create_new_geodatabases/0001000002w4000000/ in the Creating a file geodatabase workspace paragraph. Anyway, this modification didn't solve the IFeatureClassLoad cast error. So, I also changed the way I open feature classes by: featureWorkspace.openFeatureClass(featureClassName); but the error is still here. Any idea?
... View more
05-27-2015
06:48 AM
|
1
|
0
|
530
|
POST
|
I use the ArcObjects 10.2 API for Java and I reported several incoherences between the API documentation and what I'm experiencing, especially regarding File GDB relative interface casts: - The IFeatureClass objects are not castable to IFeatureClassLoad (needed to load data faster) unlike what it's written in the documentation: http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/com/esri/arcgis/geodatabase/IFeatureClassLoad.html - The IWorkspace object is not castable to IWorkspace2 (needed to check name existence). I get that com.esri.arcgis.geodatabase.IWorkspaceProxy cannot be cast to com.esri.arcgis.geodatabase.IWorkspace2. However, the documentation says it's for Geodatabase and shapefiles: IWorkspace2 (ArcObjects Java API). More about how I create or open my file geodatabases, maybe the solution is here: // creation
IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory();
IWorkspaceName workspaceName = workspaceFactory.create(parentDirectory, gdbName, null, 0);
IName name = (IName)workspaceName;
IWorkspace workspace = new IWorkspaceProxy(name.open());
// opening
IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactory();
IWorkspace workspace = workspaceFactory.openFromFile(gdbPath, 0);
// feature class creation
String geometryShapeFieldName = "Shape";
GeometryDef geometryDef = new GeometryDef();
geometryDef.setGeometryType(geometryType);
geometryDef.setSpatialReferenceByRef(spatialReference);
Field idField = new Field();
idField.setName("OBJECTID");
idField.setAliasName("OBJECTID");
idField.setType(esriFieldType.esriFieldTypeOID);
Field geometryShapeField = new Field();
geometryShapeField.setName(geometryShapeFieldName);
geometryShapeField.setType(esriFieldType.esriFieldTypeGeometry);
geometryShapeField.setGeometryDefByRef(geometryDef);
Fields fields = new Fields();
fields.addField(idField);
fields.addField(geometryShapeField);
IFeatureClassDescription fcDesc = new FeatureClassDescription();
IObjectClassDescription ocDesc = (IObjectClassDescription)fcDesc;
IFeatureWorkspace featureWorkspace = new IFeatureWorkspaceProxy(workspace);
IFeatureDataset featureDataset = featureWorkspace.openFeatureDataset(name);
IFeatureClass featureClass = featureDataset.createFeatureClass(featureClassName, fields, ocDesc.getInstanceCLSID(), ocDesc.getClassExtensionCLSID(), esriFeatureType.esriFTSimple, geometryShapeFieldName, "");
// feature class opening
IGPUtilities gpUtilities = new GPUtilities();
IFeatureClass featureClass = gpUtilities.openFeatureClassFromString(featureClassFullPath);
boolean exists = ((IWorkspace2)workspace).isNameExists(esriDatasetType.esriDTFeatureClass, name); // don't work, cast exception
IFeatureClassLoad featureClassLoad = (IFeatureClassLoad)featureClass; // don't work either
featureClassLoad.setLoadOnlyMode(true);
... View more
05-27-2015
06:10 AM
|
0
|
1
|
3229
|
POST
|
Yes, I tried this interface but I don't know why, when I cast my feature class to IFeatureClassLoad, I get a cast exception : java.lang.ClassCastException: com.esri.arcgis.geodatabase.IFeatureClassProxy cannot be cast to com.esri.arcgis.geodatabase.IFeatureClassLoad However, according to the documentation, IFeatureClassLoad is implemented for File GDB feature classes.
... View more
05-18-2015
08:56 AM
|
0
|
0
|
452
|
POST
|
I am using the ArcObjects API for Java to load a very large dataset in a File Geodatabase in one feature class. The whole dataset I have to load is composed of 200 datasets of 30k polygons, and I load the datasets one after the other. I read data from XML files (I am sure there is no memory leak in this step). The loading process is in a BaseGeoprocessingTool. Here is my code to write the data of one dataset in the feature class: IFeatureClass featureClass = ...
IFeatureCursor insertCursor = featureClass.IFeatureClass_insert(false); // true uses too much memory
IFeatureBuffer featureBuffer = featureClass.createFeatureBuffer();
IGeometry geometry = null;
List<Integer> fieldIdsToClear = new ArrayList<Integer>();
int i = 0;
for(FeatureBean featureBean : features) {
if(log.canContinue()) {
geometry = featureBean.geometry.getGeometry();
geometry.setSpatialReferenceByRef(fromSpatialReference);
if(toBeProjected) geometry.project(toSpatialReference);
featureBuffer.setShapeByRef(geometry);
// reset the fields in the featureBuffer
for(Integer fieldId : fieldIdsToClear) {
featureBuffer.setValue(fieldId, null);
}
fieldIdsToClear.clear();
featureBuffer.setValue(idFieldId, (int)featureBean.id);
for(Entry<String, String> tag : featureBean.tagMap.entrySet()) {
int fieldId = fieldIdMap.get(tag.getKey());
featureBuffer.setValue(fieldId, tag.getValue());
fieldIdsToClear.add(fieldId);
}
insertCursor.insertFeature(featureBuffer);
i++;
if(i > 1000) {
insertCursor.flush();
i = 0;
}
}
}
insertCursor.flush();
Cleaner.release(geometry);
Cleaner.release(featureBuffer);
Cleaner.release(insertCursor);
Cleaner.release(featureClass); After reading these advices, I use an insert cursor instead of IFeature.store() so that process is ~5x faster. So, I do not recreate the FeatureBuffer each time I insert a new feature. Instead of, I reuse it and clear the necessary fields. This process works well and is very fast. Nevertheless, there is a memory leak. Watching ArcMap.exe process memory, we can see that it uses about 100 Mb to load each dataset, then the memory is not released, even if objects are released in my code. When memory is about 1300 Mb (only after loaded the 5th dataset), the process crashes on the exception AutomationException: One or more arguments are invalid I have tried different Java max heap sizes with JavaConfigTool.exe between 512 and 1900 Mb, but it doesn't change anything. What solution could I try to be sure that ArcGIS really release useless objects? As I have a lot of datasets to load, I really need to release to get back the 100 Mb each time a dataset has been loaded. I also tried to flush every 1, 1000 or 2000 features but it doesn't change anything in memory usage. Any help is welcome to optimize my process. I use ArcGIS 10.2 with Background Geoprocessing (64bits) and have 8 Go of RAM.
... View more
04-27-2015
05:36 AM
|
0
|
2
|
3685
|
POST
|
I just migrated from 10.2 to 10.3 and am surprised to see the behaviour of the Adobe Illustrator export from ArcMap has changed. In 10.2, layers tree of AI exported files were composed of a lot of groups in groups in groups... of layers. The structure was a bit complicated but very useful to modify easily the document. But now, there is just one group by label class, containing all labels. This is an issue for my mapping production line as I use Maplex to place labels, then I export to Illustrator where I move unplaced labels and apply background transparency to the labels. For more details, I always use label classes, and my labels are composed of one or more lines of text, an rectangle outline, a background and a line callout. Now, every label elements are grouped in a same group, and it's not possible to select and move only one label. Is this new behaviour wanted? Why? Waiting to solve this issue, I can't migrate to 10.3.
... View more
02-16-2015
07:20 AM
|
0
|
0
|
3985
|
POST
|
OK, I finally found a solution in the sample called "Create A Schematic Diagram Class Entirely Based On Custom Queries From Scratch". I needed to create a shape field object (IField) to set the spatial reference of my ISchematicElementClass objects. Now I get the schematic diagram spatial referenced. Problem solved, thanks a lot for the help!
... View more
01-28-2015
02:50 AM
|
0
|
0
|
180
|
POST
|
I can't cast the SchematicDataset to IGeoDatasetSchemaEdit because I get an InvalidCastException. Here is my code: I create a schematicWorkspace from a IWorkspace like this: [...] ISchematicWorkspaceFactory schematicWorkspaceFactory = new SchematicWorkspaceFactoryClass();
ISchematicWorkspace schematicWorkspace = schematicWorkspaceFactory.Open(workspace); Then, I create the schematic dataset: schematicDataset = schematicWorkspace.CreateSchematicDataset(SCHEMATIC_DATASET_NAME);
schematicDataset.DesignMode = true;
Type objectType = Type.GetTypeFromProgID("esriSchematic.SchematicStandardBuilder");
ISchematicStandardBuilder schematicStandardBuilder = Activator.CreateInstance(objectType) as ISchematicStandardBuilder;
schematicStandardBuilder.AddConnectedNodes = true;
schematicStandardBuilder.InitializeLinksVertices = true;
schematicStandardBuilder.AutoCreateElementClasses = true;
schematicDiagramClass = schematicDataset.CreateSchematicDiagramClass(SCHEMATIC_DIAGRAM_CLASS_NAME);
schematicDiagramClass.SchematicBuilder = schematicStandardBuilder as ISchematicBuilder;
schematicDiagramClass.SchematicDataSource = schematicDataset.DefaultSchematicDataSource;
schematicDiagramClass.ExternalQueryEvaluationMode = esriSchematicExternalQueryEvaluationMode.esriSchematicNoQuery;
schematicDiagramClass.AlwaysLoadDiagrams = true; Then, I define the spatial reference: ISpatialReference spatialReference = gdbDataset.getSpatialReference();
IGeoDatasetSchemaEdit geoDataset = (IGeoDatasetSchemaEdit)schematicDataset; // here I get an InvalidCastException
geoDataset.AlterSpatialReference(spatialReference);
IGeoDatasetSchemaEdit geoDiagramClass = (IGeoDatasetSchemaEdit)schematicDiagramClass;
geoDiagramClass.AlterSpatialReference(spatialReference);
... View more
01-27-2015
08:49 AM
|
0
|
2
|
1090
|
POST
|
OK, I got the ISchematicDataset object and am looking for an interface like IGeoDatasetSchemaEdit to change the spatial reference. The available interfaces are in this list: ArcObjects 10 .NET SDK Help IGeoDatasetSchemaEdit isn't available for this object because I get a cast error. Which interface could I use ?
... View more
01-27-2015
06:37 AM
|
0
|
4
|
1090
|
POST
|
It works casting the ISchematicDiagramClass object to this IGeoDatasetSchemaEdit, then using AlterSpatialReference, thanks. Now I still have a 'missing spatial reference' error adding a diagram to a map, because the schematic element classes still don't have spatial reference. I create these object as ISchematicElementClass. What interface could I use to set their spatial reference?
... View more
01-27-2015
05:54 AM
|
0
|
6
|
1090
|
POST
|
Yes, but the spatial reference property of IGeoDataset is read-only: http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0025000003n0000000 There is only a "get" to the spatial reference object.
... View more
01-27-2015
02:42 AM
|
0
|
8
|
1090
|
Title | Kudos | Posted |
---|---|---|
1 | 05-27-2015 06:48 AM | |
1 | 09-10-2014 06:54 AM | |
1 | 09-03-2014 08:02 AM |
Online Status |
Offline
|
Date Last Visited |
01-19-2023
03:07 PM
|