Revision f29ccc71
Added by Andreas Müller over 10 years ago
cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/geo/EditGeoServiceUtilities.java | ||
---|---|---|
455 | 455 |
} |
456 | 456 |
|
457 | 457 |
|
458 |
private static String compileMapSizeParameterValue(int width, int height) { |
|
459 |
|
|
460 |
String widthStr = ""; |
|
461 |
String heightStr = ""; |
|
462 |
|
|
463 |
if (width > 0) { |
|
464 |
widthStr = "" + width; |
|
465 |
} |
|
466 |
if (height > 0) { |
|
467 |
heightStr = SUBENTRY_DELIMITER + height; |
|
468 |
} |
|
469 |
String ms = widthStr + heightStr; |
|
470 |
if(ms.length() == 0){ |
|
471 |
ms = null; |
|
472 |
} |
|
473 |
return ms; |
|
474 |
} |
|
475 | 458 |
|
476 | 459 |
/** |
477 | 460 |
* URI encode the given String |
... | ... | |
599 | 582 |
return null; |
600 | 583 |
|
601 | 584 |
}else if (voc.getUuid().equals(Country.uuidCountryVocabulary)){ |
602 |
return "country_earth"; |
|
585 |
return "country_earth:gmi_cntry";
|
|
603 | 586 |
} |
604 | 587 |
|
605 | 588 |
GeoServiceArea areas = mapping.valueOf(area); |
Also available in: Unified diff
fix country mapping