POST
|
Hi, I have also build a android app for offline editing. My app first download the street map from services and storing on the device.I will suggest you look at the example given for Offline Editing. You will see that in this example map are getting download on device. I have followed the same example and my app is successfully able to download the maptiles and or tpk
... View more
06-13-2016
06:39 AM
|
0
|
0
|
194
|
POST
|
Thanks Alexander, I have already solved the issue. The libs folder was not getting automatically reference in Antroid Studio so configure the path in gradle file. But still i am facing one issue. If I am running LineOfSight first and then ViewShed it is working fine. If i am running ViewShed first and then LineOfSight then app is getting crash when trying to run the LineOfSight.
... View more
06-13-2016
06:31 AM
|
0
|
0
|
235
|
POST
|
Hi, I am trying to build the android runtime OfflineAnalysis. I have copied the code from sample and also setup the jniLibs with required file. I have a raster data whose extension is .tif . The application compiling fine but when running in emulator (target 23 "Android 6") the application is loading the raster after that when i am selecting a radio button "Line of sight" that time the application is getting crash. After looking at logcat i came to know that the error is thrown by librs.main.so Here is the full error message i am getting: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_Z6lengthDv2_f" referenced by "/data/app/india.esri.offlineanalysis-1/lib/x86/librs.main.so"... I am unable to solve this. can any one please help me on this?
... View more
05-17-2016
06:58 AM
|
1
|
2
|
3255
|
POST
|
Hi, I have implemented the proxy page proxy.ashx into an application. But the performance of proxy.ashx is so slow as compare to the browser httphandler. If i am doing some query and that query is almost returning big results and If I am using the applicaiton without proxy.ashx page then we are getting the results and if I am using the proxy.ashx then most of the time it get struct on the line "string strResponse = sr.ReadToEnd();". Its seems that the performance of the proxypage is slower than the browser httphandler. Due to this I am unable to use the proxypage and authenticating the user to get the token by javascript and also bypassing the identitymanager but this option expose the token. any user can see the token using browser debugger tool. Does anyone faced similar kind of issue with the proxy.ashx page? How to resolve this issue. Why proxy.ashx page are so slow (most of time getting timeout exception but same results is getting return by browser httphandler(Without proxy page). Is there any option to hide the parameter of the request made by the querytask, esri.request etc... so that user can not be able to see the token using the browser debugger tool?
... View more
07-04-2015
06:24 AM
|
0
|
0
|
3243
|
POST
|
Hi Rick, Many many thanks, Thats works. Thanks you again.
... View more
10-19-2011
02:22 AM
|
0
|
0
|
189
|
POST
|
Hi, I am trying to delete the Schematic Diagram using the below code. The codes runs fine without any error but diagram is not getting deleted from sde geodatabase. (I have used the ISchematicBuilderEdit.OnDeleteDiagram interface.) I am using (ArcGis Sever V9.3.1) private string DeleteSchematicDiagram(string diagramName,string folderName,string schematicDatasetName,IWorkSpace pwksSpace) { ISchematicWorkspaceFactory pSchWorkspaceFac = pServerContext1.CreateObject("esriSchematic.SchematicWorkspaceFactory") as ISchematicWorkspaceFactory; ISchematicWorkspace pSchWorkspace = pSchWorkspaceFac.Open(pwksSpace); ISchematicDataset pSchDataSet = pSchWorkspace.get_SchematicDatasetByName(schematicDatasetName); if (pSchDataSet != null) { ISchematicFolderContainer pSchematicFolderContainer = (ISchematicFolderContainer)pSchDataSet; ISchematicFolder pSchematicFolder = pSchematicFolderContainer.get_SchematicFolderByName(folderName); ISchematicDiagramContainer pSchematicDiagramContainer = pSchematicFolder as ISchematicDiagramContainer; IEnumSchematicDiagram pEnumScheDiag = pSchematicDiagramContainer.SchematicDiagrams; ISchematicDiagram pSchDiagram = null; for (int i = 0; i < pSchematicDiagramContainer.SchematicDiagrams.Count; i++) { ISchematicDiagram finalSchemDiagram = pEnumScheDiag.Next(); if (finalSchemDiagram != null) { if (finalSchemDiagram.Name == diagramName) { pSchDiagram = finalSchemDiagram; break; } } }//For loop if (pSchDiagram != null) { ISchematicBuilder pSchStandardBuilder = pSchDiagram.SchematicDiagramClass.SchematicBuilder as ISchematicBuilder; ISchematicBuilderEdit pSchematicBuilderEdit = pSchStandardBuilder as ISchematicBuilderEdit; try { pSchematicBuilderEdit.OnDeleteDiagram(pSchDiagram); } catch (Exception exp) { return "ERROR^" + exp.Message; } } } else { return "ERROR^Schematic dataset not found."; } } Thanks for any help...... Thanks & regards Sanjeev kumar Sinha
... View more
10-10-2011
02:41 AM
|
0
|
2
|
798
|
POST
|
Hi Rick, Some strange thing is happening while display the schematic diagram (adding the layer dynamically on the fly). Here I am giving you the idea of our application. I have one application (main application) with a. webcontrol (combobox contains the all schematic diagram name and a button to view the diagram). b. webcontrol (use to create the schematic diagram using code.) c. SchematicViewer.aspx page (contains the above code). Once the user created the dygram the combobox list in webcontrol (a) is automatically updated. I am opening the SchematicViewer.aspx using javascript on click event of view button in the webcontrol (a) and sending the diagram name in querystring with url. (window.open("SchematicViewer.aspx?DiagramName = ABC");) The strange thing is 1. when the SchematicViewer.aspx page is getting open by the Webcontrol the diagram is not visible. but If i copy the url of the current opened SchematicViewer.aspx and open the NEW IE . In the New IE window the diagram is visible. If i change the name of the diagram in the new IE window and press refresh button then again diagram is not visible and if i close this window and reopen again (IE directly ) and paste the url in the new current opened IE then diagram is visible. Writing again to understand you if the above is not clear to you. 1. Main Application with user control to view the schematic. (when ever open the schematicviewer.aspx using this usercontrol diagram is not visible). (http://SchematicViewer.aspx?DiagramName=ABC") 2. Diretly opening the IE from Desktop shortcut and providing the same url (http://SchematicViewer.aspx?DiagramName=ABC") then the diagram is visible. But If i change the diagram name from ABC to other name like ABC to ABC123 then diagram is not visible. 3. But If i close this (Step 2) window and do the same STEP 2 then diagram is visible. I try all the thing to display diagram using webcontrol with javascript but no luck. Thanks you very much for help...... Thanks & Regards Sanjeev Sinha
... View more
09-15-2011
03:17 AM
|
0
|
0
|
410
|
POST
|
Hi Rick, Now i am able to create the diagram using the code. Thanks for the help.... I am facing another problem. When trying to display the diagram on adf map, most of the time diagram not displaying properly. public void showDiagramUsingDiagramLayer(String diagramName, ESRI.ArcGIS.ADF.Web.UI.WebControls.Map SLDMap1) { IServerContext pServerContext = null; ISchematicWorkspace pSchWorkspace = null; ISchematicWorkspaceFactory pSchWorkspaceFac = null; ISchematicDataset pSchematicDataset = null; ISchematicDiagram finalSchemDiagram = null; ISchematicDiagramContainer diagcontainer = null; IEnumSchematicDiagram pEnumScheDiag = null; IEnumSchematicFolder pEnumScheFolder = null; ISchematicFolderContainer pSchematicFolderContainer = null; ISchematicLayer pSchLayer = null; ESRI.ArcGIS.Carto.ILayer pLayer = null; #region Schematic Function try { if (!SLDMap1.MapResourceManagerInstance.Initialized) SLDMap1.MapResourceManagerInstance.Initialize(); ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal gisresource = null; gisresource = (ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal)(SLDMap1.MapResourceManagerInstance.GetResource(0)); ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.ServerContextInfo servCtxInfo = gisresource.ServerContextInfo; pServerContext = servCtxInfo.ServerContext; ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality gisFunctionality = (ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality)SLDMap1.GetFunctionality(0); string errorMsg = ""; ESRI.ArcGIS.Carto.IMapServer mapServer = pServerContext.ServerObject as ESRI.ArcGIS.Carto.IMapServer; ESRI.ArcGIS.Carto.IMapServerObjects mapServerObjects = (ESRI.ArcGIS.Carto.IMapServerObjects)mapServer; ESRI.ArcGIS.Carto.IMap pMap = mapServerObjects.get_Map(mapServer.DefaultMapName); ESRI.ArcGIS.Geodatabase.IWorkspace pWorkSpace = getWrkSpace(SLDMap1,gisresource, false); //fLayer.FeatureClass.FeatureDataset.Workspace; pSchWorkspaceFac = pServerContext.CreateObject("esriSchematic.SchematicWorkspaceFactory") as ISchematicWorkspaceFactory; pSchWorkspace = pSchWorkspaceFac.Open(pWorkSpace); pSchematicDataset = pSchWorkspace.get_SchematicDatasetByName("RAPDRP.NewSchematicDataset"); diagcontainer = (ISchematicDiagramContainer)pSchematicDataset; pEnumScheDiag = diagcontainer.SchematicDiagrams; pSchLayer = pServerContext.CreateObject("esriSchematic.SchematicLayer") as ISchematicLayer; for (int i = 0; i < diagcontainer.SchematicDiagrams.Count; i++) { finalSchemDiagram = pEnumScheDiag.Next(); if (finalSchemDiagram != null) { if (finalSchemDiagram.Name == diagramName) { pSchLayer.SchematicDiagram = finalSchemDiagram; pLayer = (ESRI.ArcGIS.Carto.ILayer)pSchLayer; break; } } } if (pLayer == null) { //Checking if diagram exist in folder. pSchematicFolderContainer = pSchematicDataset as ISchematicFolderContainer; pEnumScheFolder = pSchematicFolderContainer.SchematicFolders; ISchematicFolder pSF = pEnumScheFolder.Next(); Boolean canExist = false; while (pSF != null) { diagcontainer = (ISchematicDiagramContainer)pSF; pEnumScheDiag = diagcontainer.SchematicDiagrams; finalSchemDiagram = pEnumScheDiag.Next(); while (finalSchemDiagram != null) { if (finalSchemDiagram.Name == diagramName) { pSchLayer.SchematicDiagram = finalSchemDiagram; pLayer = (ESRI.ArcGIS.Carto.ILayer)pSchLayer; canExist = true; break; } finalSchemDiagram = pEnumScheDiag.Next(); } if (canExist) break; pSF = pEnumScheFolder.Next(); } } if (pLayer != null) { pLayer.Name = diagramName; pLayer.Visible = true; //Delete already exist layer if (pMap.LayerCount > 0) { deleteAllLayers(pMap); } //Add layer pMap.AddLayer(pLayer); //pMap.MoveLayer(pLayer, 1); //(basically here making the layer visibility on) MapFunctions(gisFunctionality); pMap.AreaOfInterest = pLayer.AreaOfInterest; mapServerObjects.RefreshServerObjects(); IEnvelope env = pServerContext.CreateObject("esriGeometry.Envelope") as IEnvelope; env = (IEnvelope)pLayer.AreaOfInterest; ESRI.ArcGIS.ADF.Web.Geometry.Envelope pEnvelope = ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Converter.FromIEnvelope(env); SLDMap1.Page.Session["DiagramFullExtent"] = pEnvelope; SLDMap1.Extent = pEnvelope; SLDMap1.Refresh(); SLDMap1.RefreshResource(SLDMap1.MapResourceManagerInstance.ResourceItems[0].Name); } } catch (Exception ex) { throw ex; } finally { if (pServerContext != null) pServerContext.ReleaseContext(); } ----------------------------------------------------------------------------------------------- public void MapFunctions(ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality gisFunctionality) { ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality pMapFunctionality = gisFunctionality; ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal mapResourceLocal = (ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal)pMapFunctionality.Resource; System.Collections.Generic.Dictionary<string, bool> visibleLayers = new System.Collections.Generic.Dictionary<string, bool>(); foreach (ESRI.ArcGIS.ADF.ArcGISServer.LayerDescription layerDescription in mapResourceLocal.MapDescription.LayerDescriptions) { if (!(layerDescription.LayerID == 0)) { visibleLayers.Add(layerDescription.LayerID.ToString(), true); } else { visibleLayers.Add(layerDescription.LayerID.ToString(), true); } } // Register changes to server object - dynamic layer added. mapResourceLocal.RefreshServerObjects(); // Reset the visibility of the layers in the resource's map description to what it was before updating the map service. foreach (System.Collections.Generic.KeyValuePair<string, bool> layerVisiblePair in visibleLayers) { if (!(layerVisiblePair.Key.Contains("0"))) { ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality.UpdateVisibleLayer( mapResourceLocal.MapDescription, layerVisiblePair.Key, layerVisiblePair.Value); } else { ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapFunctionality.UpdateVisibleLayer( mapResourceLocal.MapDescription, layerVisiblePair.Key, false); } } } Thanks Sanjeev Kumar Sinha
... View more
09-05-2011
07:00 AM
|
0
|
0
|
410
|
POST
|
Hi Rick, Now the above code works without error but the created diagram is empty. How to register the class (EnumObjectConverter "econ" ) on the server?. Thanks Sanjeev Sinha
... View more
07-29-2011
04:58 AM
|
0
|
0
|
410
|
POST
|
Hi, I am trying to create the schematic digram using the Geoprocessing Tool. As per the esri sample i made a GP Model and published it as arcgis geoprocess service. This model is running fine but giving the error "tool is not licensed" when running from the arcgis server web application. I am using the 3 default gp tool in this model. 1. Make Layer 2. Select by location 3. Create diagram (Schematic tool) I have also checked the license, All license are available. we have arcgis server advance and Schemati license for arcgis server. Not able to figure out what is the issue... Thanks for any kind of help. sanjeev sinha
... View more
07-13-2011
11:31 PM
|
0
|
0
|
1676
|
POST
|
The access denied issue has been solved it was the license issue. now i am facing another issue. getting error while creating diagram but the same code in the Desktop is running fine. ERROR: Message : Exception from HRESULT: 0x80040221 From : ESRI.ArcGIS.Schematic Stack Trace : at ESRI.ArcGIS.Schematic.ISchematicBuilder.GenerateDiagram(String diagramName, ISchematicDiagramContainer DiagramContainer, IPropertySet pPropertySet, ISchematicBuilderContext pContext, ITrackCancel cancelTracker) I have checked the innerException and found below code: _ComPlusExceptionCode: -532459699 and HResult error code : -2146233088 Thanks for any help sanjeev sinha
... View more
07-12-2011
05:46 AM
|
0
|
0
|
410
|
POST
|
Hi, I am trying to create the schematic diagram of selected features on the map using the code. I am getting the below error when calling the GenerateDiagram of StandartBuilder. But the same code in the Desktop is running fine. ERROR: Message : Exception from HRESULT: 0x80040221 From : ESRI.ArcGIS.Schematic Stack Trace : at ESRI.ArcGIS.Schematic.ISchematicBuilder.GenerateDiagram(String diagramName, ISchematicDiagramContainer DiagramContainer, IPropertySet pPropertySet, ISchematicBuilderContext pContext, ITrackCancel cancelTracker) I have checked the innerException and found below code: _ComPlusExceptionCode: -532459699 and HResult error code : -2146233088 Thanks for any help. Sanjeev sinha
... View more
07-12-2011
05:41 AM
|
0
|
0
|
741
|
POST
|
Hi, i am facing the problem while generating the schematic diagram using the code. The code throwing the "Access denied error" when trying to set the ISchematicStandardBuilderContext.InitialObjects. Below is the code i am using. public void GenerateSchematicsDiag(IEnumFeature pEnumFeature, IServerContext pServerContext, out string erroMsg) { string DiagramName = "testingSanjeev"; string SchematicDataset = "SDE.Schematicdataset"; string FolderName = "SSNJ"; ESRI.ArcGIS.Carto.IMapServer mapServer = pServerContext.ServerObject as ESRI.ArcGIS.Carto.IMapServer; ESRI.ArcGIS.Carto.IMapServerObjects mapServerObjects = (ESRI.ArcGIS.Carto.IMapServerObjects)mapServer; ESRI.ArcGIS.Carto.IMap pMap = mapServerObjects.get_Map(mapServer.DefaultMapName); ISchematicDataset pSchematicDataset = null; ISchematicDiagramClass pSchDiagramClass = null; ISchematicDiagramClassContainer pSchDiagramClassContainer = null; ISchematicStandardBuilderContext pSchStandardBuilderCtxt = null; ISchematicDiagram pSchematicDiagram = null; ISchematicWorkspace pSchWorkspace = null; ISchematicWorkspaceFactory pSchWorkspaceFac = null; ISchematicDiagramContainer pSchematicDiagramContainer = null; ISchematicFolderContainer pSchematicFolderContainer = null; ISchematicFolder pSchematicFolder = null; try { if (!(DiagramName == null)) { IFeatureLayer substflayer = (IFeatureLayer)pMap.get_Layer(1); IFeatureClass firstfclass = substflayer.FeatureClass; IDataset dataset = (IDataset)firstfclass; IWorkspace pWorkSpace = dataset.Workspace; pSchWorkspaceFac = pServerContext.CreateObject("esriSchematic.SchematicWorkspaceFactory") as ISchematicWorkspaceFactory; pSchWorkspace = pSchWorkspaceFac.Open(pWorkSpace); pSchematicDataset = pSchWorkspace.get_SchematicDatasetByName(SchematicDataset); pSchematicFolderContainer = (ISchematicFolderContainer)pSchematicDataset; pSchematicFolder = pSchematicFolderContainer.get_SchematicFolderByName(FolderName); if ((pSchematicFolder == null)) { pSchematicFolder = pSchematicDataset.CreateSchematicFolder(FolderName); } pSchematicDiagramContainer = (ISchematicDiagramContainer)pSchematicFolderContainer.get_SchematicFolderByName(FolderName); pSchStandardBuilderCtxt = pServerContext.CreateObject("esriSchematic.SchematicStandardBuilderContext") as ISchematicStandardBuilderContext; pEnumFeature.Next(); EnumObjectConverter eocon = new EnumObjectConverter(pEnumFeature); pSchStandardBuilderCtxt.InitialObjects = eocon as IEnumObject; ISchematicBuilderContext ctx = pSchStandardBuilderCtxt as ISchematicBuilderContext; IPropertySet set = pServerContext.CreateObject("esriSystem.PropertySet") as IPropertySet; pSchDiagramClassContainer = (ISchematicDiagramClassContainer)pSchematicDataset; string clsName = "FeederDiagram"; pSchDiagramClass = pSchDiagramClassContainer.get_SchematicDiagramClassByName(clsName); if ((pSchDiagramClass == null)) { return; } pSchematicDiagram = pSchDiagramClass.SchematicBuilder.GenerateDiagram(DiagramName, pSchematicDiagramContainer, set, ctx, null); } } catch (Exception ex) { throw ex; } } class EnumObjectConverter : IEnumObject { private IEnumFeature ef; public EnumObjectConverter(IEnumFeature enumFea) { ef = enumFea; ef.Reset(); } IObject IEnumObject.Next() { if (ef != null) return ef.Next() as IObject; else { return null; } } void IEnumObject.Reset() { ef.Reset(); } } Thanks for any help. Sanjeev Sinha
... View more
06-02-2011
06:07 AM
|
0
|
0
|
592
|
Title | Kudos | Posted |
---|---|---|
1 | 05-17-2016 06:58 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|