Skip to main content
Solved

2 geometry in GML for 1 feature Member

  • October 21, 2015
  • 1 reply
  • 15 views

I have GML like this:

 

 

    <gml:featureMember>

 

        <bt:KR_Obiekt gml:id="ID_707">

 

            <gml:boundedBy xsi:nil="true"/>

 

            <bt:kod>104</bt:kod>

 

            <bt:geometriaKarto>

 

                <gml:LineString srsName="EPSG:2180" gml:id="ID_707">

 

                    <gml:posList>434752.25 710532.47 434752.14 710532.44 434750.4 710531.52 434748.8 710530.31 434747.34 710528.84 434746.03 710527.19 434744.88 710525.4 434743.9 710523.53 434743.08 710521.63 434742.45 710519.77</gml:posList>

 

                </gml:LineString>

 

            </bt:geometriaKarto>

 

            <bt:label>

 

                <bt:KR_Label>

 

                    <bt:tekst>10</bt:tekst>

 

                    <bt:geometriaKarto>

 

                        <gml:LineString srsName="EPSG:2180" gml:id="ID_707">

 

                            <gml:posList>434760.13 710535.12 434770.21 710536.15</gml:posList>

 

                        </gml:LineString>

 

                    </bt:geometriaKarto>

 

                    <bt:kodKarto>10_0010_917</bt:kodKarto>

 

                </bt:KR_Label>

 

            </bt:label>

 

            <bt:warstwa>DEM</bt:warstwa>

 

        </bt:KR_ObiektKarto>

 

    </gml:featureMember>

 

 

I would like to upload to oracle only geometry of my label, without geometry of: <bt:geometriaKarto>, how to do that?

Best answer by takashi

Hi,

 

 

If the unnecessary part is always the first part for every feature, you can decompose each feature with the Deaggregator and then simply filter out the first part by testing the "_part_number" attribute with the Tester.

 

Otherwise, XML operations may be useful. e.g. read the GML document with the XML reader, remove unnecessary elements with some XML transformers such as the XMLUpdater, and then create geometry with the GeometryReplacer.

 

 

Takashi
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • Best Answer
  • October 22, 2015
Hi,

 

 

If the unnecessary part is always the first part for every feature, you can decompose each feature with the Deaggregator and then simply filter out the first part by testing the "_part_number" attribute with the Tester.

 

Otherwise, XML operations may be useful. e.g. read the GML document with the XML reader, remove unnecessary elements with some XML transformers such as the XMLUpdater, and then create geometry with the GeometryReplacer.

 

 

Takashi