Skip to main content

import - String quotes elimination


I'm trying to import a .csv file that contains some points which are geo-positions, but the import gives me the points wrapped in quotes. Is there any method to get them as pairs of real numbers?


I'm getting "{26.2417,-98.432},{26.2407,-98.4247}" but I want {26.2417,-98.432},{26.2407,-98.4247}.





Update


Here is an example that produces output with the problem:


csvstring = "\"{26.2417,-98.432},{26.2407,-98.4247}\",2\n\"{26.2417,-98.432},{26.2407,-98.4247}\",3"; 
ImportString[csvstring, "CSV"]

{{"{26.2417,-98.432},{26.2407,-98.4247}", 2},
{"{26.2417,-98.432},{26.2407,-98.4247}", 3}}


Comments