WebbSimpleFeatureBuilder createBuilder() { SimpleFeatureTypeBuilder typeBuilder = new SimpleFeatureTypeBuilder(); typeBuilder.setName("feature"); … WebbDetails. st_can_transform returns a boolean indicating whether coordinates with CRS src can be transformed into CRS dst. Transforms coordinates of object to new projection. …
[Geotools-gt2-users] Converting MultiLineString to Linestring
Webb24 sep. 2012 · SimpleFeatureTypeBuilder tbuild = new SimpleFeatureTypeBuilder(); tbuild.setCRS(DefaultGeographicCRS.WGS84); tbuild.setName("FlashLine"); tbuild.add("FlashLine", LineString.class); SimpleFeatureType type = tbuild.buildFeatureType(); SimpleFeatureBuilder featureBuilder = new WebbSimpleFeature feature = featureBuilder. buildFeature ( null ); features. add ( feature ); } } } // docs break new shapefile /* * Get an output file name and create the new shapefile */ … east midlands airport taxis arrow
org.geotools.feature.simple.SimpleFeatureTypeBuilder.setCRS()
Webb24 jan. 2024 · SimpleFeature feature = writer.next (); feature.setAttribute ( "name", shpInfo.getName ()); feature.setAttribute ( "path", shpInfo.getPath ()); feature.setAttribute ( "the_geom", geometry); feature.setAttribute ( "id", shpInfo.getId ()); feature.setAttribute ( "des", shpInfo.getDes ()); System.out.println ( "========= Write … Webbprivate SimpleFeatureType createFeatureType(VectorLayer layer, CoordinateReferenceSystem mapCrs) { SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); VectorLayerInfo info = layer.getLayerInfo(); builder.setName(info.getFeatureInfo().getDataSourceName()); builder.setCRS(mapCrs); … Webb30 jan. 2024 · SimpleFeatureType schema = feature.getFeatureType (); SimpleFeatureTypeBuilder ftBuilder = new SimpleFeatureTypeBuilder (); … culture of tim hortons