POST
|
After a while I noticed that the mxd doctor is showing the right guid for my layer saved in the mxd files, but he couldn't resolve which type this guid belongs to. The solution is to ensure that the class will be com registered via esriregasm (which in my case already happened with that project) and that the needed classes have a an explicitly defined default constructor which can be used by the registration process. So my class only had "specialized" constructors with parameters, but no explicitly defined default constructor without parameters. After adding this everything worked. ArcMap can now resolve which type the saved guid belongs to and rebuild the layer (in it's save/load method one has to ensure that all needed information are persisted and the building up happens in the right way).
... View more
07-13-2017
03:41 AM
|
0
|
0
|
264
|
POST
|
Hello, to be clear from the beginning: I'm not loooking for saving a custom layer to a layer file (for that I found many examples), but I want to get my custom layers saved to the mxd-files so that this layers would be displayed if the user reopens the file. I'm using as underlying library ArcBrutile and I'm displaying HERE-Maps. I found this (old) article about layers and nearly the same article for a current ArcGIS version for Java. The first one states that I need for saving to implement the "IPersistStream"-Interface, while the other one tells me that I need "IPersistVariant"-Interface. Originally the "IPersistVariant"-interface already was implemented for the layers. I tried to implement also the "IPersistStream"-Interface, but the layers still won't be saved to the mxd-file. So how I'm able to save tiled custom layers to mxd?
... View more
07-06-2017
02:32 AM
|
0
|
1
|
530
|
POST
|
Same thing here. Upgrading project from ArcGIS 10.3.1 to 10.4.1. Visual Studio is the same (2013) Edit: I think I found a solution: You see in the posted error messages the reference to the causing *.tlh file. Just add for every according import in stdafx.h a rename like this: rename("XMLSerializer", "ESRI_XMLSerializer") With this the class will be renamed in the generated *.tlh file which solves the conflict. In your and also mine case the error is caused by esriSystem so I added the rename to the esriSystem import.
... View more
10-21-2016
03:52 AM
|
0
|
1
|
243
|
POST
|
The Weboptimizer tells me that my account does not have the access to it. What do I need to get access? Isn't a free developer account enough? Anyway as far as I unterstood, the weboptimizer just does a build with the dojo & esri stuff or I'm able to bring my source code into this bui8ldprocess?
... View more
08-23-2015
10:34 PM
|
0
|
1
|
461
|
POST
|
Hello, I'd like to know if there is a way to make a custom build of the js-api with own code based on the js-api. Esri itself doesn't provide a util folder for building the api, so I took the original util folder from the dojo-sdk. If I try to build I get the following error: js: uncaught JavaScript runtime exception: ReferenceError: "location" is not defined. According to dojo-ticketsystems and/or threads, this error occurs when one tries to perform a build on a already build dojo. So I tried to replace the compressed dojo folders with the original uncompressed dojo folders (just to check if there is a problem with my profile). Now the build would be performed. Unfortunately Esri brings custom changes at least into the dojo.js file, so this approach wouldn't help since these changes would be lost. I'd like to create a build where in the best case the build would end up with a single layerfile including all needed dojo & esri stuff + my own code. How can I get the build system work with provided framework/api from Esri and do all the fine stuff which every dojo-developer can do with the build system?
... View more
08-20-2015
11:33 PM
|
0
|
4
|
3313
|
POST
|
Hi, I'm currently working on a web-project which consumes a map service vom ArcGIS-Server. This map service generates the layer dynamically from data in a oracle-database. From this layer the application generates a MapImage. The polygons, which are drawn on the layer, can have different colors and they should get z-order based on the color. This was achieved with a definition expression using some conditions and a "order by" statement when querying the MapImage. This application originally ran with ArcGIS 10.0, got migrated to 10.1 and then got a upgrade to 10.2.2, here are the information about this progress related to the described proceedure: ArcGIS 10.0: The application used DCOM (what is deprecated now) and everything worked as expected. ArcGIS 10.1: The application was changed to use the SOAP Proxy Library and the ArcGIS Server Administrator API for the interaction with the server. Still everything worked as wished. ArcGIS 10.2.2: I had to do very little changes in the code at this version upgrade for getting this working. But the query definition is now broken. Lets say the definition query I'm sending is something like "field > 0 AND user = 'someuserid' ORDER BY color". I've debugged the whole thing and I'm very sure that the query definition as described is send with no changes via SOAP. But the oracle database is receving a query with a where clause like this "(( field > 0 AND user = "someuserid" ORDER BY color ))". At this point the database of course returns a error. Oracle expects ' ' for string values (not " ") and also order by inside of ( ) is not accepted. If I'm removing the ORDER BY part everything works fine again (except the sorting in the MapImage). It also works fine when I'm using a definition expression which has a condition on the field which should be used vor the sorting like "field > 0 AND user = 'someuserid' AND color = 'blue'" (getting only the blue polygons). First I thought this could be caused by the new standardized queries-flag, but setting this flag to false does not work for this problem. As I see it the ArcGIS-Server somehow modifies the definition expresion for somewhat reason, even if he is told not to do so with the deactivated flag. Does someone have a workaorund or solution for this problem (if anyone had this problem)?
... View more
07-15-2014
05:44 AM
|
0
|
0
|
2167
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|