public GeohashPrefixTree(SpatialContext ctx, int maxLevels) {super(ctx, maxLevels);Rectangle bounds = ctx.getWorldBounds();if (bounds.getMinX() != -180)throw new IllegalArgumentException("Geohash only supports lat-lon world bounds. Got "+bounds);int MAXP = getMaxLevelsPossible();if (maxLevels <= 0 || maxLevels > MAXP)throw new IllegalArgumentException("maxLevels must be [1-"+MAXP+"] but got "+ maxLevels);}

public GeohashPrefixTree(SpatialContext ctx, int maxLevels): base(ctx, maxLevels){IRectangle bounds = ctx.WorldBounds;if (bounds.MinX != -180){throw new ArgumentException("Geohash only supports lat-lon world bounds. Got " + bounds);}int Maxp = MaxLevelsPossible;if (maxLevels <= 0 || maxLevels > Maxp){throw new ArgumentException("maxLen must be [1-" + Maxp + "] but got " + maxLevels);}}
