|
POST
|
Hi Your question looks like it relates to ArcObjects (ArcGIS Engine?) and not the Runtime SDK for Java SE which is a new product from ESRI which has been written from the ground up and contains no ArcObjects... Sprry your post keeps on needing to be moved, but I'll forward it to the ArcObjects forum and you will get a better answer. Good luck Mark
... View more
03-31-2013
07:32 AM
|
0
|
0
|
305
|
|
POST
|
Yes I have seen the flickering you are experiencing. The solution however is quite simple, before putting the JMap in the SWT bridge put it in a JPanel and your flicker will go away. Check out the following code sample which should get you displaying a flicker free map:
import org.eclipse.swt.widgets.Text;
import com.esri.client.toolkit.overlays.DrawingOverlay;
import com.esri.client.toolkit.overlays.DrawingOverlay.DrawingMode;
import com.esri.core.symbol.SimpleFillSymbol;
import com.esri.core.symbol.SimpleLineSymbol;
import com.esri.map.ArcGISTiledMapServiceLayer;
import com.esri.map.JMap;
import com.esri.runtime.ArcGISRuntime;
import com.esri.runtime.ArcGISRuntime.RenderEngine;
public class SWTJMapTest {
public static void main(String[] args) throws InvocationTargetException, InterruptedException {
ArcGISRuntime.setRenderEngine(RenderEngine.OpenGL);
final Display display = new Display();
Shell shell = new Shell(display);
Composite comp = new Composite(shell, SWT.EMBEDDED | SWT.NO_BACKGROUND);
comp.setBounds(5, 5, 500, 500);
final java.awt.Frame frame = SWT_AWT.new_Frame(comp);
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
JMap map = new JMap();
ArcGISTiledMapServiceLayer tiledLayer = new ArcGISTiledMapServiceLayer(
"http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer");
map.getLayers().add(tiledLayer);
DrawingOverlay drawing = new DrawingOverlay();
drawing.setUp(DrawingMode.POLYLINE_RECTANGLE, new SimpleLineSymbol(Color.red, 2.0f), null);
map.addMapOverlay(drawing);
JPanel panel = new JPanel();
panel.setLayout(new BorderLayout());
panel.add(map, BorderLayout.CENTER);
frame.add(panel); // no flicker
//frame.add(map); // flickers
}
});
shell.pack();
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
}
Let me know if this helps Mark
... View more
03-22-2013
09:29 AM
|
0
|
0
|
581
|
|
POST
|
HI Carlos, I'm afraid I'm not a model builder expert, but one of my colleages pointed this out which looks promising: http://www.arcgis.com/home/item.html?id=cede8ab5c0514f41a2cc69bedff67f48 If you download the tool, you can open in up in model builder and see how it works. I belive it's doing what you are after. Reducing the area of the DTED which you use in a viewshed is really important as as you correctly point out, you can end up generating a monster geoprocessing task that takes a long time to process. Remember when you are executing geoprocessing tools you should use the gp.executeAsync(parameters, callback). This way your application will not hang whilst you are awaiting a result from the geoprocessor. Hope this helps Mark
... View more
03-15-2013
05:06 AM
|
0
|
0
|
1221
|
|
POST
|
However if you are feeling like a challenge, the you could check out this: http://www.esri.com/news/releases/11-2qtr/esri-file-geodatabase-api-is-now-available.html You could write your methods in C++ using the geodatabase API and expose it to your Java App using JNI... Mark
... View more
03-14-2013
01:06 PM
|
0
|
0
|
786
|
|
POST
|
Hi Carlos, Sorry I'm slacking in my forum duties at the moment, but I promise I'll look at this tomorrow. Are you looking for instructions on how to generate this a viewshed with radious setting in ArcMap using model builder? Do you want instructions on how to generate the geoprocessing package too and then consume it in a runtime app? Mark
... View more
03-14-2013
12:59 PM
|
0
|
0
|
1221
|
|
POST
|
Good morning and welcome to the ESRI forums! I'm wondering if your question is in the right product forum? This forum is for ArcGIS Runtime Applications. If you let me know what product you need help with I'll link your post so you will get a better answer. Thanks Mark
... View more
03-14-2013
03:46 AM
|
0
|
0
|
314
|
|
POST
|
The API doesn't contain methods to query the contents of a file-geodatabase. The workflow we intended for use in all Runtime APIs for disconnected use is centred around the use of "packages" which you can generate from ArcMap... however I'm always been asked about the ArcGIS Engine way of adding layers to a runtime application. The code you have shown makes it possible to add these layers, but I'll be the first to admit this isn't particularly easy and has it's limitations (like not being able to list feature classes in a geo-database). As I've said before I'm always intersted to hear about how developers use the API and if there are improvements we can make. Mark
... View more
03-14-2013
03:42 AM
|
0
|
0
|
786
|
|
POST
|
The KML Layer is designed to work from a http source, so unless you can serve it via a local web server (like apache) then you don't be able to read KML from a local file. This is noted in the Java Doc. However, I've noted this as a limitation which could be improved in a futre release Mark
... View more
03-14-2013
03:26 AM
|
0
|
1
|
815
|
|
POST
|
Hi Edward, I'm wondering if your question is placed in the correct forum? What product are you using? I'm thinking you might be using the Web ADF for Java product. Let me know and I'll forward your post to a place where you'll get a better answer. Thanks Mark
... View more
03-08-2013
01:33 AM
|
0
|
0
|
560
|
|
POST
|
At the moment the Java SE API doesn't support S57 data, but we are considering this for the next release. It has however been included in the WPF api 10.1.1 release, as there was a lot of hydrographic interest. Sounds like you are working on some interesting things. I'd be interested to hear of any other features that would make the product better. Mark
... View more
02-25-2013
01:21 PM
|
0
|
0
|
844
|
|
POST
|
Been thinking some more about this to see if there is a workaround in the short term. You could consider: - If your application has online access, then you could use an ArcGIS Server (or online) geometry service. There is a Rest spec for this if you are interested. - You could write a geodescic densify function yourself if you are good at geometry maths. - Lastly (I was talking to a friend in the WPF Runtime team), I'm afraid to say that the WPF Runtime API already has this functionality. Mostly the runtime APIs are quite closely aligned in terms of functionality, but they can do it now: http://resources.arcgis.com/en/help/runtime-wpf/samples/index.html#/Geodesic/02q20000009v000000/ Hope that helps Mark
... View more
02-14-2013
02:38 AM
|
0
|
0
|
1048
|
|
POST
|
Hi Jeremie, At the moment the Runtime API does not have the ability to create geodesic geometries, but this is something we are considering for the next release due layer this year. This may include items like: creating geodesic lines, polygons and elipses and also the ability to calculate geodesic buffers and offsets. We are always looking to improve the API so please let me know if you have any other requirements which we can consider. Regards Mark
... View more
02-14-2013
01:55 AM
|
0
|
0
|
1048
|
|
POST
|
Hi Peter, I'm looking at your code and thinking this looks like ArcObects to me. ICadDrawingDatasetProxy isn't part of the ArcGIS Runtime for Java SE product. The Java SE Runtime SDK for Java is a new product from ESRI which isn't based on ArcObjects as we've written it from the ground (no COM!) I've moved your post so it appears in the ArcObjects forum so you get a better chance of getting a good answer. Good luck Mark
... View more
02-14-2013
01:39 AM
|
0
|
0
|
610
|
|
POST
|
There have been a few posts recently about grouping of graphics together to make a single graphic... In response to this, one thing we are considering at the moment is creating a composite symbol. This would allow you go make a symbol up from a collection of other symbols. In terms of animation, I'd assumed you were just wanting to update the location of your graphic (s) according to a real-time location of a thing (a ship?). Mark
... View more
02-13-2013
01:01 AM
|
0
|
0
|
456
|
|
POST
|
It's always good to hear how developers are using the API - this helps is to make the product better! The forum requests have resulted in a few items of functionality recently, so keep the ideas coming. We can't do everything though... Going back to the use of the graphics layer in the message group layer... my initial thoughts here were that you should avoid doing this, but then I thought about the issue of the draw order of the graphics. I've checked this out and the feeling is that using one of the existing graphics layers in the message group layer is okay. However (I'm sure you were expecting this!!!), I wouldn't try manipulating the 2525C graphics (removing for example), and don't try removing graphics layers from the message group layer (the latest version of the API does a reasonable job preventing you from doing this). Hope that helps. Mark
... View more
02-11-2013
05:36 AM
|
0
|
0
|
4236
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-13-2024 05:17 AM | |
| 1 | 07-10-2024 01:50 AM | |
| 1 | 04-22-2024 01:21 AM | |
| 1 | 04-18-2024 01:41 AM | |
| 1 | 12-05-2023 08:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-12-2025
07:13 PM
|