Changeset 51:24eb0fafb8dd


Ignore:
Timestamp:
03/14/12 17:00:55 (6 years ago)
Author:
Manos Karpathiotakis <mk@…>
Branch:
default
Message:

Fixed issue with SRID uri returned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java

    r47 r51  
    190190        public StrabonPolyhedron(Geometry geo) throws Exception { 
    191191                this.geometry = new StrabonPolyhedron(geo, 1).geometry; 
     192                this.geometry.setSRID(geo.getSRID()); 
    192193        } 
    193194 
     
    716717 
    717718                poly.geometry = A.geometry.union(x); 
    718  
     719                poly.geometry.setSRID(targetSRID); 
    719720                return poly; 
    720721        } 
     
    754755                Geometry x = convertSRID(B.getGeometry(), sourceSRID, targetSRID); 
    755756                Geometry geo = A.geometry.intersection(x); 
    756  
     757                geo.setSRID(targetSRID); 
    757758                return new StrabonPolyhedron(geo); 
    758759        } 
     
    766767 
    767768                poly.geometry = A.geometry.difference(x); 
    768  
     769                poly.geometry.setSRID(targetSRID); 
    769770                return poly; 
    770771        } 
     
    776777                Geometry x = convertSRID(B.getGeometry(), sourceSRID, targetSRID); 
    777778                poly.geometry = A.geometry.symDifference(x); 
    778  
     779                poly.geometry.setSRID(targetSRID); 
    779780                return poly; 
    780781        } 
Note: See TracChangeset for help on using the changeset viewer.