Search in sources :

Example 1 with ParameterValueBigDecimal

use of com.revolsys.geometry.cs.ParameterValueBigDecimal in project com.revolsys.open by revolsys.

the class EsriCoordinateSystems method readParameters.

private static Map<ParameterName, ParameterValue> readParameters(final ChannelReader reader) {
    final byte parameterCount = reader.getByte();
    final Map<ParameterName, ParameterValue> parameters = new LinkedHashMap<>();
    for (int i = 0; i < parameterCount; i++) {
        final String name = reader.getStringUtf8ByteCount();
        final String value = reader.getStringUtf8ByteCount();
        final ParameterName parameterName = new SingleParameterName(name);
        final ParameterValue parameterValue = new ParameterValueBigDecimal(value);
        parameters.put(parameterName, parameterValue);
    }
    return parameters;
}
Also used : ParameterValue(com.revolsys.geometry.cs.ParameterValue) ParameterValueBigDecimal(com.revolsys.geometry.cs.ParameterValueBigDecimal) ParameterName(com.revolsys.geometry.cs.ParameterName) SingleParameterName(com.revolsys.geometry.cs.SingleParameterName) SingleParameterName(com.revolsys.geometry.cs.SingleParameterName) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

ParameterName (com.revolsys.geometry.cs.ParameterName)1 ParameterValue (com.revolsys.geometry.cs.ParameterValue)1 ParameterValueBigDecimal (com.revolsys.geometry.cs.ParameterValueBigDecimal)1 SingleParameterName (com.revolsys.geometry.cs.SingleParameterName)1 LinkedHashMap (java.util.LinkedHashMap)1