twpayne/go-proj

Issue with projection using ESRI:102113

Closed this issue · 1 comments

Thanks so much for you help so far. I am still not getting the same results as I import in QGIS. I am just trying to convert web mercator 84 to wgs 84, but my results are ending up in the atlantic. I have copied over the proj config directly from qgis as well to test if that was the issue. Any help would be appreciated.

	var complaints []complaint_feature

	pj, err := proj.NewCRSToCRS("ESRI:102113", "EPSG:4326", nil)
	if err != nil {
		fmt.Println("Issue with pj")
		return
	}
	for _, row_items := range records[1:] {
		x, err := strconv.ParseFloat(row_items[24], 64)
		if err != nil {
			fmt.Println(row_items[23])
			fmt.Println("issue with x float conversion")
			x = 0
		}
		y, err := strconv.ParseFloat(row_items[23], 64)
		if err != nil {
			fmt.Println("issue with y float conversion")
			y = 0
		}

		coord := proj.NewCoord(x, y, 0, 0)
		proj_coord, err := pj.Forward(coord)
		if err != nil {
			fmt.Println("issue with forward")
			continue
		}

good.json
bad.json

This repo is for the Go bindings to PROJ. Your question sounds more like a general PROJ question. Please ask on the PROJ mailing list.