Opened 13 years ago

Closed 13 years ago

#801 closed enhancement (fixed)

topology: in the AsGML the namespace is better as parameter

Reported by: aperi2007 Owned by: strk
Priority: medium Milestone: PostGIS 2.0.0
Component: topology Version: master
Keywords: Cc:

Description

In the AsGML function actually the "gml" prefix is hardcoded.

so it return always:

<gml:TopoSurface …

I Guess the prefix would be given with a input parameter.

Change History (5)

comment:1 by aperi2007, 13 years ago

oops . In the title I mean "prefix" not "namespace".

comment:2 by strk, 13 years ago

So, for (say) a prefix of 'RT' you'd have:

<RT:Edge RT:id="E1">
 <RT:directedNode>...</RT:directedNode>
 <RT:directedNode orientaion="-">...</RT:directedNode>
</RT:Edge>

Correct ? This would be in sync with the ST_AsGML one, producing something like this:

 <rt:Curve srsName="urn:ogc:def:crs:EPSG::4326">
  <rt:segments>
   <rt:LineStringSegment>
    <rt:posList srsDimension="2">0 0 10 0</rt:posList>
   </rt:LineStringSegment>
  </rt:segments>
 </rt:Curve>

comment:3 by aperi2007, 13 years ago

yes, but uppercase if the original prefix is uppercase.

comment:4 by strk, 13 years ago

r6693 implements the prefix (and r6694 hides internal function a little bit more).

Are we ready for regression testing now ?

comment:5 by strk, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.