static public void encodeGeography ( final FastSerializer fs , GeographyValue value ) throws IOException { ByteBuffer bb = ByteBuffer . allocate ( value . getLengthInBytes ( ) ) ; bb . order ( ByteOrder . nativeOrder ( ) ) ; value . flattenToBuffer ( bb ) ; byte [ ] array = bb . array ( ) ; fs . writeInt ( array . length ) ; fs . write ( array ) ; }
Encode a GEOGRAPHY according to the Export encoding specification .