Search in sources :

Example 71 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class SymbolGroup method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    addToMap(map, "groups", this.groups);
    addToMap(map, "symbols", this.symbols);
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx)

Example 72 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class ColorGriddedElevationModelRasterizer method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    addToMap(map, "minColour", this.minColour);
    addToMap(map, "maxColour", this.maxColour);
    if (Double.isFinite(this.minZ)) {
        double modelMinZ = Double.NaN;
        double modelMaxZ = Double.NaN;
        final GriddedElevationModel elevationModel = getElevationModel();
        if (elevationModel != null) {
            modelMinZ = elevationModel.getMinZ();
            modelMaxZ = elevationModel.getMaxZ();
        }
        addToMap(map, "minZ", this.minZ, modelMinZ);
        addToMap(map, "maxZ", this.maxZ, modelMaxZ);
    }
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx) GriddedElevationModel(com.revolsys.elevation.gridded.GriddedElevationModel)

Example 73 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class HillShadeGriddedElevationModelRasterizer method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    map.put("azimuthDegrees", this.azimuthDegrees);
    map.put("zenithDegrees", this.zenithDegrees);
    map.put("zFactor", this.zFactor);
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx)

Example 74 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class GradientStop method toMap.

@Override
public MapEx toMap() {
    final MapEx map = newTypeMap("gradientStop");
    addToMap(map, "color", this.color);
    if (Double.isFinite(this.value)) {
        map.add("value", this.value);
    }
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx)

Example 75 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class ColorGradientGriddedElevationModelRasterizer method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    addToMap(map, "gradient", this.gradient);
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx)

Aggregations

MapEx (com.revolsys.collection.map.MapEx)144 LinkedHashMapEx (com.revolsys.collection.map.LinkedHashMapEx)48 ArrayList (java.util.ArrayList)17 Resource (com.revolsys.spring.resource.Resource)9 GeometryFactory (com.revolsys.geometry.model.GeometryFactory)7 Map (java.util.Map)7 HashMap (java.util.HashMap)6 PathName (com.revolsys.io.PathName)5 UrlResource (com.revolsys.spring.resource.UrlResource)5 DataType (com.revolsys.datatype.DataType)4 FieldDefinition (com.revolsys.record.schema.FieldDefinition)4 PathResource (com.revolsys.spring.resource.PathResource)4 Color (java.awt.Color)4 LinkedHashMap (java.util.LinkedHashMap)4 List (java.util.List)4 TreeMap (java.util.TreeMap)4 NamedLinkedHashMapEx (com.revolsys.collection.map.NamedLinkedHashMapEx)3 Geometry (com.revolsys.geometry.model.Geometry)3 LineString (com.revolsys.geometry.model.LineString)3 Record (com.revolsys.record.Record)3