POST
|
Hi Neil, Thanks for the comments. I have reviewed my code and I have found that the out_name parameter was not set and also that the out_path was requiring a workspace (object) as a value. Thanks once more and have a nice day. Eric
... View more
10-30-2013
04:31 PM
|
0
|
0
|
170
|
POST
|
Hi, Does some one ever use DataManagementTools.CreateFeatureclass in vb.net I try to use this to create a sde feature class based on an other one. could someone help me solving this please. This the the what comes out of the catch exception: Executing: CreateFeatureclass C:\test\test_admin_stg1.sde # POLYGON C:\test\test_admin_stg1.sde\test_admin.AAAA_ERIC_A DISABLED DISABLED {B286C06B-0879-11D2-AACA-00C04FA33C20};IsHighPrecision FRAMEWO RK 0 0 0 Failed to execute. Parameters are not valid. I think the error might comes for the line ataManagementCreateFeatureClass.out_path = outPathWorkSpace ... [HTML] Dim gp As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor() Dim DataManagementCreateFeatureClass As ESRI.ArcGIS.DataManagementTools.CreateFeatureclass = New ESRI.ArcGIS.DataManagementTools.CreateFeatureclass() Dim source_fullname As String = "C:\test\test_admin_stg1.sde\test_admin.AAAA_ERIC_A" Dim dest_fullname As String = "C:\test\test_admin_stg1.sde\test_admin.AAAA_ERIC_A_B" Try Dim sConn As String = source_fullname.Substring(0, source_fullname.LastIndexOf("\")) Dim pWorkspaceFactoryIn As New ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactory Dim outPathWorkSpace As IWorkspace = pWorkspaceFactoryIn.OpenFromFile(sConn, 0) 'Set the destination database DataManagementCreateFeatureClass.out_path = outPathWorkSpace 'Set destination sde table name DataManagementCreateFeatureClass.out_feature_class = "AAAA_ERIC_A_B" 'Set source as a the template - OK car le type de geometrie est dans la string DataManagementCreateFeatureClass.template = source_fullname ' gp.Execute(DataManagementCreateFeatureClass, Nothing) Console.WriteLine(gp.GetMessage(0)) Console.WriteLine("") Console.WriteLine(gp.GetMessage(1)) Console.WriteLine("") Console.WriteLine(gp.GetMessage(2)) Catch ex As Exception Console.WriteLine("") Console.WriteLine(gp.GetMessage(0)) Console.WriteLine("") Console.WriteLine(gp.GetMessage(1)) Console.WriteLine("") Console.WriteLine(gp.GetMessage(2)) End Try [/HTML]
... View more
10-30-2013
11:33 AM
|
0
|
2
|
528
|
POST
|
Thank you for your answer Domenico. But how do you fix the problem of the Console Window that does not close when running the application as a stand alone .exe with STA instead of MTA? Is there a solution using STA in 10.1 or is it a bug? Regards Any answer to that question so far ? Thanks
... View more
07-12-2013
03:48 AM
|
0
|
0
|
452
|
POST
|
Hi, We have a process in vb.net (arcgis 10.1) that is used to delete sde feature class on a oracle db instance and then append the data from an other database instance. Many tables are proccessed one after the other. The process starts working properly and then after processing some tables the process does the delete and starts the append procedure and does nothing. it hangs there. The process remains active in task manager, but the cpu is at 0 it may remains like that hours until I decide to kill it. Someone has and an idea? Thanks
... View more
02-27-2013
09:33 AM
|
0
|
2
|
465
|
POST
|
Hi, I'm trying to migrate code from arcgis 10.0 to 10.1 The last line of that code "pGp.Execute("Append_management", oParameters, Nothing)" generates a System.R[HTML][/HTML]untime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. Someone could tell me why please? Thanks. [HTML] Dim oParameters As IVariantArray = New VarArray Dim pGp As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor() ' 'Setting parameters list oParameters.RemoveAll() oParameters.Add(sSrcFullName1) ' <in_path> oParameters.Add(sMergedFullName) ' <out_path> oParameters.Add("NO_TEST") ' <keyword> ' Tools.DisplayMessage("Append the Shape file: " & sSrcShortName1 & " to: " & sMergedShortName) Tools.DisplayMessage(" ") pGp.Execute("Append_management", oParameters, Nothing) [/HTML] Error in MergingShapeFiles(): System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel)
... View more
02-04-2013
06:08 AM
|
0
|
0
|
492
|
POST
|
Thanks Derek, I will try with querytask as you proposed and see how it work.
... View more
11-28-2012
02:59 AM
|
0
|
0
|
1078
|
POST
|
Hi Derek, Thanks for your answer. The reason I'm want to experiment with JQuery is from my understanding when using querytask you ended fetching you results in a datatable or dgrid and because I have to deal with wcag 2.0 (accessibility standard). datagrid or dgrid are not compliant with wcag 2.0. If I use querytask can I fetch the query result is table generated with JQuery? Thanks.
... View more
11-27-2012
02:36 PM
|
0
|
0
|
1078
|
POST
|
Hi, Does any one know how to query a arcgis web service json format with jquery $.ajax ? I was thinking using something like this in order to test if it returns data : [HTML]$(document).ready(function(){ $.ajax( { type:'Get', url:'http://xxx/yyy/rest/services/ppp/rrrr/MapServer/1/28?f=json', datatype: "jsonp", success:function(data) { alert(data); } }) });[/HTML] When trying the url in a browser the json is return... Thanks.
... View more
11-27-2012
10:13 AM
|
1
|
4
|
5769
|
POST
|
Hi Rich, It is because the web app is made using MVC. The topic is use in the bootstrapper to publish the event and then you register to the event in the business logic module. Not to familiar with all this, but this is how the contoller look like. Thanks [HTML]require(["dojo/parser", "dijit/layout/BorderContainer", "dijit/layout/ContentPane","dijit/layout/AccordionContainer", "my/map","dojo/aspect","dijit/registry","dojo/_base/connect", "dojo/topic", "dojo/domReady!"], function(parser, borderContainer, contentPane, accordion, map, aspect,registry,connect,topic) { parser.parse(); var _map = addMapModule(); function addMapModule() { var _map = new map('mapDiv'); _map.initialize(); return _map; }; connect.connect(_map.map, 'onZoomEnd', function () { topic.publish('zoom/end'); }); });[/HTML]
... View more
11-22-2012
09:46 AM
|
0
|
0
|
1658
|
POST
|
Hi Rich, Thanks for you help and the code sample. Using the code, I able to add all the feature layers I want. topic.subscribe('zoom/end', lang.hitch(this, this.zoomEnd)); //Does esri.Map publish this? Yes, zoomEnd exist as a map event. Thanks once more. Eric.
... View more
11-22-2012
03:48 AM
|
0
|
0
|
1658
|
POST
|
Hi Rick, This is the code. the feature layer should be added in the zoomEnd based on scale. The event onZoomEnd is register and fires up setting the scale of the map in the appropriate place holder in the html page. Something like should get the new feature layer added: if (this.map.getScale() === 100000){ addFeatureLayer2(this.map); // where addfeatureLayer2 is should be pretty much the same as addFeatureLayer function. } Thanks. define(["dojo/_base/declare", "esri/map", "esri/layers/FeatureLayer", "dojo/_base/connect","dojo/topic", "dojo/_base/lang"], function (declare, esriLib, featureLib,connect,topic,lang) { return declare (null, { mapDivName : null, constructor: function (mapDiv,args) { topic.subscribe('dimension/changed', lang.hitch(this, this.resizeMap)); topic.subscribe('zoom/end', lang.hitch(this, this.zoomEnd)); this.mapDivName = mapDiv; }, initialize: function() { //var initialExtent = new esri.geometry.Extent({"xmin":-13050590.679808607,"ymin":3848824.1306140213,"xmax":-13033430.566958608,"ymax":3863366.2752452563,"spatialReference":{"wkid":102100}}); this.map = new esri.Map(this.mapDivName); var baseLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://xxx/xxx/rest/services/xxx/MapServer"); var opLayer1 = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxx/xxx/rest/services/xxx/xxx/MapServer", { opacity: 0.8 }); var opLayer2 = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxx/xxx/rest/services/xxx/xxx/MapServer", { opacity: 0.8 }); var opLayer3 = new esri.layers.ArcGISDynamicMapServiceLayer("http://xxx/xxx/rest/services/xxx/MapServer", { opacity: 0.8 }); this.map.addLayers([baseLayer,opLayer1,opLayer2,opLayer3]); this.featureLayer = this.addFeatureLayer(); this.map.resize(); this.map.addLayer(this.featureLayer); }, resizeMap: function() { this.map.resize(); this.map.reposition(); }, zoomEnd: function() { var s = dojo.byId("rightDiv"); s.innerHTML = this.map.getScale(); }, addFeatureLayer: function() { var info_content = "<table><tr><td><b>Band Number:</b></td><td style='text-align:right'>${BAND_NUMBER}</td></tr>" + "<tr><td><b>Service Center:</b></td><td style='text-align:right'>${SERVICE_CENTER}</td></tr>" + "<tr><td><b>Registered Population:</b></td><td style='text-align:right'>${REGISTERED_POPULATION}</td></tr></table>"; var infoTemplate1 = new esri.InfoTemplate("${BAND_NAME}", info_content); var featureLayer1 = new esri.layers.FeatureLayer("http://xxx/xxx/rest/services/xxx/xxx/MapServer/1",{ mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate: infoTemplate1, id: "OBJECTID", outFields: ["*"] }); return featureLayer1; } }); });
... View more
11-21-2012
06:24 AM
|
0
|
0
|
1658
|
POST
|
Hi, I would like to know if it is possible to add mant feature layers in the arcgis javascript api? When my web apps intitialize, I can add a feature layer, but I have not been able to add a second one. Thanks.
... View more
11-21-2012
04:38 AM
|
0
|
10
|
5834
|
POST
|
Hi Rich, Thanks for your help. The cause of the problem was a mistake in the path I had put in the dojo.js ans init.js. Thanks again.
... View more
11-07-2012
09:05 AM
|
0
|
0
|
330
|
Title | Kudos | Posted |
---|---|---|
1 | 11-27-2012 10:13 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|