* PROJCS["NAD27 / Idaho Central",
* GEOGCS[...etc...],
* ...etc...
* AUTHORITY["EPSG","26769"]]
*/
final Identifier identifier = getIdentifier(info);
if (identifier!=null && authorityAllowed(info)) {
final Citation authority = identifier.getAuthority();
if (authority != null) {
/*
* Since WKT often use abbreviations, search for the shortest
* title or alternate title. If one is found, it will be used
* as the authority name (e.g. "EPSG").
*/
InternationalString inter = authority.getTitle();
String title = (inter!=null) ? inter.toString(symbols.locale) : null;
for (final InternationalString alt : authority.getAlternateTitles()) {
if (alt != null) {
final String candidate = alt.toString(symbols.locale);
if (candidate != null) {
if (title==null || candidate.length() < title.length()) {
title = candidate;
}
}
}
}
if (title != null) {
appendSeparator(lineChanged);
buffer.append("AUTHORITY")
.append(symbols.open)
.append(symbols.quote)
.append(title)
.append(symbols.quote);
final String code = identifier.getCode();
if (code != null) {
buffer.append(symbols.separator)
.append(symbols.quote)
.append(code)
.append(symbols.quote);