POST
|
Hello Ivo, I've been developing something that can be called ORM for ESRI geodatabases (any geodatabase, with some restrictions). http://sourceforge.net/projects/gisactiverecord/ Check the code out and tell me what you think. It's open source, so you can use it and even contribute if you wish.
... View more
07-22-2011
06:06 AM
|
0
|
0
|
124
|
POST
|
Hello guys, I'm having the same problem! Curtis, how did you rebuilt your partitions in Oracle? i've tried Travis test, selecting against my view, and i've got Error starting at line 1 in command: select OBJECTID from airway_segments where SDO_Filter(shape, SDO_Geometry(2003, 4326, null, SDO_ELEM_INFO_ARRAY(1,1003,3), SDO_ORDINATE_ARRAY(-180,-90, 180, 90))) = 'TRUE' Error report: SQL Error: ORA-13226: interface not supported without a spatial index ORA-06512: at "MDSYS.MD", line 1723 ORA-06512: at "MDSYS.MDERR", line 8 ORA-06512: at "MDSYS.SDO_3GL", line 1193 ORA-06512: at "MDSYS.SDO_3GL", line 1321 13226. 00000 - "interface not supported without a spatial index" *Cause: The geometry table does not have a spatial index. *Action: Verify that the geometry table referenced in the spatial operator has a spatial index on it. Any tips on how to proceed to do that? My problem is exactly the same as yours. I have a selectable layer in ArcMap, but all features are invisible. Thanks!
... View more
06-22-2011
07:47 AM
|
0
|
0
|
443
|
POST
|
Hello guys, I'm having troubles getting the correspondent IDataset value from a list of IDatasetName objects. Is there an easy way to do it? The simple QI from one another always returns null for me.
public IDataset GetDataset(string targetDatasetName)
{
if (DatasetNames.Count <= 0)
GetDatasetNames();
IDatasetName datasetName = DatasetNames.Find(IsDatasetName(targetDatasetName));
IDataset dataset = datasetName as IDataset; // this always returns null.
if (dataset == null)
throw new DatasetHandlerException(GeodatabaseMessages.DatasetCouldNotBeFound);
return dataset;
} Ideas?
... View more
08-02-2010
08:50 AM
|
0
|
2
|
335
|
POST
|
You probably need to Query Interface it. Something like this (in c#): ILayer layer = map.get_Layer(0); // use appropriate layer index IMapLayerInfo layerInfo = layer as IMapLayerInfo; // or // IMapLayerInfo layerInfo = (IMapLayerInfo)layer;
... View more
07-20-2010
05:09 AM
|
0
|
0
|
169
|
POST
|
I don't know how much ArcGis 10 is backwards compatible with 9.3.1 and 9.3, but ESRI usually show all changes made in Resource Center, in a specific page. I found interesting that many of the 9.3.1 programs were fully compatible with 9.3 and to some extent, 9.2 And I agree, it's pain to refactor code every 10 months or so 😛
... View more
07-06-2010
04:50 PM
|
0
|
0
|
144
|
POST
|
Hello valentino, ITopologicalOperator needs to have accurate ISpatialReference values, otherwise it may give bizzare results. Are you declaring the ISpatialReference for your graphics? You features might have Spatial Refrences, but what about the graphics?
... View more
06-30-2010
11:10 AM
|
0
|
0
|
267
|
POST
|
Thanks Kimo. So, I can assume that all outer rings will be clockwise? I don't care how they are built, by connecting points or converting a dxf, ArcGIS will always have outer rings in a clockwise fashion? Thanks
... View more
06-19-2010
05:47 AM
|
0
|
0
|
458
|
POST
|
I'm not sure if ArcMap will reload these objects based on interaction. I think they're setted while OnCreate event. I can be wrong, and I would like to know your results. Please share if our friend above idea works.
... View more
06-18-2010
09:18 PM
|
0
|
0
|
219
|
POST
|
hello guys I'm having trouble with some unit testing here. Check this out (all are snippets, not everything is in the same class). This is my constructor: public Memorial(PolygonClass perimeter) { if (!perimeter.IsClosed) throw new ArgumentException(Messages.PolygonOpen); if (perimeter.IsEmpty) throw new ArgumentException(Messages.PolygonEmpty); if (!perimeter.IsSimple) throw new ArgumentException(Messages.GeometrtyMustBeSimple); // usually getting an error here if (!OnlyLineSegments(perimeter)) throw new ArgumentException(Messages.PolygonWithCurves); this._Perimeter = perimeter; this._NorthPoint = FindNorthenPoint(); this._DistancesAndAzimuths = new List<IMeasure>(); } Here is the unit test: [TestMethod] public void TestFindNorthernPoint_SquareCC() { this.memo1 = new Memorial(BuildSquareCC()); IPoint p = new PointClass(); p.PutCoords(1, 1); Assert.AreEqual(p.X, memo1.NorthPoint.X); Assert.AreEqual(p.Y, memo1.NorthPoint.Y); } private PolygonClass BuildSquareCC() { object _missing = Type.Missing; IPoint p1 = new PointClass(); p1.PutCoords(0, 0); IPoint p2 = new PointClass(); p2.PutCoords(0, 1); IPoint p3 = new PointClass(); p3.PutCoords(1, 1); IPoint p4 = new PointClass(); p4.PutCoords(1, 0); IPoint p5 = new PointClass(); p5.PutCoords(0, 0); PolygonClass polygon = new PolygonClass(); polygon.AddPoint(p5, ref _missing, ref _missing); polygon.AddPoint(p4, ref _missing, ref _missing); polygon.AddPoint(p3, ref _missing, ref _missing); polygon.AddPoint(p2, ref _missing, ref _missing); polygon.AddPoint(p1, ref _missing, ref _missing); for (int i = 0; i <= polygon.PointCount - 1; i++) { Console.WriteLine("X: {0}; Y: {1}", polygon.get_Point(i).X.ToString(), polygon.get_Point(i).Y.ToString()); } return polygon; } So, are CC polygons NOT simple? Am I doing something wrong?? Thanks
... View more
06-18-2010
09:14 PM
|
0
|
4
|
1940
|
POST
|
I'm having issues with users exporting shapefiles from our corporate database and I wish to disable some tools that allow the user to do this. One of them being Right click on layer -> export data. How I can accomplish that? Also, how can I block an ArcToolbox tool? Is it possible? I was thinking to implement some sort of event listener and check for each tool/guid I want to disable. Thanks. George
... View more
05-19-2010
08:46 AM
|
0
|
1
|
1813
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|