2015-03-01 2 views
0

-> C#Запись GPS данных в простой файл изображения без РАНЕЕ данных GPS в его

Я хочу писать (и читать позже) GPS-данные изображения без каких-либо GPS данных, уже имеющихся в нем!

Я знаю, что этот вопрос повсюду в Интернете, но они не говорили вам, как писать конкретно на изображении с помощью ПУСТОЙ GPS-информации.

Если вы с нетерпением ждёте, чтобы спросить меня, напишите ли вы какой-либо код или попробовали себя, тогда, честно говоря, я пытаюсь с 5 дней сделать это. Я пробовал прибл. все библиотеки EXIF ​​доступны онлайн на codeproject.com и т. д. Я попытался использовать свойство. Я пробовал почти все, но не понял. Они все сказали вам обновить его, а не создать.

+0

Любой ?????????? – Jamil

+0

Попробуйте эту ссылку. http://stackoverflow.com/questions/4983766/getting-gps-data-from-an-images-exif-in-c-sharp –

+0

Это для чтения информации GPS, а не для записи. – Jamil

ответ

1

ExifToolDownload and Information for Exiftool

ExifTool is very flexible in the formats allowed for entering GPS 
coordinates. Any string containing between 1 and 3 floating point 
numbers is valid. The numbers represent degrees, 
(and optionally) minutes and seconds. 
For EXIF GPS coordinates, the reference direction is specified separately 
with the EXIF:GPSLatitudeRef or EXIF:GPSLongitudeRef tag. 

For XMP GPS coordinates, the reference direction is specified within the 
XMP:GPSLatitude or XMP:GPSLongitude value, with west longitudes and south 
latitudes being specified either by negative coordinate values or by ending 
the string with "W" or "S". 

Here are some examples of equivalent ways to specify a GPS latitude in both 
EXIF and XMP: 

exiftool -exif:gpslatitude="42 30 0.00" -exif:gpslatituderef=S a.jpg 
exiftool -exif:gpslatitude="42 deg 30.00 min" -exif:gpslatituderef=S a.jpg 
exiftool -exif:gpslatitude=42.5 -exif:gpslatituderef=S a.jpg 

exiftool -xmp:gpslatitude="42 30 0.00 S" a.jpg 
exiftool -xmp:gpslatitude=42.50S a.jpg 
exiftool -xmp:gpslatitude=-42.5 a.jpg 

Similar styles may be used for longitude. ExifTool will convert any of these 
coordinate styles to the proper format for the specific tag used. 

When reading, ExifTool reports coordinates in the format 

DDD deg MM' SS.SS" 

where DDD is degress, MM is minutes, and SS.SS is seconds. The -n option 
may be used to change this to decimal degrees, or any arbitrary format 
may be specified with the -c option. See the application documentation 
for details. 
+0

Его действительно не C#, не так ли? Кроме того, если я каким-то образом назову cmd через C#, это так чертовски медленно. – Jamil

+0

Если C# является колышом, освободите хобби ... – Nodak

+0

Как «Виноград кислый»? – Jamil