Package org.geotools.data

Examples of org.geotools.data.DefaultResourceInfo


     * @return ResourceInfo describing grid coverage indicated
     */
    public synchronized ResourceInfo getInfo(String subname) {

        if (this.resourceInfo!=null)
        return new DefaultResourceInfo(this.resourceInfo);
     
        DefaultResourceInfo localInfo = new DefaultResourceInfo();
  resourceInfo=localInfo;     
  localInfo.setName(subname);
        localInfo.setBounds(new ReferencedEnvelope(this.getOriginalEnvelope()));
        localInfo.setCRS(this.getCrs());
        localInfo.setTitle(subname);

        return new DefaultResourceInfo(this.resourceInfo);
    }
View Full Code Here


    public ResourceInfo getInfo() {
        if (ri != null)
            return ri;
        try {
            ri = new DefaultResourceInfo(); // copy from basefeature
            ri.setBounds(getBaseFeatureSource().getBounds());
            if (getBaseFeatureSource().getSchema().getGeometryDescriptor() != null)
                ri.setCRS(getBaseFeatureSource().getSchema().getGeometryDescriptor()
                        .getCoordinateReferenceSystem());
            ri.setDescription(getBaseFeatureSource().getInfo().getDescription());
View Full Code Here

     * @return ResourceInfo describing grid coverage indicated
     */
    public synchronized ResourceInfo getInfo(String subname) {

        if (this.resourceInfo!=null)
        return new DefaultResourceInfo(this.resourceInfo);
     
        DefaultResourceInfo localInfo = new DefaultResourceInfo();
  resourceInfo=localInfo;     
  localInfo.setName(subname);
        localInfo.setBounds(new ReferencedEnvelope(this.getOriginalEnvelope()));
        localInfo.setCRS(this.getCrs());
        localInfo.setTitle(subname);

        return new DefaultResourceInfo(this.resourceInfo);
    }
View Full Code Here

TOP

Related Classes of org.geotools.data.DefaultResourceInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.