Package com.gi.engine.carto

Examples of com.gi.engine.carto.FeatureResult


      } else {
        arrayTemp = new JSONArray();

        for (Iterator<FeatureResult> itr = featureResults.iterator(); itr
            .hasNext();) {
          FeatureResult featureResult = itr.next();
          Feature feature = featureResult.getFeature();
          objTemp = EsriJsonUtil
              .feature2JSON(feature, returnGeometry);
          objTemp.put("layerId", featureResult.getLayerId());
          objTemp.put("layerName", featureResult.getLayer()
              .getMapLayer().getTitle());
          arrayTemp.put(objTemp);
        }
        obj.put("results", arrayTemp);
      }
View Full Code Here


                .append("<div style='color:#ffff00'>Only top 10 records will be printed<br/></div>");
          }
          int printCount = 0;
          for (Iterator<FeatureResult> itr = featureResults
              .iterator(); itr.hasNext() && printCount < 10;) {
            FeatureResult featureResult = itr.next();
            sb.append("<div>");
            Feature feature = featureResult.getFeature();
            Geometry geo = (Geometry) feature
                .getDefaultGeometryProperty().getValue();
            if (geo != null) {
              String json = EsriJsonUtil.geometry2JSON(geo)
                  .toString();
View Full Code Here

              if (layerFeatureCollection != null
                  && !layerFeatureCollection.isEmpty()) {
                for (FeatureIterator<? extends Feature> itr = layerFeatureCollection
                    .features(); itr.hasNext();) {
                  Feature feature = itr.next();
                  FeatureResult featureResult = new FeatureResult();
                  featureResult.setLayerId(layerId);
                  featureResult.setLayer(layer);
                  featureResult.setFeature(feature);
                  result.add(featureResult);
                }
              }
            } catch (Exception ex) {
              ex.printStackTrace();
View Full Code Here

        if (layerFeatureCollection != null
            && !layerFeatureCollection.isEmpty()) {
          for (FeatureIterator<? extends Feature> itr = layerFeatureCollection
              .features(); itr.hasNext();) {
            Feature feature = itr.next();
            FeatureResult featureResult = new FeatureResult();
            featureResult.setLayer(layer);
            featureResult.setFeature(feature);
            result.add(featureResult);
          }

          if (identifyType.equals(IdentifyType.TOP)) {
            break;
View Full Code Here

        details.add("Find result is NULL.");
      } else {
        arrayTemp = new JSONArray();
        for (Iterator<FeatureResult> it = featureResults.iterator(); it
            .hasNext();) {
          FeatureResult featureResult = it.next();
          Feature feature = featureResult.getFeature();
          GeometryAttribute geoAttr = feature
              .getDefaultGeometryProperty();
          Geometry geo = (Geometry) geoAttr.getValue();
          if (geo != null) {
            geo = GeometryToolkit.project(geo, mapSR, outSR);
            geoAttr.setValue(geo);
            feature.setDefaultGeometryProperty(geoAttr);
          }
          objTemp = EsriJsonUtil.feature2JSON(feature,
              isReturnGeometry);
          objTemp.put("layerId", featureResult.getLayerId());
          objTemp.put("layerName", featureResult.getLayer()
              .getMapLayer().getTitle());

          String geoFieldName = feature.getDefaultGeometryProperty()
              .getDescriptor().getLocalName();
          for (Iterator<Property> itr = feature.getProperties()
View Full Code Here

          }
          int printCount = 0;
          for (Iterator<FeatureResult> it = featureResults.iterator(); it
              .hasNext()
              && printCount < 10;) {
            FeatureResult featureResult = it.next();
            sb.append("<div>");
            Feature feature = featureResult.getFeature();
            GeometryAttribute geoAttr = feature
                .getDefaultGeometryProperty();
            Geometry geo = (Geometry) geoAttr.getValue();
            if (geo != null) {
              geo = GeometryToolkit.project(geo, mapSR, sr);
View Full Code Here

TOP

Related Classes of com.gi.engine.carto.FeatureResult

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.