Как конвертировать kml в геометрию с помощью оракула - PullRequest
0 голосов
/ 10 октября 2018

У меня есть данные kml, которые я получаю в файле kml, это код kml

<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document id="root_doc">
<Schema name="MAP_INCIDENTS_SHAPES" id="MAP_INCIDENTS_SHAPES">
    <SimpleField name="map_inc_id" type="int"></SimpleField>
</Schema>
<Folder><name>MAP_INCIDENTS_SHAPES</name>
  <Placemark>
    <Style><LineStyle><color>ff0000ff</color></LineStyle><PolyStyle><fill>0</fill></PolyStyle></Style>
      <Polygon><outerBoundaryIs><LinearRing><coordinates>45.1010417796491,40.9848225476105 45.1009096869205,40.9847940737914 45.10066445323,40.9847942881879 45.1003814905446,40.984794534921 45.1000419583458,40.9848091243725 45.0997024678675,40.9848523041074 45.099325184737,40.984852629782 45.0991164745147,40.9848226902916 45.0991040631746,40.9846658419119 45.0990133355825,40.98447986414 45.0987415702867,40.984215717358 45.098392367529,40.9840005806319 45.097939872533,40.9838540916238 45.0969573742123,40.9835611536614 45.0966341406285,40.9834341265874 45.0964660147549,40.9833265546859 45.0961297195199,40.9831016172936 45.0958580410778,40.9828864180846 45.0952374206958,40.982622542596 45.0948883650007,40.9825053257187 45.0943973694467,40.9825253145702 45.0935574456155,40.9825064143875 45.0931437092951,40.9823402775693 45.0927945627153,40.982154512329 45.0923937274706,40.9819589855676 45.092044666679,40.9818319662818 45.0915921988387,40.9816756494788 45.0911008985181,40.9814704070643 45.0905835015503,40.9811978651776 45.0909820388686,40.9810856506513 45.0913403989257,40.9810567768423 45.0916609712546,40.9809850481133 45.0917365227601,40.9810564623142 45.0917745072246,40.9812422663261 45.0919634363825,40.9814565404457 45.0920767345862,40.9815422204196 45.0922843299591,40.9816135287171 45.0924729822999,40.981627671866 45.0927183244339,40.9817132443146 45.0930579830583,40.9817987410469 45.0933410136154,40.9818556922058 45.0936617291917,40.9818840216246 45.0939824068345,40.9818837606487 45.0943030832843,40.9818834987818 45.0945671074655,40.9818403977576 45.0948542073965,40.9817721485868 45.0948688188133,40.9817686746873 45.095170629872,40.9817684259303 45.0953970105445,40.9817825340427 45.0954409318855,40.9818268120524 45.0955293630437,40.9819968490974 45.0957749172777,40.9822253643186 45.0960770232132,40.9824252423614 45.0963979508461,40.9825965134381 45.0967188813287,40.9827677845143 45.0969264855309,40.9828390844276 45.0971718798589,40.9829532377621 45.0974737606248,40.9829958667561 45.0978700451077,40.9830955966106 45.0981342424865,40.9831668462859 45.098455116441,40.9832952269182 45.0989269650073,40.9834663628383 45.0992101148264,40.9835947737272 45.099417766044,40.9836946595264 45.0996065130383,40.9837659717615 45.0997951718652,40.9837801029154 45.0999838751403,40.9838228241456 45.1002291713543,40.9838654967788 45.1003991409825,40.9839940030817 45.1004936118408,40.9840939845462 45.100625876822,40.9842368194822 45.1008147125475,40.9843653086947 45.1009656469589,40.9843794709145 45.1011166251043,40.984422223319 45.1012110102404,40.9844650261249 45.1012112506451,40.9846222705212 45.1010417796491,40.9848225476105</coordinates></LinearRing></outerBoundaryIs></Polygon>
  </Placemark>
</Folder>
</Document></kml>

как я могу преобразовать этот код в геометрию на oracle и вставить my_geometry_table my srid = 32638

...