|
POST
|
I trying to get the ILabelingDescription for an IMapServer3 layer and then use it for the AnnotationProperties of an IGeoFeatureLayer. My code for the getting the ILabelDescription is shown below: private ILabelingDescription GetLabelingInfo(int mapLayer) { IServerSymbolOutputOptions pSSOO = serverContext.CreateObject("esriCarto.ServerSymbolOutputOptions") as IServerSymbolOutputOptions; pSSOO.ConvertLabelExpressions = true; ILongArray longArray = serverContext.CreateObject("esriSystem.LongArray") as ILongArray; //new LongArrayClass(); longArray.Add(mapLayer); ILayerDrawingDescriptions lyrDrawDescs = null; lyrDrawDescs = (ILayerDrawingDescriptions)mapServer.GetDefaultLayerDrawingDescriptions(mapServer.DefaultMapName, longArray, pSSOO); ILayerDrawingDescription lyrDrawDesc = lyrDrawDescs.get_Element(0); IFeatureLayerDrawingDescription2 flDrawDesc = (IFeatureLayerDrawingDescription2)lyrDrawDesc; ILabelingDescription pLabelDescription = flDrawDesc.LabelingDescription; return pLabelDescription; } How can I apply this ILabelingDescription to IGeoFeatureLayer.AnnotationProperties? What casts are need? Thanks, Mele
... View more
12-20-2010
06:16 AM
|
0
|
0
|
1609
|
|
POST
|
I used the IRasterLayer.CreatefromRaster method with success. Thanks to both of your replies as this pointed me in the right direction. Mele
... View more
12-17-2010
02:39 AM
|
0
|
0
|
1143
|
|
POST
|
Thanks Robert. I will give this a shot. I couldn't find it so I appreciate your assistance with pointing me in the right direction.
... View more
12-15-2010
01:35 PM
|
0
|
0
|
1143
|
|
POST
|
I am using IMapServerDataAccess to get an IRaster using the following: IRaster raster = (IRaster)dataAccess.GetDataSource(mapServer.DefaultMapName, mapLayer); How do I then add that IRaster as an ILayer to ArcMap? I have tried casting IRaster to IRasterLayer with no luck. Do I need to cast the IRaster to another object first? Thanks for any assistance. I am working in C#, but will gladly take other samples if available. Mele
... View more
12-15-2010
10:48 AM
|
0
|
4
|
1475
|
|
POST
|
We have non Feature Linked Annotation which I am copying to the Feature Linked Annotation Feature Class with an ICommand. The feature linked anno shows water main size and material. Once copied, the FeatureID of the feature linked anno is calculated to the OID of the water main feature which contains its annotation. This procedure works well, but I am looking for a solution to update the annotation so that it reflects the current values in the related water main feature. Our current thought is to calc a value in a field in the related water main feature that is used to derive the feature linked annotation. What we would do is to calculate the value to itself and then this would trigger the update of the annotation. Is there any methods in ArcObjects that would update the annotation without having to calculate a value in the water main feature? Thanks, Mele
... View more
11-14-2010
04:48 AM
|
0
|
4
|
3356
|
|
POST
|
I currently have a SOAP Server Object Extension that is returning a string. The string is a pair of comma delimited coordinates, but what I really want to get back is an array of integers. What I have is something like this (with business logic removed) private string OffsetCoords(string StrName, int sp_x, int sp_y, string offsetDir, double offset) { return string } What I would like it to do is something like this private int[] OffsetCoords(string StrName, int sp_x, int sp_y, string offsetDir, double offset) { return int[] } Writing the business logic is not a problem, but what I am not clear on is what to return from my method. Does an integer array work in this case or is their a better type to use? Also, I am not clear on how to format the WSDL and the Imessage parameters to accept the data type returned by the method. I have the WSDL configured to return a string with the following code: <xs:element name="OffsetCoordsResponse"> <xs:complexType> <xs:sequence> <xs:element name="NewXY" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> And my code containing the Imessage is below where respMsg implements Imessage. string newCoords = OffsetCoords(StrName, sp_x, sp_y, offsetDir, offset); //fill response respMsg.Name = "OffsetCoordsResponse"; respMsg.NamespaceURI = c_ns_soe; respMsg.Parameters.AddString("NewXY", newCoords); Do I use AddObject to the Imessage.Parameters method and if so can you provide some structure? Thanks, Mele
... View more
10-06-2010
03:49 PM
|
0
|
0
|
812
|
|
POST
|
Will, Map services which show relates within the MXD is new in ArcGIS 10.0 http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/00930000000m000000.htm Mele
... View more
09-23-2010
08:07 AM
|
0
|
0
|
4356
|
|
POST
|
I needed to add the WSDL as a web service using the advanced properties in VS 2008 and not as a Service Reference. It is working now.
... View more
08-09-2010
08:17 AM
|
0
|
0
|
452
|
|
POST
|
We have an ArcGIS server Geometry Service and I would like to add it to a VS 2008 windows application and use the Project capabilities of the Geometry Service to project points from Lat/Long to State Plane. I have been successful at bringing the Geometry Service into the VS 2008 project as a servcie reference via its WSDL, but don't understand how to create an instance of the Geometry Service. The following link shows an example: http://resources.esri.com/help/9.3/arcgisserver/apis/soap/index.htm Geometry_GeometryServer pGS = new Geometry_GeometryServer(); I don't understand how the new Geometry_GeometryServer is created as it does not show in intellisense and errors when I tried to build the project. Please help with some code samples including and references and using statements needed. Thanks, Mele
... View more
08-08-2010
10:34 AM
|
0
|
1
|
789
|
|
IDEA
|
-->
Aligning annotation such as street names along a border is difficult while editing. It currently has to be done visually and not with snapping available with other editing functions. Allowing annotation to snap to other features would increase productivity while editing annotation.
... View more
08-07-2010
10:10 AM
|
8
|
2
|
1152
|
|
POST
|
Thanks for updating this. I had contacted support and I will forward the BUG number you gave to me.
... View more
08-06-2010
02:59 PM
|
0
|
0
|
4356
|
|
POST
|
I used the new Query Layer in ArcGIS 10 to create a 'table' from a feature class and then performed the relate on the newly created Query Layer and now can Query Related records in the ArcGIS Map Service. Is it a good practice to create a Query Layer agains the Feature Class or should I use a Multi-Version view or another method?
... View more
08-06-2010
08:29 AM
|
0
|
0
|
4356
|
|
POST
|
Thanks for the response and the information. I am still not able to get our relate to work. Does the related table need to be a stand alone table or can you relate two feature classes in your MXD? I noticed your example shows a feautre class related to a stand alone table. Thanks, Mele
... View more
08-06-2010
07:07 AM
|
0
|
0
|
4356
|
|
POST
|
I have set up a relate in a map service and would like to access that relate via REST. When I click on the 'Query Related Records' link in the map service and I am asked for the Object Ids, and the Relationship Id as shown in the attached image. Where do I find the Relationship Id and Object Id?
... View more
08-05-2010
09:40 AM
|
0
|
9
|
9109
|
|
IDEA
|
Work with Microsoft to allow ArcGIS Map Services to be used in SQL Server Reporting Services. SQL Server Reporting Services supports integrating maps, but it is very limited. Using our enterpise map services in SSRS would be beneficial and assist many in our organization.
... View more
07-26-2010
10:21 AM
|
42
|
13
|
5948
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-27-2026 09:23 AM | |
| 1 | 02-26-2026 06:47 AM | |
| 3 | 10-20-2025 05:21 AM | |
| 1 | 03-13-2015 04:39 PM | |
| 1 | 09-18-2025 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|