java/converter/src/main/java/be/bosa/dt/best/converter/writer/BestWriterShape.java
/**
	 * Build a shapefile feature from an address
	 *
	 * @param builder
	 * @param address
	 * @param cCities citie name cache
	 * @param cStreet street name cache
	 * @param cPostal postal name cache
	 * @return shapefile feature
	 */
Build a shapefile feature from an address


Build a shapefile feature from an address
private SimpleFeature buildFeature(SimpleFeatureBuilder builder, Address address,
		String[] cCities, String[] cStreet, String[] cPostal) {
		Coordinate xy = new Coordinate(address.getPoint().getX(), address.getPoint().getY());
		Point point = FAC.createPoint(xy);
		builder.add(point);
		builder.add(address.getNumber());
		builder.add(address.getBox());
		builder.add(address.getStreet().getId());
		builder.add(cStreet[0]);
		builder.add(cStreet[1]);
		builder.add(cStreet[2]);
		builder.add(address.getCity().getId());
		builder.add(cCities[0]);
		builder.add(cCities[1]);
		builder.add(cCities[2]);
		builder.add(address.getPostal().getId());
		builder.add(cPostal[0]);
		builder.add(cPostal[1]);
		builder.add(cPostal[2]);
		builder.add(address.getStatus());
		return builder.buildFeature(address.getId());
	}
private SimpleFeature buildFeature ( SimpleFeatureBuilder builder , Address address , String [ ] cCities , String [ ] cStreet , String [ ] cPostal ) { Coordinate xy = new Coordinate ( address . getPoint ( ) . getX ( ) , address . getPoint ( ) . getY ( ) ) ; Point point = FAC . createPoint ( xy ) ; builder . add ( point ) ; builder . add ( address . getNumber ( ) ) ; builder . add ( address . getBox ( ) ) ; builder . add ( address . getStreet ( ) . getId ( ) ) ; builder . add ( cStreet [ 0 ] ) ; builder . add ( cStreet [ 1 ] ) ; builder . add ( cStreet [ 2 ] ) ; builder . add ( address . getCity ( ) . getId ( ) ) ; builder . add ( cCities [ 0 ] ) ; builder . add ( cCities [ 1 ] ) ; builder . add ( cCities [ 2 ] ) ; builder . add ( address . getPostal ( ) . getId ( ) ) ; builder . add ( cPostal [ 0 ] ) ; builder . add ( cPostal [ 1 ] ) ; builder . add ( cPostal [ 2 ] ) ; builder . add ( address . getStatus ( ) ) ; return builder . buildFeature ( address . getId ( ) ) ; }
Build a shapefile feature from an address
Build a shapefile feature from an address
//		builder.add(s.getId());
