Questions tagged [rasterize]

107 questions
1
vote
2 answers

Rasterize polygons in R using snowfall & sfLapply

I would like to rasterize a very large vector file to 25m and have had some success with the 'cluster' package, adapting the qu's here and here, which worked nicely for that particular data. However I now have a larger vector file that needs…
Sam
  • 1,400
  • 13
  • 29
1
vote
1 answer

What do various values of "fun" do when rasterizing a query?

I'm wanting to rasterize a polygon (shapefile; values of 1 and 2; 1 = outside a protected area, 2 = inside a protected area), to a 1 minute resolution raster. I'm using rasterize. Can anyone please tell me what does using fun= first or fun= last…
1
vote
0 answers

Gnuplot - pdf filesize increases when removing tilt

When I plot a densityplot using something like plot 'xyz.dat' w image u 1:2:3 the filesize is nice and small how it should be. However if I remove an experimental tilt with plot 'xyz.dat' w image u 1:($2+tilt*$1):3 the figure is not rendered…
M. Niklas
  • 93
  • 5
1
vote
0 answers

PhantomJS (CentOS) draws circles not smoothly on Acrobat Reader

When using PhantomJS on CentOS I have a kind of weired Problem. On each PDF I create with the rasterize.js I have circles, which will be drawn pixelated in the pdf if viewing with the Acrobat Reader, but it will look good on the Google Chrome PDF…
datprog
  • 31
  • 4
1
vote
1 answer

Extract vertices from an ARC in generic way

I want to get all the vertices from an ARC. I have all the data (for ex : start point, end point, start angle, end angle, radius) which will used to draw an arc but my need is I have to generate all the vertices from the arc data. I have already…
1
vote
1 answer

toDataUrl rasterizehtml.js not working

I am using rasterizehtml.js plugin to render my html into canvas! I got some issues but managed to fix all of them except the very important one. I am getting problems with toDataUrl(); it shows that it is blocked. I googled a lot. There were some…
1
vote
1 answer

extract raster pixel value as well as pixel xy coordinates using a SpatialLine object in R

I have a Spatialline that I converted from a polygon shapefile (digitized manually based on features in "imagebrick" - this means that spatially the "polyline" and "imagebrick" are overlapped as I wanted) polyline <-…
nomoreraster
  • 13
  • 1
  • 5
1
vote
1 answer

Layer won't rasterize using raster package in r

I'm having trouble rasterizing a shapefile using the raster package in R. shp<-shapefile(ZoneShape); lcRas<-raster(lcRaster); r<-raster(ncol=ncol(lcRas), nrow=nrow(lcRas), crs=CRS); res(r)<-res(lcRas); extent(r)<-extent(lcRas); >r class :…
RichT
  • 304
  • 1
  • 3
  • 13
1
vote
0 answers

SVG Salamander image

I have been trying to process and rasterize an svg file using SVG Salamander & Java during the last couple of days and just can't get it to work. Here is my SVG file, which is generated by Adobe Illustrator. It basically contains some random text,…
user1774249
  • 73
  • 2
  • 6
1
vote
1 answer

svg inside svg is rasterized causing blury results when scaling up

I'd like to embed an external SVG image file within an tag. To do this, i'm using SVG's tag as follows:
ksullivan
  • 496
  • 1
  • 7
  • 12
1
vote
1 answer

Issue when running canvas.toDataURL('image/png') in IE9 --> SCRIPT122: La zone de données passée à un appel système est insuffisante

I've an issue with the following line in IE9: canvas.toDataURL('image/png') When I run this line, IE9 doesn't display my PNG and gives me this error: SCRIPT122: La zone de données passée à un appel système est insuffisante Does it mean that the…
Zorkzyd
  • 929
  • 3
  • 12
  • 30
0
votes
0 answers

Rasterize irregular grid geocube python: Loosing points at higher resolution

I'm trying to convert a dataframe with an irregular grid to a regular rectilinear grid. I'm currently using the VIIRS hotspot data and the code below should allow people to read in the csv in a colab notebook or from a local machine !pip install…
scriptgirl_3000
  • 161
  • 3
  • 16
0
votes
1 answer

conditional disaggregation of coarse raster to high resolution raster

I have a raster that tells me fraction burnt area in a cell class : SpatRaster dimensions : 128, 256, 1 (nrow, ncol, nlyr) resolution : 1.40625, 1.400437 (x, y) extent : -180.7031, 179.2969, -89.62795, 89.62795 (xmin, xmax, ymin,…
89_Simple
  • 3,393
  • 3
  • 39
  • 94
0
votes
0 answers

Transformation and export from R of a ggplot map to raster file (tiff)

[![enter image description here][1]][1] .[![enter image description here][2]][2] Can you please help me with this situation? [1]: https://i.stack.imgur.com/Xxp7D.png [2]: https://i.stack.imgur.com/XUm8B.png
Dimitris K
  • 33
  • 5
0
votes
0 answers

Rasterizing point-source data

I downloaded point-source data of the bumblebee distribution in Europe (Suppl. material 5 from https://doi.org/10.3897/oneeco.3.e28143). I'm only looking at the composite probability and want to rasterize the data. However, I keep getting errors and…
kar-g
  • 1