POST
|
Thanks for these precisions, confirmed by our test code. It would be nice to have this documented in your API Reference/Javadoc.
... View more
12-19-2013
12:44 AM
|
0
|
0
|
503
|
POST
|
The crash on exit may be due to failing to call dispose on a JMap instance. In the latest release it is necesary to call dispose. If you look in the sample code you will see one way of doing this - disposing the JMap in the window closing event. Colin, Could you elaborate on this issue ? I'm able to generate a JVM crash on exit by commenting the map.dispose() of type EXCEPTION_UNCAUGHT_CXX_EXCEPTION I understand we have to dispose the map, but how commenting it could generate a fatal error ? fatal error should be rare... it doesn't feel right to be able to crash my JVM so easily, especially when my JMap is empty :
public class MapDisposeApp {
private JFrame window;
private JMap map;
public MapDisposeApp() {
window = new JFrame();
window.setSize(800, 600);
window.setLocationRelativeTo(null); // center on screen
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.getContentPane().setLayout(new BorderLayout(0, 0));
window.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent windowEvent) {
super.windowClosing(windowEvent);
// map.dispose();
}
});
map = new JMap();
window.getContentPane().add(map);
// ArcGISTiledMapServiceLayer tiledLayer = new ArcGISTiledMapServiceLayer(
// "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
// map.getLayers().add(tiledLayer);
}
/**
* @param args
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
try {
MapDisposeApp application = new MapDisposeApp();
application.window.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
}
Each time I run my app and close it I got : Java version : 1.7.0_40 (Oracle Corporation) x86 Rendering engine : DirectX # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x7c812fd3, pid=2132, tid=3644 # # JRE version: Java(TM) SE Runtime Environment (7.0_40-b43) (build 1.7.0_40-b43) # Java VM: Java HotSpot(TM) Client VM (24.0-b56 mixed mode windows-x86 ) # Problematic frame: # C [kernel32.dll+0x12fd3] # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # D:\my_workspace\MapDisposeApp\hs_err_pid2132.log # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # How can I justify this behavior to my teammate who are not GIS profiles ?
... View more
12-19-2013
12:40 AM
|
0
|
0
|
796
|
POST
|
I guess the Scalebar is true only for West-East center line... then depending on your current Map Spatial Reference, your can have distortion going North or South of the map... so you should calculate your horizontal line distance at the (vertical) middle of the map screen.
... View more
12-08-2013
10:40 PM
|
0
|
0
|
514
|
POST
|
There seems to be a bit of confusion here with the API Reference. This might be referring to graphic elements that come from non-editable FeatureServices. We are only refering to Graphic and GraphicsLayer, as we are drawing our own Point, Polyline and Polygon features. Are you adding your own custom graphic elements with attributes and symbols to a normal GraphicsLayer? If so, these graphic elements are mutable, and your attributes are mutable. There should not be any problems here. The way your described what you want to do sounds like it will work fine. Yes to your question. But I disagree for mutable graphic elements, as the ArcGIS Javadoc says "Graphic objects are immutable, ..." (-> please see the hyperlink on Graphic ion my first post). From our tests, when we call Graphic Constructor and passes Attributes, it seems that Object from mutable Type are automatically converted to "String" type by calling .toString(). So Attributes seems to manage only String, boolean and Numeric (Integer, Double...) types. Could ESRI confirm this point ? if Yes, the Javadoc could be improve to state the true behavior of Graphic and Attributes.
... View more
12-02-2013
03:02 AM
|
0
|
0
|
503
|
POST
|
We would like to associate some POJOs as Attributes of our Graphics with : Graphic(Geometry geometry, Symbol symbol, Map<String,Object> attributes, int drawOrder) However, our POJOs are Mutable objects with seem not to be compliant with Immutable Graphic concept (from API Ref.) : "Graphic objects are immutable..." "getAttributes() returns all attributes of the graphic as a read-only collection." So could somebody confirm to us, that using mutable objects as attributes values will not conflict with Graphic concept or behavior, as these mutable objects will be modified in parallel of their corresponding Graphic life cycle ? (we currently develop with ArcGIS Runtime for Java 10.1.1, but will soon move to 10.2)
... View more
11-25-2013
01:21 AM
|
0
|
4
|
3627
|
POST
|
Could you confirm to me that I can install SDK 10.2 on my machine (WinXP) and keep SDK 10.1.1 installed ? or do I need to uninstall 10.1.1 first ?
... View more
11-13-2013
01:11 AM
|
0
|
0
|
460
|
POST
|
Great news !! 🙂 When accessing my ESRI Global account on https://customers.esri.com/, is it normal that I don't see ArcGIS Runtime SDK 10.2 ? (only 1.0 and 10.1.1 are available). From the ArcGIS for Developers new site, in order to download the SDK, it requires another account ? could you clarify this regarding customer with an EDN ? Thanks.
... View more
11-06-2013
01:13 AM
|
0
|
0
|
460
|
POST
|
If you only need visualisation (no edit), so you could query your database, then display your features as Graphic in a GraphicsLayer ? It's pretty simple to use (see ArcGIS Runtime Java Samples)
... View more
10-23-2013
11:24 PM
|
0
|
0
|
626
|
POST
|
I am trying to use a Time-Aware Dynamic Layer with my own Map Package based on data from PostgreSQL/PostGIS local database. First I tried to re-used time-aware sample "LocalTimeAwareApp" with my own Map Package, by : - creating a File Geodatabase with import of shapefile with "start" & "stop" (datetime) fields - preparing a MXD document with configuration of the layer "Time" properties correctly : TimeSlider is working fine - sharing my map as Map Package with option "reference all data" checked, so my application will still dynamically access the data from File Geodatabase. - running the sample "LocalTimeAwareApp" application, based on my Map Package : it works ! I just needed to adapt the Time Extent of the JTimeSlider. Now, I need to do the same with PostGIS data : - I have a PostgreSQL 9.0.14 / PostGIS 2.0.3 database (I will test 9.2.5/2.0.4 soon...) - I've copied the PostgreSQL Client libraries to ArcGIS Desktop bin folder in order to connect to PostgreSQL Database. - I'm able to create a MXD document with a PostGIS spatial table (POINTS) with same "start" & "stop" (TimeStamp) fields - With same configuration than 1st test, I'm able to play with the TimeSlider - I also share the map as Map Package with "reference all data" checked" - My Issue, when testing the TimeAware application with this Map Package : => nothing is displayed on the map... and nothing happened when using the JTimeSlider... ! Has anyone tried to display PostGIS data with ArcGIS Runtime for Java ? Has anyone tried to perform Time Aware display with Map Package with "reference all data" option ?
... View more
10-21-2013
07:52 AM
|
0
|
1
|
2867
|
POST
|
... However, the results from the REST API query do not have the geometries (features) included. I tried to set "returnGeometry" as "true", nameValuePairs.add(new BasicNameValuePair("returnGeometry", "true")); but still not working. I used StringBuilder to get the content from the BufferedReader rd StringBuilder builder = new StringBuilder(); for (String line = null; (line = rd.readLine()) != null;) { builder.append(line).append("\n"); } The builder output has all the spatial reference information and fields, but no features. Can anyone let me know how to set the parameters correctly in this case? This previous issue should provide you the answer : Thread: How to get Geometry Type for a Shapefile loaded as ArcGISDynamicMapServiceLayer ?
... View more
10-14-2013
12:05 AM
|
0
|
0
|
460
|
POST
|
I've done a Utility Class with a function to reproject on the fly... so in case I need to reproject a Geometry (Point, Polyline, ...) from WGS 84 to the map's Spatial Reference, I'm using GeometryEngine ! Here is one solution : private static final SpatialReference SPATIAL_REF_WGS84 = SpatialReference.create(4326); ... public static Geometry projectGeometryWGS84ToMap(Geometry geometryWGS84, SpatialReference spatialRefMap) throws ReprojectException { Geometry result; try { if (spatialRefMap != null && SPATIAL_REF_WGS84.getID() != spatialRefMap.getID()) { // reproject here result = GeometryEngine.project(geometryWGS84, SPATIAL_REF_WGS84, spatialRefMap); } else { // map is already in WGS 84 result = geometryWGS84; } } catch (ArrayIndexOutOfBoundsException e) { // In case of Polygon, I face this kind of Exception sometimes... but don't know why throw new ReprojectException ... } return result; } You can obtain your map Spatial Reference by jMap.getSpatialReference()
... View more
10-02-2013
11:47 PM
|
0
|
0
|
580
|
POST
|
In the "ArcGIS Runtime SDK for Java Samples" (v10.1.1), you can have a look at the following sample : - Mapping > Printing > Printing (Online) Maybe it will bring you clear answers...
... View more
09-29-2013
11:59 PM
|
0
|
0
|
892
|
POST
|
Are you sure you don't have a map services / wms access issue ? Have you tried to replace basemap url of esri samples by your own Tile/Map Package ? Usually, in createMap() you just need to replace ArcGISTiledMapServiceLayer by ArcGISLocalTiledLayer pointing on a local file url (..\ArcGIS SDKs\java10.1.1\sdk\samples\data\..) I know in my case, even if I can access all ArcGIS website, I can't use samples because of proxy constraints from my company security policies, so I replace all samples to load my own TPK basemap or use a local GeoServer to test WMS. Jeremie
... View more
09-19-2013
05:52 AM
|
0
|
0
|
212
|
POST
|
Did somebody test Graphic Tracker with last ArcObjects version 10.2 ? is memory leak issue still there ?
... View more
09-19-2013
01:25 AM
|
0
|
0
|
222
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|