POST
|
Hi, I was wondering if it is possible to link a TimeSlider to your system time? I have a service that recreates a view of data with a 24hr lag and would like an application that would show an event happening at time 'x' when the application is loaded at time 'x' (obviously I can;t match on dates too, given the service is built on data a day behind real-time). Is this something that would need to be done using Tracking (or GeoEvent Processor in 10.2)? Thanks, Karl
... View more
08-23-2013
01:41 AM
|
0
|
0
|
278
|
POST
|
Following this on - many thanks to ESRI support here. The following code can fix this: var datumTransform: DatumTransform = new DatumTransform(); datumTransform.wkid = 1314; datumTransform.wkt = "OSGB_1936_To_WGS_1984_Petroleum"; projectParameters.datumTransform = datumTransform; projectParameters.transformForward = false;
... View more
05-14-2013
12:46 AM
|
0
|
0
|
162
|
POST
|
Following this on - many thanks to ESRI support here. The following code can fix this: var datumTransform: DatumTransform = new DatumTransform(); datumTransform.wkid = 1314; datumTransform.wkt = "OSGB_1936_To_WGS_1984_Petroleum"; projectParameters.datumTransform = datumTransform; projectParameters.transformForward = false;
... View more
05-14-2013
12:44 AM
|
0
|
0
|
114
|
POST
|
Hi Robert, Thanks for providing guidance with this issue - I'm still fairly new to Flex, so am still a little unclear on utilising and implementing your buffering snippet. My address search is based on the code from the ESRI Flex Samples (http://resources.arcgis.com/en/help/flex-api/samples/index.html#/Geocode_an_address/01nq00000068000000/). Are you able / willing to offer a sample of some mxml that defines the various properties (eg. configBufferUnits, cboBufferUnit etc)? Appreciate any help you can offer here, and apologies for missing anything obvious! Thanks, Karl
... View more
05-14-2013
12:42 AM
|
0
|
0
|
184
|
POST
|
Hi, I have a table of values associated with geographic positions. What I'm trying to do is use the result of an address search as the centre point of a few buffers (50 metres, 100 metres and 250 metres) and sum up the values of the geographic positions that fall within the respective buffers. I am scripting this in Flex. Any help here is greatly appreciated. (I'm using FlexAPI 3.2 & ArcGIS 10.1) Thanks, Karl
... View more
05-13-2013
01:11 AM
|
0
|
3
|
578
|
POST
|
Hi, I'm trying to get rows in a table populated with values defined by an end-user. The user will have three boxes to enter two double fields and a yes/no or string field and then I want these values to be parsed to a table. I've been trying to create a solution in ModelBuilder (the end goal being a published geoprocessing tool I can consume via ArcGIS Server), with Value Variables but I've not been having much success. I have looked through various forum articles and ESRI help files, but would appreciate any further assistance (as many of the solutions I've seen have been for selecting values from pre-existing tables, which is not the case in my scenario). Thanks, Karl (I'm using ArcGIS 10.1 on a Windows 32-bit machine)
... View more
04-29-2013
07:43 AM
|
0
|
0
|
682
|
POST
|
Hi, I'm trying to get a graphic to render once a result has been selected from the new geocoder functionality in the latest Flex API. When the result is selected, the map pans to it's location - I would like to have a point shown where this is? Any help scripting this would be appreciated. Thanks, Karl
... View more
04-15-2013
02:50 AM
|
0
|
2
|
545
|
POST
|
Hi, I'm wondering whether anyone can help me apply a data transformation on some co-ordinates? The input co-ordinate will be in BNG (WKID 27700) but I need to plot it on a service using tiled map services in Web-Mercator (WKID 102100). I use the following transformation in ArcGIS Desktop: OSGB_1936_To_WGS_1984_Petroleum - I understand that datum transformations are possible using the 10.1 Geometry service? I code my applications in Flex, so if anyone can offer some advice or guidance here, it would be appreciated. Thanks, Karl
... View more
03-15-2013
06:42 AM
|
0
|
2
|
576
|
POST
|
Hi, I wondering whether anyone can help me apply a data transformation on some co-ordinates? The input co-ordinate will be in BNG (WKID 27700) but I need to plot it on a service using tiled map services in Web-Mercator (WKID 102100). I use the following transformation in ArcGIS Desktop: OSGB_1936_To_WGS_1984_Petroleum - I understand that datum transformations are possible using the 10.1 Geometry service? I code my applications in Flex, so if anyone can offer some advice or guidance here, it would be appreciated. Thanks, Karl
... View more
03-14-2013
02:17 AM
|
0
|
1
|
596
|
POST
|
I was wondering if anyone has had any further thoughts on this issue? Thanks, Karl
... View more
01-21-2013
06:47 AM
|
0
|
0
|
87
|
POST
|
Thanks for you help guys - great solution for plotting a co-ordinate over BNG services! I am curious as to whether I can enter a x,y derived from a map in BNG (27700) and then have it re-projected into the Web-Mercator (102100). A lot of the ESRI inc basemap services use this for their tiled map services and it may be useful to know if this is possible? I tried the offered code over an ESRI WTMS in 102100, and it does seem to reproject the point but about 100m away from the correct position (which looks like a BNG to WGS84 (4326) reprojection)? Thanks, Karl
... View more
01-04-2013
01:33 AM
|
0
|
0
|
379
|
POST
|
Hi, I'm trying to make a way of being able to enter BNG (wkid:27700) co-ordinates and have a point rendered on a graphics layer? I have found the following bit of code which works for WGS84 (wkid:4326), but I'm having a few problems getting it adapted to work with BNG co-ordinates?: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags"> <fx:Script> <![CDATA[ import com.esri.ags.Graphic; import com.esri.ags.SpatialReference; import com.esri.ags.geometry.MapPoint; import com.esri.ags.layers.GraphicsLayer; import com.esri.ags.utils.WebMercatorUtil; protected function btnSubmit_clickHandler(event:MouseEvent):void { var gLayer:GraphicsLayer = new GraphicsLayer(); myMap.addLayer(gLayer); if (lat.text!="" && lon.text != ""){ var latitude:Number = Number(lat.text); var longitude:Number = Number(lon.text); var graPoint:MapPoint = new MapPoint(longitude,latitude,new SpatialReference(4326)); var wmPoint:MapPoint = WebMercatorUtil.geographicToWebMercator(graPoint) as MapPoint; var gra:Graphic = new Graphic(wmPoint); gLayer.clear(); gLayer.add(gra); myMap.centerAt(wmPoint); } } ]]> </fx:Script> <esri:Map id="myMap"> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/> </esri:Map> <s:Label text="Latitude" left="10" top="10" height="21"/> <s:TextInput id="lat" top="10" left="60"/> <s:Label text="Longitude" left="190" top="10" height="21"/> <s:TextInput id="lon" top="10" left="250"/> <s:Button id="btnSubmit" label="Plot" click="btnSubmit_clickHandler(event)" left="380" top="10"/> </s:Application> I am using BNG services and have altered the wkid in the code (and am obviously consuming an ArcGISTiledMapServiceLayer in BNG too, not the World_Street_Map as in this code, which is not BNG). Appreciate any assistance, Karl
... View more
01-03-2013
05:13 AM
|
0
|
5
|
2350
|
POST
|
Hi, I have a locator service which has access to a variety of fields and would like to write one of these fields into a tooltip that appears if the address is successfully located. The field is called ???Street_ID???. I am trying to adapt the example script found in the ESRI Flex Samples site - below is an extract of the mxml; if someone could highlight what I need to include to get this field to write, It would be appreciated: <fx:Script> <![CDATA[ import com.esri.ags.Graphic; import com.esri.ags.geometry.MapPoint; import com.esri.ags.layers.GraphicsLayer; import com.esri.ags.tasks.supportClasses.AddressCandidate; import com.esri.ags.tasks.supportClasses.AddressToLocationsParameters; import mx.controls.Alert; import mx.rpc.AsyncResponder; private function doFind():void { var parameters:AddressToLocationsParameters = new AddressToLocationsParameters(); parameters.address = { SingleLine: onelineaddress.text }; parameters.outFields = ["Loc_name"]; locator.addressToLocations(parameters, new AsyncResponder(onResult, onFault)); function onResult(candidates:Array, token:Object = null):void { if (candidates.length > 0) { var addressCandidate:AddressCandidate = candidates[0]; var myGraphic:Graphic = new Graphic(); myGraphic.geometry = addressCandidate.location; myGraphic.symbol = mySymbol; myGraphic.toolTip = addressCandidate.address.toString(); myGraphic.id = "graphic"; myGraphicsLayer.add(myGraphic); myMap.centerAt(myGraphic.geometry as MapPoint); if (addressCandidate.attributes.Loc_name.search("RoofTop") > 0) { myMap.scale = 9027.977411; } myInfo.htmlText = "<b>Found:</b><br/>" + addressCandidate.address.toString(); } else { myInfo.htmlText = "<b><font color='#FF0000'>No Location Found</b></font>"; Alert.show("Sorry, couldn't find a location for this address" + "\nAddress: " + onelineaddress.text); }; } function onFault(info:Object, token:Object = null):void { myInfo.htmlText = "<b>Failure</b>" + info.toString(); Alert.show("Failure: \n" + info.toString()); } } private function clearMap():void { myGraphicsLayer.clear(); Alert.show("Points cleared"); } ]]> </fx:Script> Thanks, Karl
... View more
12-17-2012
05:24 AM
|
0
|
1
|
2065
|
Online Status |
Offline
|
Date Last Visited |
01-12-2021
06:41 AM
|