POST
|
Hi, We are upgrading our existing solution which was developed in ArcGIS for Windows mobile 10.0 to ArcGIS for Windows Mobile 10.2.1. In ArcGIS for Windows mobile 10.0 version there is a dll named "ESRIMobileGPS.dll" at SDK installed location C:\Program Files (x86)\ArcGIS\Mobile10.0\bin, But in ArcGIS for Windows mobile 10.2.1 version this dll(ESRIMobileGPS.dll) is missing at application install path C:\Program Files (x86)\ArcGIS\Mobile10.2.1\bin, and another dll named "esrigps.dll" present. Is ESRIMobileGPS.dll is renamed as esrigps.dll in version 10.2.1? Usually when we deploy the application we include all required dlls(ESRIMobileCore.dll, ESRI.ARCGIS.Runtime.PE.dll, ESRI.ArcGIS.Runtime.Geometry.dll, ESRI.ArcGIS.Runtime.SG.dll and ESRIMobileSdc.dll) in setup file and execute this setup on device( currently we are using Panasonic Toughbook). Currently we are including esrigps.dll along with other dlls in setup file as ESRIMobileGPS.dll is not available in ArcGIS for Windows Mobile 10.2.1 After installing my upgraded application on Panasonic Toughbook, all functionalities of my application working properly except GPS functionality, it is throwing an exception "Specified method is not supported." while opening the serialport connection serialPortGpsConnection1.Open(); Thanks, Uday
... View more
05-07-2017
09:16 PM
|
0
|
0
|
1701
|
POST
|
Hi Pramod, We are upgrading our existing solution which was developed in ArcGIS for Windows mobile 10.0 to ArcGIS for Windows Mobile 10.2.1. In ArcGIS for Windows mobile 10.0 version there is a dll named "ESRIMobileGPS.dll" at SDK installed location C:\Program Files (x86)\ArcGIS\Mobile10.0\bin But in ArcGIS for Windows mobile 10.2.1 version this dll is missing, and another dll named "esrigps.dll" present. Is ESRIMobileGPS.dll is renamed as esrigps.dll in version 10.2.1? Usually when we deploy the application we include all required dlls(ESRIMobileCore.dll, ESRI.ARCGIS.Runtime.PE.dll, ESRI.ArcGIS.Runtime.Geometry.dll, ESRI.ArcGIS.Runtime.SG.dll and ESRIMobileSdc.dll) in setup file and execute this setup on device( currently we are using Panasonic Toughbook). After installing my application on Panasonic Toughbook, all functionalities of my application working properly except GPS functionality, it is throwing an exception "Specified method is not supported." while opening the serialport connection serialPortGpsConnection1.Open(); Could you please help me in resolving this issue.
... View more
05-05-2017
12:13 AM
|
0
|
0
|
1968
|
POST
|
Hi All, I am adding custom graphic layer to map, I am building custom graphic layer by inheriting the map graphic layer. I would like to set the transparence or opacity property of the custom graphic layer, but this property is not available map graphic layer hence also not available in custom graphic layer as it is inheriting form map graphic layer. Is there any work around to set transparency or opacity property of custom graphic layer? Thanks, Uday
... View more
03-31-2017
12:27 AM
|
0
|
0
|
1783
|
POST
|
Hi, I am synchronizing mobile cache using ArcGIS Server mobile service. It takes lot of time for synchronization(PULL) around 1 hour, can anyone tell me how to imporve the performance. Thanks, Uday
... View more
01-27-2017
03:08 AM
|
0
|
0
|
1773
|
POST
|
Hi All, I am trying to perform PULL synchronization using ArcGIS Server service. I did the following Prepared MXD using file geodatabase. Created Mobile cache. Published Mapservice with mobile data capability. Configured above created mobile cache and map service into my custom application and modified the data in mxd and saved. While performing the PULL synchronization I am getting the "Unsupported request name" exception. When I observed the ArcGIS Server log it is showing that "Method failed.HRESULT = 0x80004005 : Unspecified error arcgis server" Can anybody help me how to resolve this issue. Thanks, Uday
... View more
08-30-2016
07:14 AM
|
0
|
0
|
2202
|
POST
|
Hi All, I am using ArcGIS Runtime for Windows Mobile 10.2.1, I have created a simple application and added some layer few layers to map. While PANNING the map, layers are not visible on new extent, while zooming it all layers are visible with new extent dimmed. Can anyone tell me which property I need to set to display all layers on the map while PANNING the map. Please refer the attached screen shot. Thanks, Uday ArcGIS Runtime for Windows Mobile
... View more
07-14-2016
05:40 AM
|
0
|
0
|
1269
|
POST
|
Hi All, As per ESRI ArcGIS Runtime for Windows Mobile 10.2.1 documentation, to get all layers on the map we need to use "MapLayers" class, Below is the example Provided by ESRI(http://resources.arcgis.com/en/help/windows-mobile-sdk/apiref/index.html) "Assuming you have a Map control called map1, and is using a valid MobileCache, the following example shows you how to get a MapLayer by index or layer name. C# Copy Code MapLayerCollection mlc = map1.MapLayers as MapLayerCollection; // Method 1: get a MapLayer by index MapLayer ml1 = mlc[0] as MapLayer; MessageBox.Show(ml1.Name); // Method 2: get a MapLayer by layer name MapLayer ml2 = mlc["EditTest"] as MapLayer; MessageBox.Show(ml2.Name); " When we use the same example to access all the layers on map we are getting cache count only instead of layers count those are added on the map. But in earlier version for the same code it was giving layers on the map. Hence we are unable to modify layer list(add or remove item). Please refer the attached screen shot. Is there any work around to access map layers and end edit the list. Thanks, Uday
... View more
02-16-2016
09:21 PM
|
0
|
0
|
3806
|
POST
|
Hi All, As per ESRI help for ArcGIS SDK for Windows Mobile 3, "SelectionGraphicLayer" class has been moved from Mobile to WinForms Namespace. But when I searched in WinForms Namespace for "SelectionGraphicLayer" it is not available. We are migrating our ArcGIS Windows Mobile application which was built on version 10 to 10.2.1. While compiling the code we are getting the below error "The type or namespace name 'SelectionGraphicLayer' could not be found (are you missing a using directive or an assembly reference?)" at below class which was inherited from "SelectionGraphicLayer" /// Custom Layer for handling geometry highlighting /// </summary> public class CustomSelectionGraphicLayer : SelectionGraphicLayer { private ESRI.ArcGIS.Mobile.FeatureCaching.Symbol m_pointSymbol; private static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger(); //protected override void Draw(ESRI.ArcGIS.Mobile.Display display) protected override void Draw(ESRI.ArcGIS.Mobile.MapSurface display) { try { Geometry[] geom = this.Map.SelectedGeometries.ToArray<Geometry>(); foreach (Geometry item in geom) { //display.DrawGeometry(this.SelectionSymbol.Pen, this.SelectionSymbol.Brush,this.SelectionSymbol.PointSize, item); display.DrawGeometry(this.SelectionSymbol.Pen, this.SelectionSymbol.Brush, this.SelectionSymbol.PointSize, item); } } catch (Exception ex) { Logger.ErrorException(ex.ToString(), ex); } } } Hence we inherited the class from "MapGraphicLayer" as below, but this time we are getting below errors "'ArcGISMobileClient.CustomControls.CustomSelectionGraphicLayer' does not contain a definition for 'SelectionSymbol' and no extension method 'SelectionSymbol' accepting a first argument of type 'ArcGISMobileClient.CustomControls.CustomSelectionGraphicLayer' could be found (are you missing a using directive or an assembly reference?)" "'ESRI.ArcGIS.Mobile.WinForms.Map' does not contain a definition for 'SelectedGeometries' and no extension method 'SelectedGeometries' accepting a first argument of type 'ESRI.ArcGIS.Mobile.WinForms.Map' could be found (are you missing a using directive or an assembly reference?)" /// Custom Layer for handling geometry highlighting /// </summary> public class CustomSelectionGraphicLayer : MapGraphicLayer { private ESRI.ArcGIS.Mobile.FeatureCaching.Symbol m_pointSymbol; private static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger(); //protected override void Draw(ESRI.ArcGIS.Mobile.Display display) protected override void Draw(ESRI.ArcGIS.Mobile.MapSurface display) { try { Geometry[] geom = this.Map.SelectedGeometries.ToArray<Geometry>(); foreach (Geometry item in geom) { //display.DrawGeometry(this.SelectionSymbol.Pen, this.SelectionSymbol.Brush,this.SelectionSymbol.PointSize, item); display.DrawGeometry(this.SelectionSymbol.Pen, this.SelectionSymbol.Brush, this.SelectionSymbol.PointSize, item); } } catch (Exception ex) { Logger.ErrorException(ex.ToString(), ex); } } } Can anyone help me how resolve this issue. Thanks in advance, Uday
... View more
02-07-2016
11:27 PM
|
0
|
0
|
3202
|
POST
|
Hi All, I have Geographic coordinates as 42 33 9.22 ,-107 33 35.53 Datum NAD27. I would like to convert the same coordinates to Datum NAD83 using Javascript API, can anyone suggest me how ho to proceed. Thanks, Uday
... View more
06-24-2015
12:06 AM
|
0
|
1
|
3505
|
POST
|
Vince, Thankyou very much for the quick reply. My problem is solved by passing the fully qualified Layer Name like "SDE.LayerName". Thanks for your support. Thanks, -U
... View more
07-05-2013
06:08 AM
|
0
|
0
|
1028
|
POST
|
Dear All, We have developed a desktop application usin ArcSDE C API, which reads latitudes and longitudes from SQLServer 2008 database and creates points in the SDE feature class. Previously it was in ArcSDE 9.1, now we migrated this application to ArcSDE 10.0. Everything works fine when ArcSDE 10.0 and SDE Geodatabase is in same machine, if I move SDE Geodatabase to some other machine i.e. if I place ArcSDE in one machine and SDE database in another machine. Iam getting error "Layer not found (-20)". But connection to databse is successful. What could be the reason? Thanks, -U
... View more
07-04-2013
04:06 AM
|
0
|
3
|
1476
|
POST
|
Anthony, Thankyou very much. I will try to export the selected features using the below code. Thanks, -U Uday, It is possible but you would have to write your own function to do it. The main problem you will end up having is getting the KML to have the same symbology as your features. I have written an exporter for a draw widget that exports all drawn graphics to KML. Below is the code that may give you some pointers:
private function saveKML():void
{
//create string to hold KML
var KML:String = new String;
KML = "";
KML = '<?xml version="1.0" encoding="UTF-8"?>\n<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">\n<Document>\n<Folder>\n';
for (var i:int = 0; i < graphicsLayer.numGraphics; i++)
{
var gra:Graphic = graphicsLayer.getChildAt(i) as Graphic;
var symTypeName:String = "";
var symType:String = "";
var symLType:String = "";
var symFontE:String = "";
var symFontP:String = "middle";
var symSize:Number = 1;
var symColor:Number = 0x000000;
var symColor2:Number = 0x000000;
var symColor3:Number = 0x000000;
var symWidth:Number = 1;
var symText:String = "";
var symAlpha1:Number = 1;
var symAlpha2:Number = 1;
var geomType:String = "";
var geomSR:Number;
var gname:String = "";
var symAngle:Number = 0;
var symcolour:String = "";
var polysymcolour:String = "";
var symAlpha:String = "FF";
var symAlphaOutline:String = "FF";
switch(gra.geometry.type)
{
case Geometry.MAPPOINT:
{
var pnt:MapPoint = gra.geometry as MapPoint;
KML = KML + "<Placemark>\n<Style>\n<IconStyle>\n<scale>1.000000</scale>\n<Icon>\n<href>" + kmlPointSymbol + "</href>\n</Icon>\n</IconStyle>\n</Style>\n<name>" + gra.attributes.title + "</name>\n<description>" + gra.attributes.content + "</description>\n<Point>\n<coordinates>\n" + pnt.x.toString() + "," + pnt.y.toString() + "\n</coordinates>\n</Point>\n</Placemark>\n";
break;
}
case Geometry.POLYLINE:
{
var polyline:Polyline = gra.geometry as Polyline;
var lineSym:SimpleLineSymbol = gra.symbol as SimpleLineSymbol;
symcolour = lineSym.color.toString(16);
while (symcolour.length < 6)
{
symcolour = 0 + symcolour;
}
symWidth = lineSym.width;
symAlpha = (lineSym.alpha * 255).toString(16);
for (var i1:int = 0; i1 < polyline.paths.length; i1++)
{
KML = KML + "<Placemark>\n<name>" + gra.attributes.title + "</name>\n<description>" + gra.attributes.content + "</description>\n<Style>\n<LineStyle>\n<color>" + symAlpha + symcolour.substr(4,2) + symcolour.substr(2,2) + symcolour.substr(0,2) + "</color>\n<width>" + symWidth + "</width>\n</LineStyle>\n</Style>\n<LineString>\n<coordinates>\n";
for (var j:int = 0; j < polyline.paths[i1].length; j++)
{
var mp:MapPoint = polyline.getPoint(i1,j) as MapPoint;
KML = KML + mp.x.toString() + "," + mp.y.toString() + ",0 ";
}
KML = KML + "\n</coordinates>\n</LineString>\n</Placemark>\n";
}
break;
}
case Geometry.POLYGON:
{
var poly:Polygon= gra.geometry as Polygon;
var polySym:SimpleFillSymbol = gra.symbol as SimpleFillSymbol;
polysymcolour = polySym.color.toString(16);
while (polysymcolour.length < 6)
{
polysymcolour = 0 + polysymcolour;
}
symcolour = polySym.outline.color.toString(16);
while (symcolour.length < 6)
{
symcolour = 0 + symcolour;
}
symWidth = polySym.outline.width;
if(polySym.style != "solid")
{
symAlpha = (polySym.alpha * 128).toString(16);
}
else
{
symAlpha = (polySym.alpha * 255).toString(16);
}
symAlphaOutline = (polySym.outline.alpha * 255).toString(16);
for (var i2:int = 0; i2 < poly.rings.length; i2++)
{
KML = KML + "<Placemark>\n<name>" + gra.attributes.title + "</name>\n<description>" + gra.attributes.content + "</description>\n<Style>\n<PolyStyle>\n<color>" + symAlpha + polysymcolour.substr(4,2) + polysymcolour.substr(2,2) + polysymcolour.substr(0,2) + "</color>\n</PolyStyle>\n<LineStyle>\n<color>" + symAlphaOutline + symcolour.substr(4,2) + symcolour.substr(2,2) + symcolour.substr(0,2) + "</color>\n<width>" + symWidth + "</width>\n</LineStyle>\n</Style>\n<Polygon>\n<outerBoundaryIs>\n<LinearRing>\n<coordinates>\n";
for (var j1:int = 0; j1 < poly.rings[i2].length; j1++)
{
var mp2:MapPoint = poly.getPoint(i2,j1) as MapPoint;
KML = KML + mp2.x.toString() + "," + mp2.y.toString() + " ";
}
KML = KML + "\n</coordinates>\n</LinearRing>\n</outerBoundaryIs>\n</Polygon>\n</Placemark>\n";
}
break;
}
//case Geometry.EXTENT:
//{
//var rect:Extent= gra.geometry as Extent;
//KML = KML + "<Placemark><name>" + gra.attributes.title + "</name><Polygon><outerBoundaryIs><LinearRing><coordinates>" + rect.xmin + "," + rect.ymin + " " + rect.xmax + "," + rect.ymin + " " + rect.xmax + "," + rect.ymax + " " + rect.xmin + "," + rect.ymax + "</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark>";
//break;
//}
}
}
KML = KML + "</Folder>\n</Document>\n</kml>";
if(!fr) fr = new FileReference();
fr.save(KML,"SavedGraphics.kml");
}
Regards Anthony
... View more
06-03-2013
05:14 AM
|
0
|
0
|
929
|
POST
|
Hi All, I would like to export selected features or selected Area on the map to KML/KMZ format. Is it possible using Flex API? if yes please let me know how. Thanks, -U
... View more
06-02-2013
10:21 PM
|
0
|
2
|
3615
|
POST
|
Hi, Thankyou very much for the reply. But we are using ArcGIS Server 10.0, how could I achieve this in ArcGIS Server 10.0 Thanks, Uday I think you can use Print utility from ArcGIS Server 10.1 which has the capability to return the following Formats: [ PDF, PNG32, PNG8, JPG, GIF, EPS, SVG, SVGZ ] We have a Print Widget in JS API to use the capability of Print Utility from ArcGIS Server 10.1. Code snippet: app.printer = new esri.dijit.Print({
map: app.map,
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
}, dojo.byId("printButton"));
app.printer.startup(); Here is the link to the sample which adds graphics and gets the resultant image in PNG32 format(You can change it to JPG). Print class documentation.
... View more
04-29-2013
08:25 PM
|
0
|
0
|
1472
|
POST
|
Hello All, We are using the 3.1 Javascript API for displaying map, and have created few grahphics on map. We want the user to be able to save the resultant display as a jpeg, ping, bmp or some such format. If user right-click on the base map and 'Save Picture As', user gets the map without the graphics layer. But we need to show graphics on image. Anyone know how we can make this work? Thanks, Uday
... View more
04-28-2013
03:57 AM
|
0
|
4
|
6649
|
Online Status |
Offline
|
Date Last Visited |
11-20-2023
11:16 PM
|