Tag Info

Hot answers tagged

2

Looking at the map that you have given, One can see that the points are coming close to the expected point, and are about 1 Degree Away. Lokking at your data, I can see that your code is converting -122.0, 40.0, 4.0819802 to -121.33219944994444 when it should be -122.66780055005556 This tells me that while you are flipping the sign of the Degree ...


2

I'm not sure who you consulted, but this doesn't seem like great advice. The problem seems to be not one of negative values but more the order of x and y co-ordinates. A latitude (y) can only be in the range of -90 to +90. Longitude (x) can be -180 to +180, broadly speaking. These co-ordinates are from the equator and the Greenwich meridian, respectively. ...


1

If you think of accuracy of distance measurement, mercator or transverse mercator with lat_0 and lon_0 set to the center of your area will do fine. Mercator has true lengths along the latitude, while transverse mercator has them along the meridian. So it depends on the format of your area which one is better. You can use omerc if you need a rotated grid.


1

Yes, if you are using PostGIS data source. For CartoCSS, use marker-transform: rotate([angle], 0, 0);. The hard part is adding that angle column to the table. To do that, add a column to your SQL query, which looks like this: ( select degrees(ST_Azimuth(ST_StartPoint(inter), ST_EndPoint(inter))) from ( select ST_Intersection(r.way, ST_Buffer(p.way, ...



Only top voted, non community-wiki answers of a minimum length are eligible