static const int _THUMBNAIL_IMAGE_HEIGHT = 60;
static const int _MINUTES = 60;
static const int _SECONDS = 3600;
+static const double DEFAULT_COORDINATE = -200.0;
ImageMetadata*
_ContentManagerUtilImpl::GetImageMetaN(const String& contentPath, bool internal)
else if (tag == EXIF_TAG_GPS_LATITUDE && !isLatitude)
{
String tempLatitude(buf);
+ if (!tempLatitude.Contains(L","))
+ {
+ pMetadata->latitude = DEFAULT_COORDINATE;
+ isLatitude = true;
+ continue;
+ }
+
int firstComma = 0;
int lastComma = 0;
else if (tag == EXIF_TAG_GPS_LONGITUDE && !isLongitude)
{
String tempLongitude(buf);
+ if (!tempLongitude.Contains(L","))
+ {
+ pMetadata->longitude = DEFAULT_COORDINATE;
+ isLongitude = true;
+ continue;
+ }
+
int firstComma = 0;
int lastComma = 0;
else if (tag == EXIF_TAG_GPS_LATITUDE && !isLatitude)
{
String tempLatitude(buf);
+ if (!tempLatitude.Contains(L","))
+ {
+ pMetadata->latitude = DEFAULT_COORDINATE;
+ isLatitude = true;
+ continue;
+ }
+
int firstComma = 0;
int lastComma = 0;
else if (tag == EXIF_TAG_GPS_LONGITUDE && !isLongitude)
{
String tempLongitude(buf);
+ if (!tempLongitude.Contains(L","))
+ {
+ pMetadata->longitude = DEFAULT_COORDINATE;
+ isLongitude = true;
+ continue;
+ }
+
int firstComma = 0;
int lastComma = 0;