gmt2kml -L with a sting?
"Becker, Joseph J." <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <aMMDoS6CdWpFFhZAbgzsdj_Ahc2h3FAdUAQIJdsbee_Y8nlpDgl8iFqKzxwV96iDIpLC6slvIeU@cipher.nrlssc.navy.mil> |
Basically I love gmt2kml. The output below is probably easier to understand than my question… === While gmt2kml file.gmt -L8:name,3:lat … does exactly what I want if there is numeric data in the “gmt” file columns, e.g. lat, lon, time, if the column has string, e.g. “DRFT04RR”, then the KML is output with NaN <Data name = "name"> <value>NaN</value> </Data> is there a way to get a column with a string into the KML ? I have control of the file input to gmt2kml so I can add quotes, backslashes, or whatever to the string Thanks, JJ ================ $ head -1 test.txt -109.765540 25.569340 -3180 -1967 -1213 9999 54169 89654 “DRFT04RR” $ head -1 test.txt | gmt2kml -L8:name <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>GMT Data Document</name> <Style id="GMT-36236-0"> <IconStyle> <scale>1</scale> <color>ff80c0ff</color> <Icon> <href>http://maps.google.com/mapfiles/kml/pal4/icon57.png</href> </Icon> </IconStyle> <LineStyle> <color>ff000000</color> <width>1</width> </LineStyle> <PolyStyle> <color>bf80c0ff</color> <fill>1</fill> <outline>1</outline> </PolyStyle> <LabelStyle> <scale>1</scale> <color>ffffffff</color> </LabelStyle> </Style> <Folder> <name>Point Set 0</name> <Placemark> <name>Point 0</name> <ExtendedData> <Data name = "name"> <value>NaN</value> </Data> </ExtendedData> <styleUrl>#GMT-36236-0</styleUrl> <Point> <coordinates>-109.76554,25.56934,0</coordinates> </Point> </Placemark> </Folder> </Document> </kml> sherwood:Desktop jbecker$ To unsubscribe, send the message "signoff gmt-help" to [email protected]
smime.p7s
(application/pkcs7-signature, 5.9 KB) - not displayed