Git Product home page Git Product logo

go-tz's Introduction

go-tz's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-tz's Issues

Handle holes in polygons

[ugjka@ugjka tmp]$ sgpt "how are holes defined in geojson"
In GeoJSON, holes within polygons are defined using an array of linear rings. The first linear ring in the     
array represents the outer boundary of the polygon, and any subsequent linear rings represent holes within the 
polygon. Each linear ring is a closed line string that is defined by four or more positions, with the first and
last positions being equivalent.                                                                               

Here's an example of a GeoJSON polygon with a hole:                                                            

                                                                                                               
 {                                                                                                             
   "type": "Feature",                                                                                          
   "geometry": {                                                                                               
     "type": "Polygon",                                                                                        
     "coordinates": [                                                                                          
       [ // Outer boundary                                                                                     
         [100.0, 0.0],                                                                                         
         [101.0, 0.0],                                                                                         
         [101.0, 1.0],                                                                                         
         [100.0, 1.0],                                                                                         
         [100.0, 0.0]                                                                                          
       ],                                                                                                      
       [ // Hole                                                                                               
         [100.2, 0.2],                                                                                         
         [100.8, 0.2],                                                                                         
         [100.8, 0.8],                                                                                         
         [100.2, 0.8],                                                                                         
         [100.2, 0.2]                                                                                          
       ]                                                                                                       
     ]                                                                                                         
   },                                                                                                          
   "properties": {                                                                                             
     "name": "A polygon with a hole"                                                                           
   }                                                                                                           
 }                                                                                                             
                                                                                                               

In this example, the first array of coordinates defines the outer boundary of the polygon, and the second array
defines a hole within that polygon.    

Kazakhstan will switch to a single time zone, UTC+05:00, on March 1, 2024.

Hello!
We are using the latest version github.com/ugjka/go-tz/v2 v2.2.2. Since March 1, 2024, Kazakhstan will switch to a single time zone (Asia/Almaty + Asia/Qostanay => UTC+05:00) Wikipedia Time in Kazakhstan.

Asia/Almaty:
lat = 43.2363924,
long = 76.9457275

timezone, err := tz.GetZone(tz.Point{Lon: long, Lat: lat}); // => '2024-01-01T00:00:00+06:00' (โœ…)

timezone, err := tz.GetZone(tz.Point{Lon: long, Lat: lat}); // => '2024-05-05T00:00:00+06:00' (โŒ)

Do you have an update time zone database plan later?
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.