question

rpmatthew avatar image
rpmatthew asked

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.
xmlgeographyxslt
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rpmatthew avatar image rpmatthew commented ·
Forgot to mention I need an XSLT solution - late night - stuck brain.
0 Likes 0 ·

1 Answer

·
Kev Riley avatar image
Kev Riley answered
Maybe you could look at [this project on CodePlex by Bob Beauchemin][1] [1]: http://sqlservertokml.codeplex.com/
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rpmatthew avatar image rpmatthew commented ·
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.
0 Likes 0 ·
Kev Riley avatar image Kev Riley ♦♦ commented ·
Ahh XSLT - outside my knowledge too. Sorry!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.