*/
public static OMCircle read(DataInputStream dis,
LinkProperties propertiesBuffer)
throws IOException {
OMCircle circle = null;
float lat, lon, radius;
int x, y, w, h;
int renderType = dis.readByte();
switch (renderType) {
case RENDERTYPE_LATLON:
lat = dis.readFloat();
lon = dis.readFloat();
radius = dis.readFloat();
int units = dis.readByte();
int nverts = dis.readInt();
Length unit = Length.DECIMAL_DEGREE;
switch (units) {
case 0:
unit = Length.KM;
break;
case 1:
unit = Length.MILE;
break;
case 2:
unit = Length.NM;
break;
default:
}
circle = new OMCircle(new LatLonPoint(lat, lon), radius, unit, nverts);
break;
case RENDERTYPE_XY:
x = dis.readInt();
y = dis.readInt();
w = dis.readInt();
h = dis.readInt();
circle = new OMCircle(x, y, w, h);
break;
case RENDERTYPE_OFFSET:
lat = dis.readFloat();
lon = dis.readFloat();
x = dis.readInt();
y = dis.readInt();
w = dis.readInt();
h = dis.readInt();
circle = new OMCircle(lat, lon, x, y, w, h);
break;
default:
}
if (circle != null) {