Changeset 8827


Ignore:
Timestamp:
01/11/13 10:44:04 (5 years ago)
Author:
mnagni
Message:

Incomplete - # 22985: Fix new MEDIN DWS Spatial query
 http://team.ceda.ac.uk/trac/ceda/ticket/22985

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/revitalizationProject/branches/MEDIN/dpws/src/main/java/ndg/services/revitalization/ejb/discovery/SearchHelper.java

    r8826 r8827  
    433433                String box = ""; 
    434434                 
    435                 if (BoundingBoxType.class.isInstance(spatialType.getContourType())) { 
     435                Class decl_type = spatialType.getContourType().getDeclaredType(); 
     436                if (BoundingBoxType.class.equals(decl_type)) { 
    436437                        box = processBoxSearch(BoundingBoxType.class.cast(spatialType.getContourType())); 
    437438                } 
    438439 
    439                 if (PolygonContourType.class.isInstance(spatialType.getContourType())) { 
     440                if (PolygonContourType.class.equals(decl_type)) { 
    440441                        box = processBoxSearch(PolygonContourType.class.cast(spatialType.getContourType())); 
    441442                } 
    442443                 
    443                 if (MultiPolygonContourType.class.isInstance(spatialType.getContourType())) { 
     444                if (MultiPolygonContourType.class.equals(decl_type)) { 
    444445                        box = processBoxSearch(MultiPolygonContourType.class.cast(spatialType.getContourType())); 
    445446                }                
Note: See TracChangeset for help on using the changeset viewer.