New answers tagged

0

I suspect the error is related to how you set your input features. Have a look at How to use multiple inputs, it gives examples in c# and vb.


0

It think this is the simplest way to add each value in a loop, rather than binding the DataGridView to a list. Your screenshot looks like you already have a column defined, if that's the case, ignore the first line: myDataGridView.Columns.Add("Wellname", "Wellname"); while (pfeat != null) { fields = pfeat.Fields; int x = fields.FindField("NAME OF ...


0

You should be able to set the Datasource for your DataGridView to your list. I would refresh afterwards, though I don't know if that's necessary or not: myDataGridView.DataSource = list; myDataGridView.Refresh();


0

For my case, I am calling the DrawArrowedLine() method twice - once from A to B, and another time from B to A, so I can simply set an Offset value. cartoLineSym.Offset = 5;


0

In C# you can examine each pixel of the resulting map (which comes in as a byte array), count the number of pixels of each colour and check if there's an abundance of grey. The principle probably applies in other programming languages, providing you have the right image analysis capabilities. A valid satellite image would have many colours appearing ...


1

I have tested the basemap you have shared within the CartoDB Editor and it works at zoom level 19, but as you pointed out it does not work at zoom 20 (there are not tiles).


0

I think the problem is your output. If you look at the help for this tool the syntax section clearly states the output is a FEATURECLASS. You are providing a string which is the browse name + "MRB", so if your dataset you are buffering was called city then the output name is cityMRB. As you can see from my example your string does not say where to create ...


-1

fs = (FeatureSet)FeatureSet.Open(Application.StartupPath + "\\MapFile\\Land.shp");


3

I've used Richie Carmichael's code from his blog post. In a later post he said he fixed some memory leaks and uploaded to arcscripts, however that link is broken. I'll look for the code - I think I downloaded it years ago. Anyway, here is the code from his first post. Take a look at the azimuth outputs. The code uses the "projection engine" dll. I've ...


2

Below is some VBA code that shows you how to open the Item Description window from the first layer in the TOC. Public Sub OpenItemDescription() ' Get Application Dim pApp As IApplication Set pApp = Application ' Get Map document Dim pMXD As IMxDocument Set pMXD = ThisDocument ' Get Map Dim pmap As IMap Set pmap = pMXD....


1

One problem I see (which could just be how the code was copied into the question) is the const pPath quoted string is not properly formed (needs quotes front and back.) Likely that was just a typo, and not the real source of the problem... However, the loadComboBoxOn() appears to build an image array out of a list of layer names...but I don't see where ...


0

You could look at: var jsonSerializer = new NetTopologySuite.IO.GeoJsonSerializer(); jsonSerializer.Deserialize(...)


0

Nobody ? I don't find any solution on the Web. Just as a reminder, I've a street that is defined as a MultiLineSeries on Oracle SIG. On this layer, I've a street with some hole like the schema above with the two black lines. When I represent this layer on my projet as a VectorLayer, the start point and end point are linked by the red line, and I don't ...


0

This was answered on the ESRI forum but I thought I'd repeat it here. It is an issue with the Joined table. Regardless of defining the field with the layer or table name the symbology fails to find the field. As soon as the joins are removed (and if the focus field is in the rendered layer) then the rendering happens correctly. So to get around this I now ...


0

The way to move text elements around the page layout is to use ITransform2D. Below is some VBA showing how to do it: Public Sub TextElementExample() ' Get map document Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument ' Get Pagelayout Dim pPageLayout As IPageLayout Set pPageLayout = pMxDoc.PageLayout ' Get Graphics container ...


2

There's a few problems here. First IMxDocument.FocusMap is read only, you can't change the extent from here, use IMxDocument.ActiveView instead. Instead of projecting your point (point.Project(spatRef);) you need to set it by using IPoint.SpatialReference (inheritied from IGeometry class): point.SpatialReference = spatRef; I have found it better to pan an ...



Top 50 recent answers are included