|
POST
|
Christina, If the following extract is as exactly as you say it is then I'm guessing it is some sort of text file? Site Reference Lat Long
Achany Glen Dugmore et al. (1996) 57.983 -4.396
Beinn Eighe Dugmore et al. (1995) 57.63 -5.3 The problem is all the spaces and the computer is not intelligent enough to realise that the space in "et al." is part of "et al." and not a field delimiter. You need to ensure a consistent structure to your table with recognised delimiters such as a comma. I would recommend restructuring your text file to: "Site","Reference","Lat","Long"
"Achany Glen","Dugmore et al. (1996)",57.983,-4.396
"Beinn Eighe","Dugmore et al. (1995)",57.63,-5.3 Each field is separated by a comma and text is enclosed in "". Duncan
... View more
09-11-2013
01:21 AM
|
0
|
0
|
1761
|
|
POST
|
Kianar, What are you tasks? If it is using existing tools then python could be a solution. If you are doing serious number crunching then may be ArcObjects is the way. If you want fancy user interfaces then ArcObjects is what you need using VB/c# .net With the release of 10.1 ESRI created the Python Addin, this allows you to use your python coding skills with arcpy and create tool bars with buttons that can interact with the map. Have a look here. I've had a play with this and you can use all that is arcpy but you still cannot create an interface, although some python expert will hopefully tell me otherwise! Duncan
... View more
09-11-2013
01:12 AM
|
0
|
0
|
2152
|
|
POST
|
I don't think you can have an in-line substitution within an in-line substitution. So for example if you had: %name% = "fred" %id% = "33" Then a valid output name would be %name%_%id% which would create fred_33 An invalid scenario would be %name%id%% to correct this do %name%%id% Duncan
... View more
09-10-2013
07:05 AM
|
0
|
0
|
1767
|
|
POST
|
Have you looked on GIS StackExchange? There are several threads on boosting python performance, here is on page.
... View more
09-10-2013
06:47 AM
|
0
|
0
|
1840
|
|
POST
|
I have to admit I have never done a spatial join with field mapping but looking at the Help file it appears you create a fieldMappings object then add the tables. In your code you are not doing this, may be this is the source of the error? Duncan
... View more
09-10-2013
06:41 AM
|
0
|
0
|
2651
|
|
POST
|
I'm guessing you need your developer to create an extension that listens out for "on create of Feature" events. Look at the IEditEvents interface. This has an event handler that captures the on create of feature event which you could insert code to generate an ID in your field. Duncan
... View more
09-06-2013
08:43 AM
|
0
|
0
|
4116
|
|
POST
|
Bruce, Not come across that error before but as I interpret it, it is saying that pHELLayer exists already. Have you opened it in the other module you refer to? May be using the ReleaseInternals method on IGPUtilities may help? Duncan
... View more
09-06-2013
05:58 AM
|
0
|
0
|
1207
|
|
POST
|
Does each polyline measure start from zero (their from-end) and end at some length ( the length of the polyline, thus its to-end). If so you can create point events along each polyline with the route ID being the unique polyline ID (FID) field. The event distance would be the length of the line - 1 foot. So create a non-spatial table with a route ID field which would be the FID value and another field which would be the measure field. Hopefully your polylines are longer than 1 foot...
... View more
09-05-2013
07:45 AM
|
0
|
0
|
776
|
|
POST
|
Your link appears to be broken, can you correct it so we can understand what you are referring to?
... View more
09-02-2013
03:45 AM
|
0
|
0
|
568
|
|
POST
|
I assume you are using the IFeatureWorkspace interface to open the FeatureClass? This is pretty much instant in my experience, which suggests the problem is at the ArcGIS Server end. I don't know much about ArcGIS server but why not try your code to open a FeatureClass from a local file GeoDatabase. If your code executes faster then this would suggest a network issue or a bottle neck at the server end. May be someone else can offer advice?
... View more
09-02-2013
03:38 AM
|
0
|
0
|
814
|
|
POST
|
Mele, The Append geo-processing tool should honour any existing selection. I think you need to provide the Append tool TableViews or FeatureLayers as the inputs which have the selection rather than the underlying table/featureclass. Duncan
... View more
09-02-2013
03:27 AM
|
0
|
0
|
567
|
|
POST
|
I have yet to develop an engine application but I know one needs to initialize ArcObjects as the first thing you must do before calling any ArcObjects, have you done this? Look on the forums for IAoInitialize. Whilst searching I found references to Binding to RuntimeManager not sure if you need to do that to?
... View more
08-23-2013
03:56 AM
|
0
|
0
|
1207
|
|
POST
|
Are the fields of different type? Are you trying to join a string field to a numeric?
... View more
08-22-2013
07:34 AM
|
0
|
0
|
1207
|
|
POST
|
OK had a look at your code and you were getting the enumerate from the wrong layer. But I found reading your code a bit out of sync so whilst trying to understand I re-jigged and simplified so its easier. Also put some comments in! I had to fake some data to make it work (selected points selecting polygons) and I use different layer names and positions so this code does not replace your existing code. You need to look at this and see the key changes to understand where you were going wrong. Public Sub SelectSchoolDistrict() Dim pMxApp As IMxApplication Dim pMap As IMap Dim pMxDoc As IMxDocument Dim pActiveView As IActiveView Dim pEnumFeature As IEnumFeature Dim pFeature As IFeature Set pMxApp = Application Set pMxDoc = Application.Document Set pActiveView = pMxDoc.FocusMap Set pMap = pMxDoc.FocusMap ' Get first layer and the selected ID's Dim pFeatureCursor As IFeatureCursor Dim pFeatureSelection As IFeatureSelection Dim pSelectionSet As ISelectionSet Dim pFeatureLayer As IFeatureLayer Set pFeatureLayer = pMxDoc.FocusMap.Layer(0) ' A point layer Set pFeatureSelection = pFeatureLayer Set pSelectionSet = pFeatureSelection.SelectionSet Dim pEnumParcelIDs As IEnumIDs Set pEnumParcelIDs = pSelectionSet.IDs ' Load selected points into geometry bag Dim pGeoColl As IGeometryCollection Set pGeoColl = New GeometryBag Dim pPoint As IPoint Dim id As Long id = pEnumParcelIDs.Next Do While id <> -1 Set pFeature = pFeatureLayer.FeatureClass.GetFeature(id) Set pPoint = pFeature.Shape pGeoColl.AddGeometry pPoint id = pEnumParcelIDs.Next Loop Dim pGeom As IGeometry Set pGeom = pGeoColl ' Get layer Dim pISDLayer As IFeatureLayer Dim ISDcount As Integer For ISDcount = 0 To pMap.LayerCount - 1 Set pISDLayer = pMap.Layer(ISDcount) If pISDLayer.Name = "Display Index" Then ' A polygon layer Exit For End If Next Dim pISDfSel As IFeatureSelection Set pISDfSel = pISDLayer ' Create spatial filter Dim pSpatialFilter As ISpatialFilter Set pSpatialFilter = New SpatialFilter With pSpatialFilter Set .Geometry = pGeom .GeometryField = "SHAPE" .SpatialRel = esriSpatialRelWithin End With ' Do selection and refresh map pISDfSel.SelectFeatures pSpatialFilter, esriSelectionResultNew, False pActiveView.Refresh End Sub
... View more
08-22-2013
06:56 AM
|
0
|
0
|
973
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 3 | a month ago | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|