To get a better sense of scale in your application, you may want to fit your view height to a specific distance in meters.

Figure 1. A view fitted to span 1000m vertically

To make your view span a distance vertically, as shown in Program: Fit on a vertical line with a specific length:

1. Use a 3D or north-up projection for your view.

2. Create a vertical line with the required length going through the center of the view.

3. Use the bounds of that line to fit the view.

Program: Fit on a line with a specific length
TLcdGeodeticReference modelReference = new TLcdGeodeticReference();
ILcdEllipsoid ellipsoid = modelReference.getGeodeticDatum().getEllipsoid();

try {

// calculate the model coordinates of the view's center
Point centerAWT = new Point(aView.getWidth() / 2, aView.getHeight() / 2);
TLcdXYZPoint centerWorld = new TLcdXYZPoint();
aView.getViewXYZWorldTransformation().viewPoint2WorldSFCT(centerAWT, ALspViewXYZWorldTransformation.LocationMode.CLOSEST_SURFACE, centerWorld);
TLcdLonLatHeightPoint center = new TLcdLonLatHeightPoint();
TLcdDefaultModelXYZWorldTransformation transformation = new TLcdDefaultModelXYZWorldTransformation(modelReference, aView.getXYZWorldReference());
transformation.worldPoint2modelSFCT(centerWorld, center);

// calculate the vertices of the vertical line
TLcdLonLatHeightPoint p1 = new TLcdLonLatHeightPoint();
ellipsoid.rhumblinePointSFCT(center, halfDistance, 0, p1);
TLcdLonLatHeightPoint p2 = new TLcdLonLatHeightPoint();
ellipsoid.rhumblinePointSFCT(center, halfDistance, 180, p2);

// create the vertical line
ILcd2DEditablePoint[] vertices = new ILcd2DEditablePoint[]{p1, p2};
TLcdLonLatRhumbPolyline line = new TLcdLonLatRhumbPolyline(new TLcd2DEditablePointList(vertices, false));

//use the line's bounds to fit the view