Add a Line to Poi files (KML)

33 views
Skip to first unread message

Les Ashmore

unread,
Mar 13, 2013, 4:58:25 AM3/13/13
to kml-support-g...@googlegroups.com
Hi all I have created a few files with POI's (Places of Interest) which cover Europe and are mainly for Campers and Motorhome users, there are approx 9000 POI's I want to add a line to the end of each POI description identifying that I created them, Is this possible and If so How do I do it please.
Thanks in Advance

barryhunter (KML Guru)

unread,
Mar 13, 2013, 9:00:32 AM3/13/13
to KML Developer Support - Getting Started with KML
Use something like
http://www.ecobyte.com/replacetext/

Les Ashmore

unread,
Mar 13, 2013, 3:31:05 PM3/13/13
to kml-support-g...@googlegroups.com
Hi Thanks for suggestion, I have tried it and not having any success I think the problem may be that because each file has a few thousand POI locations and each location has a description, It is either at the end or at the beginning of this description that I want to add a line.

barryhunter (KML Guru)

unread,
Mar 13, 2013, 3:38:39 PM3/13/13
to KML Developer Support - Getting Started with KML
At its most basic, you just replace the closing description tag, with
the new line and the same tag.

</description>

with

Created by Les</description>

But you might have to be careful, because if you have HTML in your
description, it probably has CDATA tags, so would be slightly
different, perhaps

]]></description>

with

<p>Created by Les</p>]]></description>



Alternatively if your placemarks have a common Style. Could just do it
with BalloonStyle...
https://developers.google.com/kml/documentation/kmlreference#balloonstyle

Les Ashmore

unread,
Mar 13, 2013, 4:01:28 PM3/13/13
to kml-support-g...@googlegroups.com
Thanks Barry that is working brilliantly, Just one small edit needed, when I enter that as described I need to enter a line break before the "Created By" as this edit is just adding to the end of text and it looks pretty poor.


On Wednesday, 13 March 2013 08:58:25 UTC, Les Ashmore wrote:

Les Ashmore

unread,
Mar 13, 2013, 5:41:54 PM3/13/13
to kml-support-g...@googlegroups.com
Sorted, Worked a Treat, It works a lot better if you read the directions correctly instead of thinking you have read them.

Thank you.

Les


On Wednesday, 13 March 2013 08:58:25 UTC, Les Ashmore wrote:
Reply all
Reply to author
Forward
0 new messages