Hi,

Thank you all very much :-)

I finally managed to put it working. It was a problem in the code, and 
not the coordinates.

>> A second doubt I have is if we can set apriori, in R the markers projected
>> in google earth... how do I do if instead of the pins, I want a ball? Do I
>> have to change one by one?
>>     
> You'll need to edit the KML file, and do a search-and-replace. Or if
> you want to be really smart, since the KML format is an XML format,
> you could write an XSLT file to do the transformation. XSLT is another
> XML format for doing transformations on XML files. Personally, I think
> life is too short to do everything in XML, and it is probably quicker
> to load it into your favourite editor and do a search-and-replace!
>
>  If you need to do it in a program, you could read the XML into R with
> the R XML tools, and then tweak it....
>   
I think, the edit copy/paste... should be wonderful. But what do I want 
to copy/replace... the file open in a text editor is like this:

        <Placemark>
            <description><![CDATA[<b>Spi.sol:</b> <i>0</i><br 
/>]]></description>
            <Point>
                
<coordinates>-7.425000000000001,37.13916666666667,0</coordinates>
            </Point>
        </Placemark>
        <Placemark>
            <description><![CDATA[<b>Spi.sol:</b> <i>0</i><br 
/>]]></description>
            <Point>
                <coordinates>-7.43333,37.1705,0</coordinates>
            </Point>
        </Placemark>
        <Placemark>
            <description><![CDATA[<b>Spi.sol:</b> <i>0</i><br 
/>]]></description>
            <Point>
                <coordinates>-7.43333,37.16516666666667,0</coordinates>
            </Point>
        </Placemark>
        <Placemark>
            <description><![CDATA[<b>Spi.sol:</b> <i>0</i><br 
/>]]></description>
            <Point>
                <coordinates>-7.43333,37.13583333333333,0</coordinates>
            </Point>
        </Placemark>

(...)

I tried creating a new one with a new marker to see the diference, but 
the file is totally different...

And is it possible to put automatically a label in each point (within 
R). I tried using the row.names... but it did not work. It exports with 
no names at al...

Thank you :-)

Best wsihes,
Marta



        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to