Examples of buildFeature()


Examples of org.geotools.data.neo4j.Neo4jFeatureBuilder.buildFeature()

            return GeoPipeline.this.hasNext();
          }

          @Override
          public SimpleFeature next() {
            return featureBuilder.buildFeature(GeoPipeline.this.next().getRecord());
          }

          @Override
          public void remove() {
            throw new UnsupportedOperationException();
View Full Code Here

Examples of org.geotools.data.wfs.feature.LenientBuilder.buildFeature()

                   
                    String nextFid = ts.nextFid(schema.getTypeName());
                    Object[] values = f.getAttributes().toArray();
                   
                    build.addAll( values );
                    newFeature = build.buildFeature( nextFid );
                   
                    r.add(newFeature.getIdentifier());
                } catch (IllegalAttributeException e) {
                    throw (IOException) new IOException( e.getLocalizedMessage() );
                }
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

  public void create() throws Exception {
    WKTReader wktReader = new WKTReader();
    Point geometry = (Point) wktReader.read("POINT (0 0)");

    SimpleFeatureBuilder build = new SimpleFeatureBuilder(layer.getSchema());
    SimpleFeature feature = build.buildFeature("100000", new Object[] { geometry, "Tsjakamaka", 342 });

    Object created = layer.create(feature);
    Assert.assertNotNull(created);
  }
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

          values[i++] = null;
        }
      }
      values[i++] = internalFeature.getStyleInfo().getIndex();
      values[i++] = internalFeature.getGeometry();
      result.add(builder.buildFeature(internalFeature.getId(), values));
    }
    return result;
  }

  private SimpleFeatureType createFeatureType(VectorLayer layer, CoordinateReferenceSystem mapCrs) {
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

      } else {
        attr.add(feature.getGeometry());
      }
    }

    return builder.buildFeature(feature.getId(), attr.toArray());

  }

  /** {@inheritDoc} */
  public SimpleFeatureType toSimpleFeatureType(VectorLayerInfo vectorLayerInfo, List<String> attributeNames)
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

                    featureBuilder.add(s.stopName);
                    featureBuilder.add(s.stopCode);
                    featureBuilder.add(s.stopDesc);
                    featureBuilder.add(s.gtfsStopId);
                    featureBuilder.add(s.agency.name);
                    SimpleFeature feature = featureBuilder.buildFeature(null);
                    collection.add(feature)
              }
            }
            else if(gisExport.type.equals(GisUploadType.ROUTES))
            {
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

                     
                      featureBuilder.add(r.routeUrl);
                      featureBuilder.add(r.routeColor);
                      featureBuilder.add(r.routeTextColor);
                      featureBuilder.add(r.agency.name);
                      SimpleFeature feature = featureBuilder.buildFeature(null);
                      collection.add(feature)
                  }
              }
            }
            else
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

                Geometry reprojectPoint = JTS.transform(point, transform);

                SimpleFeatureBuilder builder = new SimpleFeatureBuilder(featureType);
                Object[] values = new Object[]{reprojectPoint, text, dateTimeString, String.valueOf(altim)};
                builder.addAll(values);
                SimpleFeature feature = builder.buildFeature(featureType.getTypeName() + "." + i++);
                newCollection.add(feature);
                pm.worked(1);
            }
        } finally {
            pm.done();
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

                MultiLineString multiLineString = gF.createMultiLineString(new LineString[]{reprojectLineString});

                SimpleFeatureBuilder builder = new SimpleFeatureBuilder(featureType);
                Object[] values = new Object[]{multiLineString, startDate, endDate, log.text};
                builder.addAll(values);
                SimpleFeature feature = builder.buildFeature(featureType.getTypeName() + "." + index++);

                newCollection.add(feature);
                pm.worked(1);
            }
            pm.done();
View Full Code Here

Examples of org.geotools.feature.simple.SimpleFeatureBuilder.buildFeature()

                    Point reprojectPoint = (Point) JTS.transform(point, transform);
                    Object[] values = new Object[]{reprojectPoint, String.valueOf(gpsPoint.altim), gpsPoint.utctime};

                    SimpleFeatureBuilder builder = new SimpleFeatureBuilder(featureType);
                    builder.addAll(values);
                    SimpleFeature feature = builder.buildFeature(featureType.getTypeName() + "." + index++);
                    newCollection.add(feature);
                }
                pm.worked(1);
            }
            pm.done();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.