@@ -323,7 +323,7 @@ static Size GetSize(LineString value)
323323 {
324324 var coordinates = value. Coordinates ;
325325 if ( NotValid ( coordinates , out var hasZ ) )
326- throw AllOrNoneCoordiantesMustHaveZ ( nameof ( LineString ) ) ;
326+ throw AllOrNoneCoordinatesMustHaveZ ( nameof ( LineString ) ) ;
327327
328328 var length = Size. Create ( SizeOfHeaderWithLength + coordinates . Count * SizeOfPoint ( hasZ ) ) ;
329329 if ( GetSrid ( value . CRS ) != 0 )
@@ -344,12 +344,12 @@ static Size GetSize(Polygon value)
344344 {
345345 var coordinates = lines [ i ] . Coordinates ;
346346 if ( NotValid ( coordinates , out var lineHasZ ) )
347- throw AllOrNoneCoordiantesMustHaveZ ( nameof ( Polygon ) ) ;
347+ throw AllOrNoneCoordinatesMustHaveZ ( nameof ( Polygon ) ) ;
348348
349349 if ( hasZ != lineHasZ )
350350 {
351351 if ( i == 0 ) hasZ = lineHasZ ;
352- else throw AllOrNoneCoordiantesMustHaveZ ( nameof ( LineString ) ) ;
352+ else throw AllOrNoneCoordinatesMustHaveZ ( nameof ( LineString ) ) ;
353353 }
354354
355355 length = length . Combine ( coordinates . Count * SizeOfPoint ( hasZ ) ) ;
@@ -678,7 +678,7 @@ static int SizeOfPoint(EwkbGeometryType type)
678678 static Exception UnknownPostGisType( )
679679 => throw new InvalidOperationException( "Invalid PostGIS type") ;
680680
681- static Exception AllOrNoneCoordiantesMustHaveZ ( string typeName )
681+ static Exception AllOrNoneCoordinatesMustHaveZ ( string typeName )
682682 => new ArgumentException( $"The Z coordinate must be specified for all or none elements of { typeName} ") ;
683683
684684 static int GetSrid ( ICRSObject crs )
0 commit comments