[postgis-tickets] [PostGIS] #5084: Bad rasterization of linestring

PostGIS trac at osgeo.org
Sat Feb 12 13:50:53 PST 2022


#5084: Bad rasterization of linestring
----------------------+---------------------------
  Reporter:  gvuidel  |      Owner:  robe
      Type:  defect   |     Status:  new
  Priority:  high     |  Milestone:  PostGIS 3.0.6
 Component:  raster   |    Version:  3.2.x
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by robe):

 * milestone:  PostGIS 3.2.1 => PostGIS 3.0.6


Comment:

 Just for clarity since ST_AsRaster has so many overloads I'm rewriting
 your query using named arguments.


 {{{
 -- bad
 SELECT ST_AsRaster('LINESTRING(986015.7 6720291.2,986024.3 6720347,986028
 6720417.4,986025.6 6720474.3)'::geometry,  scalex =>2,  scaley =>2,
 gridx =>0,  gridy => 0)::geometry


 -- good
 SELECT ST_AsRaster('LINESTRING(986015.7 6720291.2,986024.3 6720347,986028
 6720417.4,986025.6 6720474.3)'::geometry,  scalex =>2,  scaley =>2,
 gridx =>0.1,  gridy => 0.1)
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5084#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list