|
POST
|
Duncan solution is good. If it were me I'd wanna parse out the data first. Specially if I wanted to use it for a lot of querying and the data wasn't subject to a lot of updates. If you can create a facilityType column and take all the parts after "-->" (field calculator with some vbscript can do that.) Then you could query the facility types with the arcmap attribute selection and wouldn't have to write a stitch of vba code. Indexing the facilities type column would help performance with large datasets.
... View more
06-07-2011
06:03 AM
|
0
|
0
|
1163
|
|
POST
|
I can run this no problem with ArcGIS10 Sp1. esriregasm.exe <path.dll> /v:10.0 /p:desktop /s Perhaps it is a problem with the assembly itself? Cheers
... View more
06-07-2011
05:47 AM
|
0
|
0
|
2426
|
|
POST
|
Have you tried a TextFileWorkspaceFactory? http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001p0000000t000000
... View more
06-06-2011
12:54 PM
|
0
|
0
|
689
|
|
POST
|
try/catch blocks. Any code which handles events, such as create, click or in the class constructor (new), mouse down, etc. should have try catch blocks. You can pop the exception in a message box or write it to the trace. It should help you to figure out what is wrong and hopefully prevent arcmap from crashing.
... View more
06-06-2011
12:44 PM
|
0
|
0
|
1020
|
|
POST
|
Not all featureclasses belong to a feature dataset. It is entirely possible that it is a standalone featureclass. In that case featuredataset property will be nothing. However, you can get the workspace from the featureclass directly by casting the featureclass to Idataset. Dim SSIMdataset As ESRI.ArcGIS.Geodatabase.IDataset = CType(SSIMfeatureClass, ESRI.ArcGIS.Geodatabase.IDataset)
... View more
06-06-2011
04:54 AM
|
0
|
0
|
690
|
|
POST
|
If you are dealing with a layer, you need to cast it to Ifeaturelayer and retrieve the featureclass. Cast the featureclass to Idataset and get the workspace. The workspace type returned from the Ifeaturelayer as idataset may not implement iworkspace2. If the featureclass is not annotation or in a topology or network, you should be able to edit it outside an edit session.
... View more
06-03-2011
10:27 AM
|
0
|
0
|
690
|
|
POST
|
I assume you have arcgis desktop installed too. If you remove the missing reference from your project and add a new one, it should be list under the .net tab in the add reference form. The version numbers of the assemblies have changed between 9.3 and 10 so you need fix the references.
... View more
06-02-2011
01:14 PM
|
0
|
0
|
783
|
|
POST
|
((Ifeatureclass)Feature.class).featuredataset Also for removing the schema database or owner use IsqlSyntax.ParseTableName. ISqlSyntax is an interface on the workspace, the workspace can be optained by casting the featureclass to Idataset.
... View more
06-02-2011
11:00 AM
|
0
|
0
|
625
|
|
POST
|
As for sliver polygons, I find the area to perimeter (length) ratio to be the best. Slivers tend to be bellow an area threshold and have a low area to length ratio.
... View more
06-02-2011
06:27 AM
|
0
|
0
|
1873
|
|
POST
|
The problem depends on what you consider width and height. Technically speaking, with complex polygons, there is not such thing as height. There is the longest diagonal and perhaps the complement diagonal. If your polygon has only four vertices than it becomes a tetragon or quadrilateral, if all the angles are 90 degrees it is a rectangle. If you can reduce your polygons to 4 vertices (taking out vertices where the angle is close to 180 degrees for example) you can get a rectangle or a pseudo rectangle if the angles are close enough to 90. Once you have a rectangle, pick any corner and calculate the distance to the next vertex and to the previous vertex (a line between two vertices is a ILine). That should get you width and height. If you have large polygons near one of the poles, depending on the coordinate system you would get different results depending on which vertices you start with, perhaps an average would be appropriate. As to which is the width and height, that depends on you definition of them (longest, most north-south, perpendicular to a road, etc.)
... View more
06-02-2011
06:24 AM
|
0
|
0
|
1873
|
|
POST
|
Thanks again, You very well might need that interop, but I did manage to get the custom tools installed on a client that only has ArcGIS 10 installed (ie, no .NET Support SDK is listed in the Add/Remove programs list). One thing to note/consider is that I am finding many organizations are implementing tight control over the IT infrastructure --- this means that very few have Admin rights in order to install and or register things as you suggest. This makes things quite difficult because as a developer, never do things go as planned and there always seems to be hiccups along the way. Case in point: when an install fails, it becomes a complex issue to debug simply by the nature of how the IT policies in place affect how that debug would work. That is, I have to debug THRU the IT department now because I do not have admin rights to install things! Hope that makes sense. But this is something that I think more and more developers will have to deal with as IT policy within organizations become more and more restrictive. I hear you, it is becoming more of a hassle. I think that is what the addin model is supposed to address.
... View more
06-01-2011
05:47 AM
|
0
|
0
|
2337
|
|
POST
|
Sounds like the license was not properly initialized or a problem with binding to the product. ArcGIS 10 has new binding to the product requirements as well as initializing a license. If you don't do both those things before calls to ArcObjects components you will get initialization errors.
... View more
06-01-2011
04:31 AM
|
0
|
0
|
586
|
|
POST
|
You can also manually copy the assemblies and use ESRIRegAsm to see if that gives you any more information. If it is missing references you will get errors. In some cases running a .net msi over the network can give problems, so that is another thing to check. I still think you need the .net interop installed but with 10 I am not sure, the dotnet folder is not in the install folder any more, I would have to read up on the new things. Cheers
... View more
05-31-2011
12:16 PM
|
0
|
0
|
2337
|
|
POST
|
The option shows up on first install if you have the microsoft .net framework installed. I am not sure about modify. Do you have the microsoft Framework 2.0 or higher installed?
... View more
05-31-2011
10:36 AM
|
0
|
0
|
2337
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-02-2024 10:26 AM | |
| 1 | 07-05-2024 08:45 AM | |
| 1 | 10-05-2022 02:19 PM | |
| 6 | 03-27-2017 01:16 PM | |
| 1 | 05-05-2016 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-28-2025
07:37 AM
|