Tag Info

Hot answers tagged

2

ArcGIS Online has a full REST API: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r300000267000000 It's also worth mentioning, that the ArcGIS Runtime SDK for WPF and upcoming successor ArcGIS Runtime SDK for .NET provide .NET APIs for interacting with ArcGIS Online items (among many other things).


2

Thanks for sharing your module. You have mentioned a number of places yourself so let's try to summarize: communitydownloads.pbinsight.com: The Pitney Bowes Software site for sharing tools and source code for all our products MapInfo-L on Google Groups: the mailing list for a questions related to MapInfo products. It has been around for two decades and it ...


2

You need to access the active document in order to get access to layers. Create a reference to the document using your IMxApplication object (pMxApp): Dim pMxDoc as IMxDocument = pMxApp.Document Then access layers through focusmap: Dim pLayer as ILayer = pMxDoc.FocusMap.Layer(i) Where "i" is the index of your layer.


1

Full Code. Basically the code loops through polygons, selects the exterior ring, copies the OID of a line feature class to a list that intersects the exterior rings. then loops through a line feature class looking for feature codes then based on the feature code that has the longest accumulated segment length, puts the feature code attribute into the ...


1

Polygons are made from rings. I think you want to take the exterior ring from a polygon and make a new polygon from just the exterior: // earlier in the code.. pGeometry = pPolyFeature.Shape; // don't do this, it can have side effects pGeometry = pPolyFeature.ShapeCopy; // do this. // you've got this mostly right IGeometryCollection pPolyGeoCollection = ...


1

It is simple but you must fool a bit. Feed in your lat/lon or lon/lat depending on your WMS version. Use the point as lower-left corner of BBOX and add some little number for getting the upper-right corner. Ask always for WIDTH=2 and HEIGHT=2 and pixel coordinates 1 and 1. All you need to edit ever is the BBOX. Here comes the request as exploded. I added ...


1

The AxMapcontrol has a property Extent which returns an envelope, from this the average X and average Y would be the centre: double CentX = ( MapControl.Extent.Xmin + MapControl.Extent.Xmax ) / 2; double CentY = ( MapControl.Extent.Ymin + MapControl.Extent.Ymax ) / 2; IPoint CentPoint = new PointClass(); IPoint.PutCoords(CentX,CentY); ...


1

The parameter for passing a polygon needs two other ESRI fields populated in the parameter list. If the fields are not present (even if they have no meaningful value) then the ESRI service will return a FAIL result without any logs or exceptions. for (int fieldIndex = 0; fieldIndex < fieldArray.FieldArray.Count(); fieldIndex++) { if ...



Only top voted, non community-wiki answers of a minimum length are eligible