|
POST
|
Glad you worked it out. The key to it working on a Windows based VM is to make sure that you have DirectX 11 support. I too have seen 3D acceleration support break the DX11 support and hence it stops working. Mark
... View more
04-15-2014
11:36 AM
|
0
|
0
|
1090
|
|
POST
|
Okay, I'll flag this up with someone from the symbol dictionary team. Mark
... View more
03-30-2014
07:11 AM
|
0
|
0
|
2404
|
|
POST
|
What your error message shows is that the local server is reprojecting your image from a different spatial reference when you open the tiled layer first. A tiled layer will not reproject hence the error. Anyway it's worth starting by saying that your workflow of opening up the raster image on it's own is supported and I can get it to work against 10.2 so we just need to look at what is happening. In your LayerInitializedCompleteListener, what is the spatial reference of your map? My map is coming out as 4326 so my set Extent method is working fine. I'm however wondering if your blank mpk has been changed so the SR is WGS84. In which case you need to be setting the extent of your map using WGS84 coordinates (lat/long) Let me know how you get on. Mark
... View more
03-28-2014
08:37 AM
|
0
|
0
|
1376
|
|
POST
|
Carlos, As you know this symbology is not my subject, but I've tried to render this using the following code: Message message = new Message(); uuid1 = UUID.randomUUID(); message.setID(uuid1.toString()); message.setProperty("_Type", "position_report"); message.setProperty("_Action", "update"); message.setProperty("_WKID", "3857"); message.setProperty("sic", "GFGCDLF--------"); message.setProperty("_Control_Points", "-235647.46821,6677200.72612;-233742.27267,6678479.21259;-232112.82912,6679055.78493;-229881.74487,6680259.06632;-227324.77192,6681111.39064;-223790.13283,6682565.35566"); mgl.getMessageProcessor().processMessage(message); This is what happens with the latest version in development: [ATTACH=CONFIG]32598[/ATTACH] I'm guessing this is wrong, but is this because of my control points? If you post be a decent message I'll try it out with the latest symbol dictionary. If it is still wrong I'll talk to someone in the Military Team. Mark
... View more
03-28-2014
07:38 AM
|
0
|
0
|
2404
|
|
POST
|
When you run your executable jar is will be looking for an runtime deployment. It will expect to find this in a ArcGISRuntime10.x. directory which is in the same place as the jar file. Failing that it will use the environment variable to seek out the install location (this is usally what happens on the development platform). If it can't find either then it gives up and throws an error. This what you are seeing. There is an application in the SDK which helps you to create deployments. Does this help? Mark
... View more
03-28-2014
07:21 AM
|
0
|
0
|
1169
|
|
POST
|
It's possible that the map is not viewing the area of your raster. Using the data in the sample can you see the it if you do the following after adding the layer? map.setExtent(new Envelope(-19856505, -8827900, 18574809, 16806021)); Mark
... View more
03-27-2014
08:39 AM
|
0
|
0
|
1376
|
|
POST
|
Okay - moving to the Javascript forum... Good luck Mark
... View more
03-27-2014
07:54 AM
|
0
|
0
|
973
|
|
POST
|
I'm afraid I'm still unclear what product you are using. Is this the JavaScript API or ArcObjects based Java? Thanks Mark
... View more
03-27-2014
02:59 AM
|
0
|
0
|
973
|
|
POST
|
Hi Stephen, I'm keen to understand a little more about what you are trying to achieve, but before we do that let's just make sure your post is in the correct forum. If you are using the ArcGIS Runtime for Java (native applications for Windows / Linux) this is the right place, however the title of the post says Web-UI, so maybe I need to move you post to be better place. If you answer the questions below we'll be able to help you: 1. What product / platform are you using? 2. Can you explain a little more about the workflow you are trying to implement? Thanks Mark
... View more
03-26-2014
05:05 AM
|
0
|
0
|
973
|
|
POST
|
Really! I'm usually very good at breaking things, but in this case I can't. Would you be able to get me the data and reproducer via your esri contact whose name begins with V? Failing that could you make a reproducer using the sample data that comes with the API? I'm thinking that the sample that dynamically adds usa_raster.tif would be a good starting point. Does that make sence?
... View more
03-21-2014
06:24 AM
|
0
|
0
|
3916
|
|
POST
|
I altered my code anyway as it only took a couple of minutes and demonstrates how we can use the "difference" tool to build on what we were looking at. It's created as follows: 1. Draw the buffer (red), 2. then define another polygon to intersect the arc segment (green) 3. call the intersect operation which results in your arc (yellow) which I changed to be a polygon in this example 4. define another inner buffer (blue) 5. perform a difference on the yellow arc and the inner buffer 6. final polygon in cyan [ATTACH=CONFIG]32391[/ATTACH] //centre of arc where we clicked the map Point centrePt = map.toMapPoint(event.getX(), event.getY()); //buffer to get circle as a polygon Polygon circle = GeometryEngine.buffer(centrePt, map.getSpatialReference(), 5000000, null); //create a line of the circle //Polyline circleLine = new Polyline(); //circleLine.addPath(circle, 0, false); //draw the circle SimpleLineSymbol redLine = new SimpleLineSymbol(Color.RED, 2); Graphic circleGraphic = new Graphic(circle, redLine); graphicsLayer.addGraphic(circleGraphic); //create intersection geometry Polygon intersection = new Polygon(); intersection.startPath(centrePt); intersection.lineTo(centrePt.getX(), centrePt.getY() + 10000000); intersection.lineTo(centrePt.getX() + 10000000, centrePt.getY()); //draw intersection geometry SimpleLineSymbol greenLine = new SimpleLineSymbol(Color.GREEN, 2); Graphic intersectGraphic = new Graphic(intersection, greenLine); graphicsLayer.addGraphic(intersectGraphic); //now we can perform an intersection operation to create the arc Polygon arc = (Polygon) GeometryEngine.intersect(circle, intersection, map.getSpatialReference()); //draw the arc SimpleLineSymbol yellowLine = new SimpleLineSymbol(Color.YELLOW, 5); Graphic arcGraphic = new Graphic(arc, yellowLine); graphicsLayer.addGraphic(arcGraphic); //create another smaller buffer Polygon innerCircle = GeometryEngine.buffer(centrePt, map.getSpatialReference(), 3000000, null); //and draw it SimpleLineSymbol blueSymbol = new SimpleLineSymbol(Color.BLUE, 2); Graphic innerCircleGraphic = new Graphic(innerCircle, blueSymbol); graphicsLayer.addGraphic(innerCircleGraphic); //use the difference tool to clip out the inner circle Polygon wideArcPoly = (Polygon) GeometryEngine.difference(arc, innerCircle, map.getSpatialReference()); //and draw it with a fill symbol SimpleFillSymbol fillSymbol = new SimpleFillSymbol(Color.cyan); Graphic widArcGraphic = new Graphic(wideArcPoly,fillSymbol); graphicsLayer.addGraphic(widArcGraphic);
... View more
03-21-2014
05:43 AM
|
0
|
0
|
2528
|
|
POST
|
It would help if you posted a picture of what you are trying to create... Is it something like this? [ATTACH=CONFIG]32369[/ATTACH] Mark
... View more
03-20-2014
01:20 PM
|
0
|
0
|
2528
|
|
POST
|
Yes that's right we're aiming to support more data types without using Local Server. It will make the code to consume these much easier to write. This however is for after 10.2.2. So specific anwers: 1. Yes the geodatabase does have rendering info. We are not altering the shapefile format, so this will not contain rendering info. 2. Geodatabases will be supported in ArcMap 3. Export Image isn't planned, but it's something I can think about. 4. There are more new geoprocessing tools than these 2 being added at 10.2.2. Exact details will follow, but I thought I'd mention these ones as they are of interest to this thread. The best thing to do it tell us what is missing and we can consider getting them added. Mark
... View more
03-20-2014
07:12 AM
|
0
|
0
|
3992
|
|
POST
|
Also we are considering the following GP tools at 10.2.2: �?� Data Management > Raster > Mosaic Dataset > Create Mosaic Dataset �?� Data Management > Raster > Mosaic Dataset > Add Rasters To Mosaic Dataset Mark
... View more
03-20-2014
04:19 AM
|
0
|
0
|
3992
|
|
POST
|
Take a look at the sample application as it has geometry operations under the Geometry section to get an idea of the capabilities. The answer to your question is to use an intersect. [ATTACH=CONFIG]32353[/ATTACH] So draw your circle using the buffer (red), then define another polygon to intersect the arc segment (green) and call the intersect operation which results in your arc (yellow) I've done a quick example below. The code is a bit shoddy, but you should get the idea: private void drawArc(MouseEvent event) { //centre of arc where we clicked the map Point centrePt = map.toMapPoint(event.getX(), event.getY()); //buffer to get circle as a polygon Polygon circle = GeometryEngine.buffer(centrePt, map.getSpatialReference(), 5000000, null); //create a line of the circle Polyline circleLine = new Polyline(); circleLine.addPath(circle, 0, false); //draw the circle SimpleLineSymbol redLine = new SimpleLineSymbol(Color.RED, 2); Graphic circleGraphic = new Graphic(circleLine, redLine); graphicsLayer.addGraphic(circleGraphic); //create intersection geometry Polygon intersection = new Polygon(); intersection.startPath(centrePt); intersection.lineTo(centrePt.getX(), centrePt.getY() + 10000000); intersection.lineTo(centrePt.getX() + 10000000, centrePt.getY()); //draw intersection geometry SimpleLineSymbol greenLine = new SimpleLineSymbol(Color.GREEN, 2); Graphic intersectGraphic = new Graphic(intersection, greenLine); graphicsLayer.addGraphic(intersectGraphic); //now we can perform an intersection operation to create the arc Polyline arc = (Polyline) GeometryEngine.intersect(circleLine, intersection, map.getSpatialReference()); //draw the arc SimpleLineSymbol yellowLine = new SimpleLineSymbol(Color.YELLOW, 5); Graphic arcGraphic = new Graphic(arc, yellowLine); graphicsLayer.addGraphic(arcGraphic); }
... View more
03-20-2014
03:33 AM
|
0
|
0
|
2528
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 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 |
a week ago
|