use of net.opengis.gml.x32.PointPropertyType in project arctic-sea by 52North.
the class PointPropertyTypeEncoder method encode.
@Override
public PointPropertyType encode(Point point, EncodingContext ec) throws EncodingException {
PointPropertyType ppt = PointPropertyType.Factory.newInstance();
ppt.setPoint(encodePointType(point, ec));
return ppt;
}
use of net.opengis.gml.x32.PointPropertyType in project ddf by codice.
the class Wfs20JTStoGML321Converter method convertToMultiPointType.
public static MultiPointType convertToMultiPointType(MultiPoint multiPoint, String srsName) {
MultiPointType multiPointType = GML320_OBJECT_FACTORY.createMultiPointType();
for (int i = 0; i < multiPoint.getNumGeometries(); i++) {
Point point = (Point) multiPoint.getGeometryN(i);
PointPropertyType pointPropertyType = GML320_OBJECT_FACTORY.createPointPropertyType();
pointPropertyType.setPoint(convertToPointType(point, srsName));
multiPointType.getPointMember().add(pointPropertyType);
}
multiPointType.setSrsName(srsName);
return multiPointType;
}
use of net.opengis.gml.x32.PointPropertyType in project arctic-sea by 52North.
the class AbstractCVDiscretePointCoverageTypeEncoder method encodeGeometry.
/**
* Encode {@link Point} to {@link PointPropertyType}
*
* @param point
* The {@link Point} to encode
* @param gmlId
* The gml id for the point
* @return The encoded {@link Point}
* @throws UnsupportedEncoderInputException
* If an element can not be encoded
* @throws EncodingException
* If an error occurs
*/
private PointPropertyType encodeGeometry(Point point, String gmlId) throws EncodingException {
PointPropertyType ppt = PointPropertyType.Factory.newInstance(getXmlOptions());
ppt.setPoint((PointType) encodeGML(point, EncodingContext.of(XmlBeansEncodingFlags.GMLID, gmlId)));
return ppt;
}
Aggregations