|
POST
|
For a MapPoint, I get its X/Y coordinate values. How can it be converted into lat/long values? Thanks. If you are just looking to convert coordinates as a widget, I made one a little while ago. You can download it here: http://www.arcgis.com/home/item.html?id=edd4a2b7c722493a8b08f53eaa131e1e If anything you can dig through it and use it as a code sample. Drew
... View more
04-12-2013
10:23 AM
|
0
|
0
|
24449
|
|
POST
|
I think you have to separate the complete function from the reusable code. Consider doing something like the below sample code.. I did not test the code.. but it should help. notice the "callBackFunction:Function" paramater... it would be your onQueryComplete function
private function FilterAttributeTablesByPolygon(poly:Polygon, strURL:String, callBackFunction:Function):void
{
var querytaskFeaturesByPolygon:QueryTask = new QueryTask();
querytaskFeaturesByPolygon.url = strURL;
var queryFeaturesByPolygon:Query = new Query();
queryFeaturesByPolygon.geometry = poly;
querytaskFeaturesByPolygon.execute(queryFeaturesByPolygon, new AsyncResponder(callBackFunction, faultFunction);
}
private function testquery()
{
//FIRST CALL
FilterAttributeTablesByPolygon(new Polygon(),"http://......", function(event:QueryEvent):void
{
var fs:FeatureSet = event.featureSet;
//......Handle results here
//SECOND CALL Called once first is completed...
FilterAttributeTablesByPolygon(new Polygon(),"http://......", function(event:QueryEvent):void
{
var fs2:FeatureSet = event.featureSet;
//......Handle results here
});
});
}
Hope that helps. Drew
... View more
01-09-2013
07:03 AM
|
0
|
0
|
1275
|
|
POST
|
Then your solution is SQL Server Activity Monitor.. See the "Processes" Panel. There are filters you can apply from the column headings that will allow you to dig into the DB you are interested in. It's a little cumbersome, but with a little reading you should be able to get it. http://msdn.microsoft.com/en-us/library/ms191199%28v=sql.105%29.aspx Note: You can right click on a process and "Kill Process" to remove the lock you find. Drew
... View more
12-11-2012
10:50 AM
|
0
|
0
|
4920
|
|
POST
|
In 10.1 right click on the Geodatabase in ArcCatalog and select "Administer" ->Administer Geodatabase There is a Locks tab there that might help you.. This is all assuming you are using 10.1
... View more
12-11-2012
10:19 AM
|
1
|
0
|
4920
|
|
POST
|
Scott, Essentially a "widget" is just a bunch of code wrapped in a container and the "FlexViewer" knows how to load & display that container. There are some events and variables that are specific to the FLexViewer, but nothing out of the ordinary. If I understand your question correctly you could simply rip out code from a widget and with little modification you could add it to a custom application. As mentioned there would be some modifications needed to make it work, but if you have a good understanding of actionscript you can make it work. To make a modular base application like the Flex Viewer, you would have to learn Flex Modules. There is a lot on google. https://www.google.ca/search?q=Flex+Modules&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a Hope this helps, Drew
... View more
11-28-2012
05:39 AM
|
0
|
0
|
910
|
|
POST
|
This is not a plug and play solution for the ESRI Flex Viewer, but you will get the idea.. See Sample code below. <?xml version="1.0" encoding="utf-8"?> <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" xmlns:esri="http://www.esri.com/2008/ags" keyDown="app_keyDownHandler(event)" keyUp="app_keyUpHandler(event)"> <fx:Script> <![CDATA[ protected function app_keyDownHandler(event:KeyboardEvent):void { if (event.keyCode == Keyboard.CONTROL) { map.panEnabled = false; } } protected function app_keyUpHandler(event:KeyboardEvent):void { if (event.keyCode == Keyboard.CONTROL) { map.panEnabled = true; } } ]]> </fx:Script> <esri:Map id="map" width="100%" height="100%"> <esri:ArcGISTiledMapServiceLayer url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </esri:Map> </s:Application> Drew
... View more
11-19-2012
08:55 AM
|
0
|
0
|
1447
|
|
POST
|
how can I manipulate the config.xml? You might need to be a little more descriptive in your question. But if you want to edit config.xml just open it up in something like Notepad, Notepad++, Textpad... Also.. this is a Flex API forum, if you are referring to the Flex Viewer check out the Flex Viewer forum http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
... View more
11-06-2012
06:58 AM
|
0
|
0
|
417
|
|
POST
|
hi can you teach me how to add RSO Kertau projection into this widget..... Below are the WKID's that are might be what you are looking for. --------------------------------------- WKID Name --------------------------------------- 4751 GCS_Kertau_RSO 24500 Kertau_Singapore_Grid 24547 Kertau_UTM_Zone_47N 24548 Kertau_UTM_Zone_48N 24571 Kertau_RSO_Malaya_Chains Add the one that your looking for under the CoordinateMenuWidget.xml file under the <CoordinateSystems> tag Drew
... View more
10-23-2012
01:38 PM
|
0
|
0
|
2936
|
|
POST
|
Thanks for the reply Anthony. I am able to get a full SQL query against the table using the below code.. C#
string sql = "SELECT * FROM " + tableName
RowCollection rows = geodatabase.ExecuteSQL(sql);
From my knowledge the ExecuteSQL function will take raw valid SQL outlined in the doc's but the doc's do not show any way to limit the returned result (i.e LIMIT or TOP). Drew
... View more
10-14-2012
03:28 PM
|
0
|
0
|
1762
|
|
POST
|
Is there any SQL that is valid with the FGDB that will help me limit the results returned? I have tried TOP, LIMIT etc.. but none work. I could do it all in code, but I would rather retrieve only the records i need from the table. I am using the .NET wrapper. Thoughts? Drew
... View more
10-14-2012
06:06 AM
|
0
|
5
|
5458
|
|
POST
|
How is the token being generated? Is it restricted by referer or ip address? It is restricted by HTTP Referer.
... View more
10-04-2012
06:58 PM
|
0
|
0
|
3238
|
|
POST
|
* BUMP * I am trying to use the print task and am getting the quoted error when using a secured service. Has anyone successfully printed a secured service? Drew Has anyone successfully produced a print when using a secured service? I am getting the following error..
Error executing tool.: Layer "ArcGISDynamicMapServiceLayer405": Unable to connect to map server at [...Web map URL with token written here......] Failed to execute (ExportWebMap). Failed to execute (Export Web Map)
Is there something I need to configure? Drew
... View more
10-04-2012
11:27 AM
|
0
|
0
|
3238
|
|
POST
|
Does no one have a solution for this issue? Help! Hakim , Currently you can not change the default selected coordinates. I will add it as an enhancement to a future upgrade. Drew
... View more
09-25-2012
02:37 PM
|
0
|
0
|
3094
|
|
POST
|
Has anyone successfully produced a print when using a secured service? I am getting the following error..
Error executing tool.: Layer "ArcGISDynamicMapServiceLayer405": Unable to connect to map server at [...Web map URL with token written here......] Failed to execute (ExportWebMap). Failed to execute (Export Web Map)
Is there something I need to configure? Drew
... View more
09-21-2012
07:13 AM
|
1
|
25
|
14038
|
|
POST
|
I can only find a function called "addressToLocations" in VEGeoCoder, is there any way to do it inversely like "LocationToAddress" ? Any suggestions? I don't see anything in the ESRI API, but BING has its own REST endpoint you can hit using HTTP. Below is the docs to get an address by XY coordinate.. http://msdn.microsoft.com/en-us/library/ff701710 Drew
... View more
08-27-2012
07:43 AM
|
0
|
0
|
792
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|