POST
|
Hey Viji, did you ever find a solution for this, I seem to have the same issue. DL
... View more
02-14-2017
11:05 AM
|
0
|
0
|
237
|
POST
|
Does anyone know how to create a partial circle? I have the center point radius and angle along which I need to draw it. Appreciate the help Dan
... View more
10-01-2012
01:13 PM
|
0
|
1
|
472
|
POST
|
Would anyone happen to know how we get the extent from a featureClass. I know we can get the extent by looping through each feature using a cursor, but that seems like an overkill. Is there a better way to get the extent? Appreciate any help. Dan
... View more
09-25-2012
05:31 AM
|
0
|
1
|
905
|
POST
|
Its all comming together , yes I have a polygon with no internal holes. I though the getBoundary() returns a polygon with the donut hole... So my question would be how do I get just the external ring of the polygon? vb
... View more
08-16-2012
12:33 PM
|
0
|
0
|
540
|
POST
|
Another question if someone knows the answer is why do I get so many points when I only use the polygon boundary to intersect the polyline. Shouldn�??t it just be two?
... View more
08-16-2012
08:56 AM
|
0
|
0
|
540
|
POST
|
I seem to get the intersecting points fine, my only issue is I cant seem to identify the point on the polygon edge. Getting the first and last point on the intersect point collection is not always the point on the edge of the polygon. That's what I'm still tryingto figure out.
... View more
08-16-2012
08:43 AM
|
0
|
0
|
540
|
POST
|
I have a polyline that passes through a polygon, I???m trying to get the two intersect points on the polygon edge. If I try to get the fist and last of what is returned for the intersect point collection I get inconsistent results. Does anyone have some input as what I might be doing wrong? I have my code block below. Appreciate the help vb
Polyline outGeometry = new Polyline();
IGeometryCollection geometryCollection = null;
if(geometryCollection == null) {
IGeometryBag geometryBag = new GeometryBag();
geometryCollection = (IGeometryCollection) geometryBag;
geometryBag.setSpatialReferenceByRef(mySpatialRef));
}
// union all your polylines
for(int i=0; i<featureList.size(); i++) {
geometryCollection.addGeometry(featureList.get(i).getShape(), null, null);
}
outGeometry.constructUnion((IEnumGeometry) geometryCollection);
((ITopologicalOperator) outGeometry).simplify();
ITopologicalOperator topo ;
geometry = ((ITopologicalOperator)geometry).getBoundary();
topo = (ITopologicalOperator)geometry ;
IGeometry intersects = topo.intersect((IGeometry) outGeometry, esriGeometryDimension.esriGeometry0Dimension);
IPointCollection Pts = (IPointCollection)intersects;
for (int j=0;j<Pts.getPointCount();j++){
tempIntersectPointList.addPoint(Pts.getPoint(j), null, null);
}
firstPointOnEdge = tempIntersectPointList.getPoint(0)
secondPointOnEdge = tempIntersectPointList.getPoint(tempIntersectPointList.getPointCount() - 1),
... View more
08-16-2012
08:05 AM
|
0
|
6
|
2987
|
POST
|
Should I just multiply by 180/pi to convert from radians to degrees and see if its greater than 90 degrees??
... View more
07-18-2012
12:51 PM
|
0
|
0
|
272
|
POST
|
I have three points from which I create a triangle, I use IConstructAngle constructThreePoint to get the angles of the triangle, my angles are returned as a double . Is there a way to tell if this in and obtuse angle triangle? I seem to have forgotten my math. GeometryEnvironment geometryEnvironment = new GeometryEnvironment(); IConstructAngle constructAngle = geometryEnvironment ; constructAngle.constructThreePoint(point1, point2,point3); thanks Dan
... View more
07-18-2012
12:45 PM
|
0
|
2
|
382
|
POST
|
Is there a way to extract the point collection of polygon geometry and make sure the point collection runs in anti clockwise direction?? Appreciate any feedback Dan
... View more
07-16-2012
08:15 AM
|
0
|
1
|
397
|
POST
|
I created a circle using ISegmentCollection ISegmentCollection SegCollection = new Polyline(); SegCollection.setCircle(myPoint, myRadius); I have a line that I created which intersects this circle, is there a way that I can split this circle(segment) using the line? and get two circular arcs along the split points ? Appreciate the help. Dan
... View more
07-09-2012
07:27 AM
|
0
|
1
|
614
|
POST
|
How can I programmatically tell if a polygon feature is a parallelogram?? Appreciate the help vb
... View more
04-09-2012
10:44 AM
|
0
|
3
|
663
|
POST
|
I???m trying to highlight my selected graphic when a user clicks on it but I seem to get an error at the line graphicsContainer.updateElement(pElem), Does anyone happen to know what I might be doing wrong. Appreciate the help. Vik try { IEnumElement enumElement = graphicsContainer.locateElements(point, LOCATE_ELEMENT_TOLARANCE); IElement pElem = null ; if (enumElement != null) { pElem = (IElement) enumElement.next(); graphicsContainerSelect.selectElement(pElem); //Change the color of the selected graphic IRgbColor pColor = new RgbColor(); pColor.setRGB(255); // red ISimpleFillSymbol pFillSym = new SimpleFillSymbol(); pFillSym.setColor(pColor); pFillSym.setStyle(com.esri.arcgis.display.esriSimpleFillStyle.esriSFSSolid); IFillShapeElement fillShapeElement = null; fillShapeElement = new PolygonElement(); fillShapeElement.setSymbol(pFillSym); pElem = (IElement) fillShapeElement; //Errors out here graphicsContainer.updateElement(pElem); System.out.println("Graphic Selected"); } System.out.println(" graphicsContainerSelect.getElementSelectionCount() " + graphicsContainerSelect.getElementSelectionCount()); mxDocument.getActivatedView().partialRefresh(esriViewDrawPhase.esriViewGraphicSelection, null, null); } catch ( Exception e ) { e.printStackTrace(); }
... View more
03-22-2012
01:17 PM
|
0
|
1
|
630
|
POST
|
You�??re partially right as that will just give me the last value of the shape geometry in the cursor, how do I union them when I have more than one record in my cursor result.
... View more
01-26-2012
10:17 AM
|
0
|
0
|
152
|
POST
|
I�??m trying to run a intersect spatial query (Feaure2) based on the attribute query results of my first feature (Feature1) I do an attribute search on my first feature , What I am returned from my attribute search is FeatureCursor, I how do I get the geomentry from a featureCursor to pass as my spatial query geometry. The is the function I want to pass my attribute geometry results into http://edndoc.esri.com/arcobjects/9.2/java/engine_samples/geodatabase.accessing_data.performspatialquery/example.html Appreciate the help. VB
... View more
01-26-2012
06:26 AM
|
0
|
3
|
713
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|