|
POST
|
dear Readers, thank you for taking the time to read it. some of my users want to add imagery from their hard drive (local or network disk) to Silverlight UI while working on their workstations. I thought there were security restrictions built in SL to prevent it. https://community.esri.com/message/39492#39492 - seemed to be in line with my request, but I could not use it. does this let the users add images: https://developers.arcgis.com/silverlight/sample-code/start.htm#ToolkitAttachmentEditor and still view it? thanks for your suggestions. regards ravi.
... View more
04-28-2015
03:38 PM
|
0
|
1
|
3334
|
|
POST
|
Yue Wu, good afternoon. thanks for your suggestions. I will get in touch with my server admin and get back to you. regards ravi.
... View more
09-03-2014
02:16 PM
|
0
|
0
|
816
|
|
POST
|
dear Readers, a web application we created is running in our VM machines - but not in the control environment browsers. after fighting with a few browsers, I gave up on IE 11.x - both regular desktop and VM server. Firefox (v17) on the controlled environment did not open the attribute panel and debug session indicated the following error: code 400, column 402, line 619, file name: http://js.arcgis.com/3.10/ unable to complete operation. geometry is not z-aware. the same web app url fro VM machine's firefox v 31 does not report these issues. Background info: editor tool from esri in js was used to create features and open attribute panel. using esri;'s help, we had modified the workflow to auto fill a few attributes using MyFeatureLayer.on('before-apply-edits', function(edits){ edits.Field1 = myKnownVaule; .... } this attribute panel does not open for new features. regards, Ravi
... View more
09-02-2014
02:35 PM
|
0
|
2
|
4346
|
|
POST
|
to explain it better: there is a field called user_id in the layer table - the users will be authenticated using a USDA wide e-auth credentials and that would supply the user name and related information. that information will be available to the javascript page from .aspx. I used the following syntax var pageUserNameFromEauth = eauthpassedfromaspxpage; var myLayerInfo = [{ ... .... 'fieldInfos' : [ {....}, {....} {'fieldName': 'User_id', 'isEditable': true, 'tooltip': 'User name from eauth', 'label': 'User Name:'} I want a way to say {'fieldName':...... 'UserName', 'value': pageUserNameFromEauth} and I am not able to assign the value. regards ravi.
... View more
07-16-2014
12:05 PM
|
0
|
0
|
657
|
|
POST
|
dear Readers, using the js samples https://developers.arcgis.com/javascript/jssamples/ed_simpletoolbar.html - we were able to have an app, create records directly in sde/ sql server using feature service. we are capturing the user information in the .aspx page using custom security to used in usda. we have figured out a way to transport those values to the js page - but we are trying to populate user id, date n other information that can be programmatically obtained tried 'value' : 'our test value' - no luck. regards ravi.
... View more
07-15-2014
03:44 PM
|
0
|
1
|
931
|
|
POST
|
dear Readers, I was looking for examples to do the following: 1. using arcmap 10.0 using geoprocessor function call a webservice in a GP server: [h=2]DataExtract (GPServer) Service Description: Data extraction tool Tasks: Data extract Execution Type: esriExecutionTypeAsynchronous Result Map Server Name: MaximumRecords: 1000 The Data Extract contains an input param of current extent: Parameters: Parameter: aoi Data Type: GPFeatureRecordSetLayer Display Name aoi Description: aoi Direction: esriGPParameterDirectionInput Default Value: Geometry Type: esriGeometryPolygon HasZ: false HasM: false Spatial Reference: 4326 (4326) Fields: FID ( type: esriFieldTypeOID , alias: FID ) Id ( type: esriFieldTypeInteger , alias: Id ) Shape_Length ( type: esriFieldTypeDouble , alias: Shape_Length ) Shape_Area ( type: esriFieldTypeDouble , alias: Shape_Area ) Features: None. Parameter Type: esriGPParameterTypeRequired Category: How do I get my current extent and send them as a feature recordset layer to this service the other input to this service is a table name as present in the feature service in the same arc gis server. sample code in .net for arcobjects arcmap 10.0 would be great; the gp service is on a 10.21 arc gis server. regards ravi.
... View more
04-11-2014
02:00 PM
|
0
|
1
|
923
|
|
POST
|
CODE Works with problem:
�??
�??
IWorkspaceFactory pWorkSpaceFactory4ExpFunc;
IWorkspace pExportWorkspace;
IWorkspaceName pExportedDataWorkspaceName = newWorkspaceNameClass();
IDatasetName pExportTargetDSName;
�??
pWorkSpaceFactory4ExpFunc = (IWorkspaceFactory)CommonFunctions.ReturnFileGeoDBWorkspaceFactory();
pExportWorkspace = CheckOrCreateFileGeoDBInInteropFolder(pWorkSpaceFactory4ExpFunc);
�??
IFeatureWorkspace ifwsFeatureWorkspace = (IFeatureWorkspace)pWorkSpaceFactory4ExpFunc.OpenFromFile(_strDataInteropFldrNameWOTrailingBackSlash + @"\ExportFDGB.gdb", 0);
IFeatureDataset ifsFeatDataSet4ExpHolder = null;
�??
IEnumDataset dslistInExpWS = pExportWorkspace.get_Datasets(esriDatasetType.esriDTFeatureDataset);
IDataset dsDatasetpresentinFileGeoDB = dslistInExpWS.Next();
while (dsDatasetpresentinFileGeoDB != null)
{
if (dsDatasetpresentinFileGeoDB.Name == pSpatRefernce4FeatDS.Name)
{
ifsFeatDataSet4ExpHolder = (IFeatureDataset)dsDatasetpresentinFileGeoDB;
}
dsDatasetpresentinFileGeoDB = dslistInExpWS.Next();
}
if (ifsFeatDataSet4ExpHolder == null)
{
ifsFeatDataSet4ExpHolder = ifwsFeatureWorkspace.CreateFeatureDataset(pSpatRefernce4FeatDS.Name,
pSpatRefernce4FeatDS);
}
IDatasetContainer idsContainer4ExportInFileGDB;
idsContainer4ExportInFileGDB = (IDatasetContainer)ifsFeatDataSet4ExpHolder;
pExportWorkspace = (IWorkspace)ifsFeatDataSet4ExpHolder.Workspace;
pExportedDataWorkspaceName.PathName = pExportWorkspace.PathName;
�??
pExportedDataWorkspaceName.BrowseName = ifsFeatDataSet4ExpHolder.BrowseName.ToString();
pExportTargetDSName = newFeatureClassNameClass();
pExportTargetDSName.Name = "Exp" + _strLayerTblNameSelected.Replace(".fdl", ""); //name of the shapefile
pExportTargetDSName.WorkspaceName = pExportedDataWorkspaceName;
IEnumDataset iedsEnumDS2bDeleted = pExportWorkspace.get_Datasets(esriDatasetType.esriDTAny);
First point It breaks:
idsContainer4ExportInFileGDB.AddDataset(pDataSetFromFDL2FC);
2nd option I tried: it breaks again in the operation function:
IExportOperation pExportoperation;
pExportoperation = newExportOperationClass();
�??
�??
pExportoperation.ExportFeatureClass(pDatasetFromFDLFullName, null, null, null, (IFeatureClassName)pExportTargetDSName, 0);
//export layer - end
... View more
04-02-2014
03:21 PM
|
0
|
0
|
315
|
|
POST
|
Using FME / Safe software an ESRI add in is able to get data from the servers - Arc Map 10.0 is not able to consume feature services from Arc Servers 10.2 or higher. After getting esri's help we were able to add interop layer into arcmap. the app is current exporting the features present in the wfs/interop layer to a file geodatabase. the users want the app to export these features to a feature dataset inside the file geo database. (IExportOperation class) I searched around and found that BrowseName and IDatasetcontainer are the 2 things that I need to work on. to keep it simple, I have named the feature dataset to be spatial ref name as it will b unique for the file geodb. any help will be greatly appreciated. regards ravi.
... View more
04-02-2014
03:18 PM
|
0
|
1
|
544
|
|
POST
|
dear Readers, thanks for taking the time to read it. Our Silverlight app is working fine. we have 1 issue - do not know the best way to resolve it: when user clicks on the Silverlight map, if the clicked point happens to be a graphic attached to a feature layer, then the feature graphic is selected for 'editing' - during this process new attribute panel (custom created) will open. Before the point on the map is clicked, the app displays a narrow panel that has state names /county names/ and entity numbers listed as combo boxes. if the point happens to b a graphic point associated with a feature editable layer service, a different wider 'custom' panel is opened by the app. PROBLEM: if the panel covers the clicked point, then the Map_MouseLeftButtonUp is not fired and the point is not released from selection and sticks to the mouse. Map_MouseLeftButtonDown function, the map point is evaluated and identified to see whether it is associated with a feature layer graphic and if yes, an attribute panel is opened. to reproduce, on the map_mouseleftButtonDown, on graphic =true, open a panel - once we know the extent of the panel to b opened, center the map to ensure that the proposed point will be 'covered' by the new panel and select the graphic. the graphic will stick to the mouse and the users have no way to let it go. any ideas or work around will be good. regards ravi.
... View more
04-01-2014
11:16 AM
|
0
|
1
|
563
|
|
POST
|
dear Readers, thank you for taking the time to read through this. Intent of the application. We have many layers used by our field officeers nationwide. we want to create a single javscript based 'markup' app for all data layers to inspect and identify data accuracy issue at a specificied place. we want to store this data in SQL 2008/2012. We have code to load the layers, create graphics on JS map. NEED HELP with the following: what is the best way to send across this new pt, line or polygon to a .net object and then save it to SQL. we also have code to take that geom object from .NET server object to sql 2008 or 2012. We need the way to 'package' it from JS and ship it to the .net server object. We need sample code for either JS to .NET server obj or JS to GP/Python. regards ravi.
... View more
03-12-2014
09:04 AM
|
0
|
1
|
745
|
|
POST
|
Please see my reply on Sep 04th: it works like a piece of cake after implementing the steps. http://forums.arcgis.com/threads/91035-What-IDEs-are-people-using-for-JavaScript-development After that I have un-installed aptana studio. regards ravic
... View more
03-12-2014
08:41 AM
|
0
|
0
|
790
|
|
POST
|
Dear Readers, thanks a lot for taking the time to read this post. Using ArcObjects with C# in VS 2010, I was able to create a .FDL (interop extn black box file) mimicking the clicks of a 'Add Interopability Layer' and dropping the same in c:\users\...\AppData\Roaming\SAFE Software\Interoperability folder. Users are able drag and drop the Interop Layer if a .lyr file does not exist in the same folder - if a .lyr file exists with the same name as the MyWFSLayerFromServer.fdl - then MyWFSLayerFromServer is added to TOC.
IGxLayer gxlGXLayerCls = new ESRI.ArcGIS.Catalog.GxLayer();
IGxFile gxFile = (ESRI.ArcGIS.Catalog.IGxFile)gxlGXLayerCls; //Explicit Cast.
gxFile.Path = strLYRFile2BLoadedAsFeatLayerInParam;
_pMxDoc.AddLayer(gxlGXLayerCls.Layer);
Now, how to export this newly added gxlGXLayerCls layer to a PGDB or FGDB or even a shapefile for starters. I looked at IFeatureDataConverter class and that .ConvertFeatureClass wants an inputFeatClassName and that is driving me crazy. regards ravi.
... View more
02-27-2014
06:51 AM
|
0
|
0
|
596
|
|
POST
|
dear Readers, most of the users in the field are using ArcGIS 10.0 (Win 7 - mostly 64bit) and the central office servers are in version 10.2. Data served from the feature services from these servers are not visible to arcgis 10.0 clients in the field. ArcGIS 10.1 client is able see these feature services. But the field offices should remain in ArcGIS 10.0 for other application considerations. So I was told that Interoperability Connections item in Catalog list is the way to go. Using Add Interoperability connection menu, I was able to study how MyLayer.FDL file was created in <users>\AppData\Roaming\Safe Software\Interoperability folder and was able to programmatically create the .fdl file in the Safe Software directly as though it was created by hand using Add Interoperability connection command. This automated process was created as an Add-in button. Users liked what they saw till they started using the WFS layers. Name of the fdl file was forced to be the tablename in from the authoritative data service. Add in button would add the layer IGxLayer if the .lyr file was present with desired symbology. If the .lyr did not exist in the <users>\....\Interoperability folder, then users could drag it from the catalog window\Interoperability Connection listing for the 1st time. WFS layer is currently served out in 1 projection 4326 (WGS 1984). Now users want the wfs layer data in 4269 projection to intersect using an existing enterprise arcobject application function - arobjects based function is not able to intersect with another 4269 (NAD 1983 Geog). The user have to load it in ArcMap/ArcCatalog UI to perform the intersection. Sometime back one of ESRI tech reps told me that ArcMap UI engine is smart enough to do these intersects using different routes and the same functions/routes WILL not be available to arcobjects programmers. that explains why the users will be able to intersect in ArcMap/ArcCatalog UI. QUESTION: 1. How do i reproject the IGxLayer added from 4326 as served from the server to 4269 using ArcObjects? 2. Will ArcObjects treat WFS feature services layer very similar to a featurelayer? code I have got... i will paste after i load the IGxLayer into TOC UI.
IGxLayer gxLayerCls = new ESRI.ArcGIS.Catalog.GxLayer();
IGxFile gxFile = (ESRI.ArcGIS.Catalog.IGxFile)gxLayerCls; //Explicit Cast.
gxFile.Path = strFile2BLoadedAsFeatLayerInParam;
_pMxDoc.AddLayer(gxLayerCls.Layer);
//Works GREAT TILL the above line.
IFeatureLayer2 featLayer2BReprojected = new FeatureLayerClass();
featLayer2BReprojected = (IFeatureLayer2)_pMxDoc.FocusMap.get_Layer(0);
ISpatialReferenceFactory pSpatialRefFact = new SpatialReferenceEnvironment();
ISpatialReference4 pSpatialRef ; //= new SpatialReferenceEnvironmentClass.
IGeographicCoordinateSystem2 pGeogCoordSysNAD83_4269 = (IGeographicCoordinateSystem2);
pSpatialRefFact.CreateGeographicCoordinateSystem(4269);
IGeoDataset pGeoDataset = (IGeoDataset)featLayer2BReprojected.FeatureClass;
//THIS pGeoDataset is empty. STOPPED HERE.
IGeoDatasetSchemaEdit2 pGeoDSSchema = (IGeoDatasetSchemaEdit2)pGeoDataset;
pGeoDSSchema.AlterSpatialReference(pGeogCoordSysNAD83_4269);
... View more
02-13-2014
11:24 AM
|
0
|
0
|
618
|
|
POST
|
there is one more link that explains these concepts in detail; i do not know whether they apply to VS express. http://blogs.msdn.com/b/webdev/archive/2012/03/15/vs11-beta-javascript-feature-comparison-with-vs2010sp1.aspx regards ravi.
... View more
02-10-2014
11:59 AM
|
0
|
0
|
913
|
|
POST
|
I was in this situation many months ago; nobody could tell me how to get intellisense in js functions in aptana. so i looked around and saw this link: last reply in this thread: http://stackoverflow.com/questions/13204428/visual-studio-2012-javascript-intellisense-not-working. After that i had uninstalled aptana because we had a paid visual studio license. the last but one reply in the above link enables the users to refresh the references. after we have been able to use js documentation. if the above suggstion does not work for visual studio express, then i have no suggestions to help. regards, ravi.
... View more
02-10-2014
11:47 AM
|
0
|
0
|
913
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-13-2013 07:52 AM | |
| 1 | 09-10-2013 02:15 PM | |
| 1 | 03-20-2023 06:38 AM | |
| 1 | 05-17-2022 07:41 AM | |
| 1 | 01-04-2021 10:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-10-2025
08:54 PM
|