Tag Info

Hot answers tagged

5

I've had no issues with WPF in ArcGIS whatsoever. The question of chosing one of these technologies over the other is the same as in any other environment, be it ArcGIS or not. There are things to consider, though. If you want to use WPF as replacement for your forms, then you are definitely OK. If you'd like to use WPF in scenarios like e.g. docking ...


5

All the classes in this namespace (JsonWriter, ArcGISJsonWriter and ArcGISJsonReader) are internal to the ESRI.ArcGIS.Client assembly, so I suspect you won't be able to find any documentation. It is a bummer, though, because these classes do all sort of useful conversion between ESRI's WPF types (geometries, geoprocessing parameters etc.) and JSON. You can ...


4

Have you checked out the Legend in the Toolkit? See sample here: Legend with templates


4

Esri's Runtime for WPF supports WMS layers. It is not free, but the ArcGIS Silverlight SDK is and has many of the same capabilities. So you may want to try the Silverlight SDK in Out-of-browser mode, which is similar to running a WPF app. You need to set up a proxy though.


3

With featureLayers I think you need to reference a single layer in a map service or feature service. So, instead of: http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer try http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer/0 change the "0" at the end to match the layer you are interested in.


3

You might want to check out BiMserver. It's an open source building information model server. The Building Information Modelserver (short: BIMserver) projects creates software (the BIMserver software) that turns a computer/server into a ‘BIMserver’. A BIMserver enables you to centralize the information of a construction(or other building ...


3

The key to proper parenting of WPF windows within a non-WPF application is to use the WindowInteropHelper class. Suppose you have a WpfWindow class which is a WPF window (derives from Window): private void ShowWpfWindowModal() { var parentHandle = new IntPtr(_app.hWnd); // the ArcMap window handle var wpfWindow = new WpfWindow(); ...


3

suppose you have just one Layer, with the selected features & you want to zoom to the extent of all the selected features, here is how I would do it: IMapControl2 MapControl= (ImapControl2)_mapControl; IfeatureLayer FeatureLayer=MapControl.Layer[0]; IFeatureSelection FeatureSelection= (IFeatureSelection)FeatureLayer; ISelectionSet ...


2

Alright, so I discovered what this issue was. Feature services and map services have different URLs to access them on the server, and I was using a map service URL from an earlier version of the project to initialize my feature layer. Oops. http://mysite.mydomain.com/ArcGIS/rest/services/mymap/MapServer/0 ...


2

Try using the ControlsSelectFeaturesTool it works on features instead of ControlsSelectTool that work on graphics.


2

You could try this: List<IGeometry> geometries = GetGeometries() // However you retrieve your geometries double margin = 1.2; IEnvelope envelope = null; foreach (IGeometry g in geometries) { if (envelope == null) envelope = g.Envelope; else envelope.Union(g.Envelope); } envelope.Expand(margin , margin , true); ...


2

If you have one Path per Polyline you can do something like this: private void map1_MouseClick(object sender, Map.MouseEventArgs e) { if (map1.Layers["MyGraphicsLayer"] is GraphicsLayer) { GraphicsLayer glayer = (GraphicsLayer)map1.Layers["MyGraphicsLayer"]; IEnumerable<Graphic> graphics = ...


2

After some research I found the following solution: IGraphicsContainer pGraphicsContainer = _pageLayoutControl.GraphicsContainer; pGraphicsContainer.Reset(); IElement pElement = pGraphicsContainer.Next(); while (pElement != null) { if (pElement is IMapFrame) { IMapFrame pMapFrame = pElement as IMapFrame; IEnvelope pEnvelope = new ...


2

There is a binding sample from ESRI. Check it out: http://edndoc.esri.com/arcobjects/9.2/NET/a6eb84fb-93db-4bc3-82a9-874d8890a8ca.htm Same sample in ArcGIS 10 documentation


2

Might be overkill for what you're looking for, but ESRI's CityEngine may be worth a look. http://www.esri.com/software/cityengine/ Esri CityEngine provides professional users in architecture, urban planning, entertainment, GIS, and general 3D content production with a unique conceptual design and modeling solution for the efficient creation of 3D cities ...


2

Using ArcGIS Server and consuming a map service is one way. Or you can turn a Map (MXD) into a Map Package and consume this in the Runtime. You'll probably want to choose your solution based off 2 things: 1) will your app have internet access? 2) if you have internet, will you have an ArcGIS Server to host services. If the answer to either of those questions ...


2

How to create a map package - ArcGIS Runtime SDK for WPF Help Or did you mean programmatically? As @KHibma points out, map packages can only be created from Desktop, arcpy or ArcObjects, not the WPF Runtime.


2

If you need to add, update, delete features you will first need to publish a "Feature Service", you can do this while publishing your service, by enabling "Feature Access". Then depending on which programming language (Silverlight, Flex, iOS, Javascript, ... etc.) you're using, ESRI has a bunch of API's that allow you to access a Feature Service, to add, ...


2

Based on this error that you reported "Feature Access requires that the data be on SDE; other types of data sources are not supported", I'm assuming that your data is stored in either a file GDB, personal GDB or shapefile. If you are trying to edit data in a feature service, then your editable data has to be in an enterprise SDE database. Here is a link ...


2

The FeatureDataGrid is connected to a single GraphicsLayer or FeatureLayer (which inherits from GraphicsLayer), and uses the attributes to autogenerate column names. Mixing two layers that (probably) have different column names would look confusing on a single table, since some records would fill in some columns, and other records wouldn't. I think that's ...


1

Changing the parser from VBScript to python or Javascript may not be simple to automate. This object has not been exposed by ESRI within the arcpy library, see this ArcGIS Ideas page, however it may be automated via arcobjects/javascript via IAnnotationExpressionEngine getExpressionParser() object.


1

You can't open an .mxd file directly in the WPF runtime map control. However, you don't necessarily need ArcGIS Server to get it to work. Instead you can publish the map and associated data as a map package. You can create a map package with ArcMap. Then you will need to add a layer in your .xaml file for each layer in the .mxd file. Additionally, you may ...


1

I am assuming that by ESRI server you mean ArcGIS Server. From the documentation only Bing and OpenStreetMap are supported: http://www.telerik.com/help/wpf/radmap-overview.html However, it appears that a custom provider can be created to use ArcGIS Server map service. http://www.telerik.com/help/wpf/radmap-howto-custom-provider.html So if you are ...


1

I finally figured it out for the most part... XAML: <esri:InfoWindow x:Name="MyInfoWindow" Padding="2" CornerRadius="20" Background="{StaticResource PanelGradient}" Map="{Binding ElementName=MyMap}" ...


1

I was able to determine that the reason the code wasn't running right was because I needed to change GPFeatureRecordSetLayer("Input Locations") to GPFeatureRecordSetLayer("Input_Locations") Such a minor thing, and I must have looked at the URL for the local runtime server a dozen times and didn't think about this because the name of the input parameters in ...


1

In ArcObjects? Set the callout's AnchorPoint property to an IPoint at the desired map coordinates. VB example here: http://forums.esri.com/Thread.asp?c=93&f=993&t=303569#949615


1

as you want to create 3d buildings there are some open source alternatives. like osggis. see osggis screentshots here. you may also give a look at VTP. these will help you to build 3d buildings and stuff. after preparing the data you can use some opensource 3d webgis tools for rendering on browser. as you said you are new to GIS its better to seek a help ...


1

I don't know anything more about this than what it says on the page, but ARCHIBUS Geospatial Extensions for ESRI sounds like it might fit the bill. Incorporate a geospatial perspective directly within your ARCHIBUS Web Central dashboards to unlock the power of geospatial visualization for improved analysis, reporting, and decision-making


1

Few things to try: Make sure the selection enumerator is either non-recycling (see IEnumFeatureSetup, or otherwise copy the feature geometries prior to adding them to the geometry bag (via IFeature.ShapeCopy). Make sure all the input geometries, as well as the newly created Polygon have the same spatial reference. Make sure all the input geometries are ...


1

ESRI Documentation says that this method does not support GeometryBags. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//002m000003vn000000



Only top voted, non community-wiki answers of a minimum length are eligible