index.d.cts 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import { GeoJSON } from 'geojson';
  2. /**
  3. * GeoJSON equality checking utility.
  4. * Adapted from https://github.com/geosquare/geojson-equality
  5. *
  6. * @memberof helpers
  7. * @type {Class}
  8. */
  9. declare class GeojsonEquality {
  10. private precision;
  11. private direction;
  12. private compareProperties;
  13. constructor(opts?: {
  14. precision?: number;
  15. direction?: boolean;
  16. compareProperties?: boolean;
  17. });
  18. compare(g1: GeoJSON, g2: GeoJSON): boolean;
  19. private compareCoord;
  20. private compareLine;
  21. private fixStartIndex;
  22. private comparePath;
  23. private comparePolygon;
  24. private compareGeometryCollection;
  25. private compareFeature;
  26. private compareFeatureCollection;
  27. private compareBBox;
  28. }
  29. declare function geojsonEquality(g1: GeoJSON, g2: GeoJSON, opts?: {
  30. precision?: number;
  31. direction?: boolean;
  32. compareProperties?: boolean;
  33. }): boolean;
  34. export { GeojsonEquality, GeojsonEquality as default, geojsonEquality };