Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#390 closed defect (fixed)

Compound CRSs with a parametrized CRS

Reported by: Piero Campalani Owned by: Dimitar Misev
Priority: critical Milestone: 9.0
Component: secore Version: 8.4
Keywords: compound crs parametrized Cc: Dimitar Misev
Complexity: Medium

Description

SECORE should keep the parametrized URL when reporting the CRSs the compose a compound CRS, otherwise the parametrization is lost and the raw target CRS is pointed.

E.g. AUTO(1.3):42001 targets EPSG:4326:

http://localhost:8090/def/crs-compound?

1=http://localhost:8090/def/crs?authority=AUTO%26version=1.3%26code=42001%26lon=10&
2=http://localhost:8090/def/crs?authority=EPSG%26version=0%26code=5715

but the default EPSG:4326 definition is reported in the response (see //componentReferenceSystem/@xlink:href):

<CompoundCRS ... >
  <metaDataProperty>
    <epsg:CommonMetaData>
      <epsg:type>compound</epsg:type>
    </epsg:CommonMetaData>
  </metaDataProperty>
  <scope>not known</scope>
  <identifier codeSpace="OGC">
http://localhost:8090/def/crs-compound?1=http://localhost:8090/def/crs?authority=AUTO%26version=1.3%26code=42001%26lon=10%262=http://localhost:8090/def/crs?authority=EPSG%26version=0%26code=5715
  </identifier>
  <name>WGS 84 / msl depth</name>
  <componentReferenceSystem xlink:href="http://www.opengis.net/def/crs/EPSG/0/4326"/>
  <componentReferenceSystem xlink:href="http://www.opengis.net/def/crs/EPSG/0/5715"/>
</CompoundCRS>

Change History (5)

comment:1 by Dimitar Misev, 11 years ago

Is it duplicate of #355 ?

comment:2 by Piero Campalani, 11 years ago

Oh yes.. I closed that, this explains the root of the problem.

comment:3 by Dimitar Misev, 11 years ago

Owner: changed from mrusu to Dimitar Misev
Status: newassigned

The problem is in the generic handler, the CRS def returned for a parameterized handler should have identifier that includes also the parameters

http://www.opengis.net/def/crs/EPSG/0/4326&lon=10

not just

http://www.opengis.net/def/crs/EPSG/0/4326

comment:4 by Dimitar Misev, 11 years ago

Resolution: fixed
Status: assignedclosed

comment:5 by Piero Campalani, 11 years ago

Single URLs percent-encoded in changeset:547d6d1.

Note: See TracTickets for help on using tickets.