Skip to content

Commit

Permalink
fixed type case issue for SRID. #161
Browse files Browse the repository at this point in the history
  • Loading branch information
ARolek committed Feb 10, 2018
1 parent 879ac54 commit b1fcffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atlas/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (m Map) Encode(ctx context.Context, tile *slippy.Tile) ([]byte, error) {
// check if the feature SRID and map SRID are different. If they are then reporject
if f.SRID != m.SRID {
// TODO(arolek): support for additional projections
g, err := basic.ToWebMercator(int(f.SRID), geo)
g, err := basic.ToWebMercator(f.SRID, geo)
if err != nil {
return fmt.Errorf("unable to transform geometry to webmercator from SRID (%v) for feature %v due to error: %v", f.SRID, f.ID, err)
}
Expand Down

0 comments on commit b1fcffb

Please sign in to comment.