Skip to main content

ArcGIS

ArcGIS

– with due acknowledgement to all other ArcGIS resources.

This documentation of my GIS work is intended as just another small contribution towards spreading the word …

My current interest is in batching – producing maps and other simple facilities with minimal user intervention.

Things to know:

Having begun with:

  • ArcGIS(ArcInfo) v8.3
  • Personal Geodatabases (MS Access dbs).

I now use:

  • ArcGIS(ArcInfo) v9.1
  • SDE Geodatabases.

Things I’m getting to know

ArcObjects

Things I’ve learnt (always the hard way):

ArcGIS 9.1

Migration from ArcGIS 9.0 to 9.1

ArcCatalog

Connected folders

should be restricted so that Personal Geodatabases appear under only one Connected Folder. ArcCatalog seems to treat each appearance of a db as a separate database. For example, with both folders “C:\” and “C:\database\” connected then “C:\database\my.mdb” would be seen as two databases with the same name in the same directory and can cause applications to crash (e.g. GxApplication.Catalog.GetObjectFromFullName returns lNumFound = 2 objects).

ArcMap

“Same as Printer” and “Scale map to fit printer paper”(Print)

should be used with care. Why do my New Documents open in Portrait format when they’re based on a Landscape template? Because Page Setup | Map Size has “Same as Printer” selected and the current printer is using the Portrait orientation by default! (Thank you User Forum)

PrintDialog

needs

Set pPrintDialog.PageLayout = m_MxDocument.PageLayout
Set pPrintDialog.Printer = m_MxApplication.Printer

before firing off

pPrintDialog.DoModal hWnd, pPage

Copying templates

from one machine to another:
Set the Printer Preferences/Defaults to the settings used in each original template. Then open the copied template from ArcMap (i.e. as the mxt, not as a new mxd) and save the new template with the correct paper size.

“IPaper.FormName”

doesn’t work – does it?

IEnvelope
Woderful illustration of both ByVal v. ByRef and Properties v. Methods.

Things I need to find out – HELP!

ArcMap

Join Data: Polygons to Points – Anomalies

On applying a spatial join of Polygons to Points (both FeatureClasses from a personal geodatabase) with …

Point falls inside Polygon
up to 10% of records fail to match even though the point falls inside the polygon!?
And for some coincident points only the first record in the database matches; for other coincident points they all match as they should – always one or all!?

Point is closest to Polygon
all records match, but of those that did not match with the falls inside method,
some of those with distance = 0 match to a Polygon different to that in which they fall!!?
those having distance > 0 (!?) match seem to match to the correct Polygon!?

Help! [email protected]