Dale, importing a correctly formatted and supported coord format such as Colin's example above should NOT result in a rounding to degrees when changing type to Longitude.
The most curious thing is that this only applies to imported text, or an imported table. Text imported to a table from CSV is rounded (actually, fixed) to degrees on conversion. But if we create a table from scratch inside Manifold, enter identical text (ANSI or Unicode), then perform the same conversion to Latitude/Longitude, the fractional part is translated correctly. See the attached project, containing a table with a single pair of latitude, longitude values (sorry, in that order) encoded as ANSI (variable length). The values were entered manually.* First, export this table to CSV to make a copy (default options). Now do the conversion, in the original table or a direct duplicate (not via export/import). Change the type of the [latitude] column from ANSI text to Latitude, [longitude] to Longitude. Correct, right? Then reimport the CSV file to a new table (accepting defaults, forcing text, forcing ANSI--no differences from changing these as far as I can see). A distraction is that an extra double-quote mark (") is appended, but this seems to be a red herring. Remove it from each column using Delete Right 1 in each case. So now ostensibly, the imported table has the same data types as the source table had (before conversion), and each column contains exactly the same text. (Right?) But here, the same conversions as before somehow fail. What does this suggest? Is there an invisible difference in internal representation between the original, "manual" text versus the imported text? (We could test this more deeply.) Perhaps this anomaly is not directly Manifold's fault, but due to whatever Microsoft code handles CSV export/import? A very curious bug (apparently). BTW same result in 32-bit Manfold using the above workflow. While if the source table is copied and pasted to a new project the direct conversion still succeeds. [*I have ° on right-Alt + 0, aka AltGr + 0, along with a lot of other customizations, for real punctuation and for other languages. The Microsoft Keyboard Layout Creator is worth getting to know.] Attachments:
Test latitude, longitude conversion.map
|