|
POST
|
In answer to the original question, which was about using the API to create lyr files, I'm afraid there isn't a way of doing this. However in the future we will be expanding the use of the new geodatabase format which we are currently using for the offline capabilties. The geodatabase not only contains data, but also rendering information too. Use of the geodatabase will be directly from the Runtime API (not using Local Server). This is good as it means that all Runtime APIs will support the format. So in the future you will be able to author data AND rendering and be able to share this back to other applications in one file. This will however not be in the next release (10.2.2). It is always good to hear how developers are using the applications so we can make sure that we've got the right functionality available (or at least planning it). In answer to Carlos: After 10.2.2 we will be directly supporting more raster formats without using local server. I can't share the exact details of this yet, but we are listening to your requirements 🙂 Mark
... View more
03-19-2014
09:57 AM
|
0
|
0
|
3977
|
|
POST
|
The sample application shows you how you can create a composite symbol made up from a few different things. Open the sample application and select Graphics Layers -> add graphics. Does this answer your question? Mark
... View more
03-13-2014
07:07 AM
|
0
|
0
|
3005
|
|
POST
|
You can author data and its symbology in ArcMap and publish it for use in a runtime application. The new way of doing this is via a geodatabase file although the classes to read geodatabases are currently in Beta at 10.2. However there is a release coming out very soon where these classes will be final. Another way of achieving what you are after is to use the Local Server with an mpk file which can also be exported from ArcMap. If you wait a few weeks then I'd recommend using the geodatabase route. Geodatabases can also be exported from ArcGIS Server Feature Services which enable you to edit data offline and then sync when you are back in network coverage. The other advantage of geodatabase files is that they are supported by all runtime SDKs unlike the Local Server which is only on Java, Qt and WPF. Does this help? Mark
... View more
03-13-2014
06:24 AM
|
0
|
0
|
3977
|
|
POST
|
Hi Asha, Just trying to understand what you are wanting to achieve. Are you wanting to add a map / GIS functionality into a web page? If this is the case then I'd recommend looking at the JavaScript API. https://developers.arcgis.com/javascript/ Let me know if this helps. Mark
... View more
03-13-2014
04:39 AM
|
0
|
0
|
506
|
|
POST
|
Carlos, Would it help if there was something like a LayerListEventListener which works on the MessageGroupLayer? This would fire as the graphics layers get added to the group layer. It's certainly something I'd consider but it might not make it for the 10.2.2 release which will be out in a few weeks. Mark
... View more
03-13-2014
04:32 AM
|
1
|
0
|
1083
|
|
POST
|
Carlos, I've not managed to reproduce this. Can you get me a reproducer application? Mark
... View more
03-12-2014
10:20 AM
|
0
|
0
|
3876
|
|
POST
|
I suspect you are writing ArcObjects code and not Runtime code. They are very different things. There is a forum for ArcObjects where you will get better answers. http://forums.arcgis.com/forums/20-ArcObjects-SDKs The Runtime SDK for Java which is what we are enthusiatic about in this forum isn't ArcObjects based. We've written it from scratch and it's really the replacement for ArcGIS Engine development. If you'd like more information on the Runtime SDK for Java we're always happy to help and I'd encourage any new projects to be developed in this instead of ArcObjects. Good luck Mark PS I can move your post to the ArcObjects forum is you want.
... View more
02-21-2014
01:53 AM
|
0
|
0
|
1027
|
|
POST
|
Carlos, The MessageGroupLayer does contain graphics layers which are created on demand when they are first needed. The MessageGroupLayer is not designed for you to add your own graphics layers and it maintains its own resources. I don't believe we have exposed API for you to do this. You can of course see the layers in the MessageGroupLayer by using the getLayers function. Maybe you can tell me what you are trying to do? Mark
... View more
02-21-2014
01:46 AM
|
0
|
0
|
1083
|
|
POST
|
Carlos, I've been trying to reproduce this, but I've had no luck. I've tried against the 10.2 release and also on the development code. Now I can't replicate your enviroment exactly, but this is what I've done: 1. Set up a MessageGroupLayer on a map 2. Set up a Swing timer which after an initial 10 seconds starts adding random items to the map I've tried running it with the application minimised and maximised and I can always see all of the points without needing to ask for a refesh by panning the map. It's very important to note that I'm trying this with a Swing timer as I know my ProcessMessage will be called on the Event Dispatch Thread. I'm sure you realise this though 😉 This is my code: public void swingTimer() { Timer tm = new Timer(1000, new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { System.out.println("Tick!"); Random rnd = new Random(); //point Double xPos = (double) rnd.nextInt(10000000); Double yPos = (double) rnd.nextInt(10000000); Point pt = new Point(xPos, yPos); SimpleMarkerSymbol sms = new SimpleMarkerSymbol(Color.red, 10, Style.CIRCLE); Graphic gr = new Graphic(pt, sms); gl.addGraphic(gr); //mil symbol Message message = new Message(); UUID uuid1 = UUID.randomUUID(); message.setID(uuid1.toString()); message.setProperty("_Type", "position_report"); message.setProperty("_Action", "update"); message.setProperty("_Control_Points", xPos + ","+ yPos); //message.setProperty("sic", "SFGPUCRRL--E---"); message.setProperty("sic", "GHSPPT--------X"); message.setProperty("_WKID", "3857"); message.setProperty("UniqueDesignation", "Mad dog"); mgl.getMessageProcessor().processMessage(message); } }); tm.setInitialDelay(10000); tm.start(); } Can you post some code which reproduces your issue?
... View more
02-21-2014
01:26 AM
|
0
|
0
|
929
|
|
POST
|
Okay so lets dig into the wMeters layer as a example. Try to consider: - What is the layer data source? - I'm assuming it's likely to be a file geodatabase or shape file - Can you access the path which is referenced in the MPK? As you say this sounds like a permissions or firewall issue which always makes life interesting 🙂 Mark
... View more
01-14-2014
05:53 AM
|
0
|
0
|
1963
|
|
POST
|
Hi Ibrahim, Sorry I've not been on the forum for a few days. Great to hear you have partially solved the issue. Now the fact that you only see a few of layers on one machine, but all of them on another suggests we should be taking a closer look at your MPK... One idea might be when you create your package in ArcMap are you unchecking the option for "Include enterprise data instead of referencing data"? So if your MPK contains reference data are you able to get to it? If it's a file path can you read it from your other machine? If it's an SDE direct connect link to Oracle for axample, do you have the Oracle client setup? Also when you create the MPK does your Analyse button give you any clues about potential issues? Mark
... View more
01-14-2014
02:20 AM
|
0
|
0
|
1963
|
|
POST
|
Ibrahim, I'm wondering if you have deployed all the files you need for the local server which is what you need for your MPK files. The fact that your TPK suggests this as a tile package doesn't use the local server. If you have an application which uses the local server I would expect to see the following directories under the arcgisruntime10.2 folder: - client32 - client64 - LocalSever32 (files for the local server if you are 32bit) - LocalServer64 (files for the local server if you are 64bit) - resources Are you familiar with the deployment tool? This helps you build a deployment based on the functionalily you have added to your application. The LocalServer directories contain quite a lot of files which might not all be needed. You can copy them all (this is very easy, but your deployment might be a bit bigger than needed. Note that my answer is assuming you are using Windows; but the story is very similar for Linux. Let me know how you get on. Mark
... View more
01-08-2014
12:42 AM
|
0
|
0
|
1963
|
|
POST
|
The fix is needed on the scalebar overlay. In the existing method calcMapResolutionInMetres(), add the following 2 lines for map with linear units. // FIX for Scalebar issue with linear Spatial References // This is then multiplied by the cosine of latitude to get a more accurate number // of metres per degree. getExtentCentre(map); _resolutionInMetres *= Math.cos(getExtentCentreLatitude(map.getSpatialReference())); /** * Convert the current map resolution to a resolution in metres per pixel. * This is used when calculating the scalebar sizes. * * @param map * Convert the current resolution of this map. */ private void calcMapResolutionInMetres(JMap map) { _resolutionInMetres = map.getResolution(); if (_mapUnits.getUnitType() != UnitType.LINEAR) { // We have angular units and want to convert to metres. We do // this by taking our resolution per pixel in degrees and // multiplying it by the number of metres in a degree at the // equator (111200). This is then multiplied by the cosine of // our latitude to get a more accurate number of metres per // degree. We can then use this number to convert our degrees // per pixel to a metres per pixel value. getExtentCentre(map); _resolutionInMetres = Unit.convertUnits(_resolutionInMetres, _mapUnits, Unit.create(AngularUnit.Code.DEGREE)) * 111200 * Math.cos(getExtentCentreLatitude(map .getSpatialReference())); } else { // we have linear units so this is a simple conversion. LinearUnit linearUnit = (LinearUnit) _mapUnits; _resolutionInMetres = linearUnit .convertToMeters(_resolutionInMetres); // FIX for Scalebar issue with linear Spatial References // This is then multiplied by the cosine of latitude to get a more accurate number // of metres per degree. getExtentCentre(map); _resolutionInMetres *= Math.cos(getExtentCentreLatitude(map.getSpatialReference())); } } Let me know if this works better. Mark
... View more
01-07-2014
08:26 AM
|
0
|
0
|
1512
|
|
POST
|
The limitation that you pointed out about the symbol scale only changed by hacking a file has been addressed at 10.2 See the item in the release notes: https://developers.arcgis.com/en/java/info/release-notes.htm#ESRI_SECTION1_2EB05CD8B9D9499CA632771950460F54 - The MessageGroupLayer class has new functionality to set the symbol scaling, as well as minimum and maximum scales for symbol visibility. The error message you are seeing is caused by some bad content in the symbol dictionary file. The error message gives you a clue that we use JSON encoding internally :-). I have asked for this to be fixed, but can't promise it will be in the next release. Regarding your approach to displaying the symbology, I don't see that you will experience issues if you are not going to display many items. The main issue is with adding functionality and application scaling in the future. Mark
... View more
01-03-2014
07:36 AM
|
0
|
0
|
1329
|
|
POST
|
I want to report back on this issue. We have investigated what is happening on the scale bar and have found that when using the web mercator projection there is an inaccuracy as suggested. This has now been fixed and will be available in the next release. However as this is a toolkit component and we make the code available anyway I'm quite happy to make the fix available if anyone is interested. For information, the next release is likely to be available before the Palm Springs Developer Summit.
... View more
01-03-2014
12:27 AM
|
0
|
0
|
1512
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 2 | 2 weeks ago | |
| 1 | 08-13-2024 05:17 AM | |
| 1 | 07-10-2024 01:50 AM | |
| 1 | 04-22-2024 01:21 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|