x
login about faq Site discussion (meta-askssc)

Geography - XSLT - KML Question

I am storing geography types in a table and need to extract KML snippets.

The best way I can determine to do this is the get the data out using asGML(). This gets me really close - but the format of the coordinates are different.

In GML the coordinates look like this (lat/lng space delimited) 37.883559999437914 -122.24446999957762 37.883635999905707 -122.24458899986539

What I need is a way to get the elements out like the following (lng/lat comma delimited) -122.24446999957762, 37.883559999437914, -122.24458899986539, 37.883635999905707

Any help would be greatly appreciated. I'm stuck.

more ▼

asked May 03 '12 at 10:17 AM in Default

rpmatthew gravatar image

rpmatthew
0 1 1 2

Forgot to mention I need an XSLT solution - late night - stuck brain.

May 03 '12 at 11:15 AM rpmatthew
(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first
more ▼

answered May 03 '12 at 10:57 AM

Kev Riley gravatar image

Kev Riley ♦♦
46.1k 39 43 69

Thanks Kev - I looked at that - and while I think it is a good project - it doesn't seem to fit the context that the application needs. Looking for a pure xslt method.

This particular part is keeping me pretty much stuck - I just don't know xsl that well.

May 03 '12 at 11:04 AM rpmatthew

Ahh XSLT - outside my knowledge too. Sorry!

May 03 '12 at 11:07 AM Kev Riley ♦♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x115
x5
x2

asked: May 03 '12 at 10:17 AM

Seen: 579 times

Last Updated: May 03 '12 at 11:15 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.