Questions tagged [geojsonio]
The geojsonio tag has no usage guidance.
21
questions
0
votes
0
answers
111
views
geojsonio::geojson_read error for a geojson file "conversion from feature type sfc_GEOMETRY to sp is not supported"
I downloaded a geojson file of Iraq's electrical grid from EnergyData. You can download the file yourself here:
https://development-data-hub-s3-public.s3.amazonaws.com/ddhfiles/145188/electric-network-...
0
votes
1
answer
305
views
How to create a geojson file from an image overlay?
I am looking for a way to create a geojson file from the distributions of the health sectors in my region which are different than any political division readily available on osm:
There are fantastic ...
0
votes
0
answers
92
views
How to create choropleth maps using custom shape file, sf package & highcharter?
I am new to geospatial data & have worked with sf package couple of times but still new to this domain.
I was referring to this jkunst blog to create choropleth maps using highcharts with custom ...
1
vote
1
answer
186
views
Creating GEOJSON files in R using GEOJSON_WRITE
I am new to geospatial data and I am trying to convert a csv to GEOJSON using geojsonio and sf packages. I want my output to be in this format
{
"type": "...
0
votes
0
answers
258
views
Error using geojson_read -- sp::CRS(SRS_string = from$wkt) : unused argument (SRS_string = from$wkt)
I'm pretty new with geospatial manipulation in R. I've tried to load in R a map of italy, with this code:
library(geojsonio)
library(sp)
map<-geojson_read("https://raw.githubusercontent.com/...
1
vote
1
answer
902
views
Export SpatialPolygonsDataFrame as geojson or topojson in R
I am trying to convert a geojson of London local authorities into a hex cartogram where each hexagon represents one local authority. It works in R but when I try to export the generated hexgrid as ...
0
votes
1
answer
201
views
Error in rgeos::createPolygonsComment(oobj) : orphaned hole using geojsonio in R
Im am trying to create a .geojson file in my local repository for this output. I am downloading the file locally, making my adjustments and writing input21.geojson, however, I get the message:
Error ...
0
votes
1
answer
28
views
Geojson fails to render correctly
Am trying to create a geojson map of a community forest. I created this geojson file by hand and it loads correctly in QGIS but doesn't work on geojson.io
Could anyone spot what I am doing wrong.
...
0
votes
0
answers
40
views
geojson not able to populate us regions map
I need to show few regions in US in different colors, I've generated the json from http://geojson.io/, but it is not getting populated for me.
const containerElement = document.querySelector('....
1
vote
0
answers
36
views
Convert edit_feature into an sp object
Drawing a polygon using R leaflet, how can the drawn object be converted into an sp object? The goal is to use it for filtering spatial points.
library(leaflet.extras)
library(sp)
library(geojsonio)
...
-3
votes
1
answer
300
views
How to add multiple lat longs when converting to csv to gejson format in R
I have lat/longs of a particular area. How do I insert multiple lat/lons corresponding to a single area in CSV file? I am just using random numbers right now in my CSV file. I have attached a ...
0
votes
1
answer
227
views
R sf: extract nested geoJSON features nested inside a JSON
I have a JSON file that has geoJSON feature collections nested inside of it.
Is it possible to read in the JSON file using jsonlite::read_json(), extract the geoJSON bits, and then convert the ...
0
votes
1
answer
7k
views
Parsing GeoJSON Data to Polygon using Java
I have following Geo JSON file data which i want to parse in Polygon(using java)
Geo JSON File
[
{
"_id": "58a58bf685979b5415f3a39a",
"updatedAt": "2017-03-27T14:04:34.470Z",
"...
2
votes
2
answers
70
views
How to preserve IDs with geojsonio package?
I am trying to read a topoJSON file generated with geojsonio package: https://raw.githubusercontent.com/pachamaltese/chilemaps/master/data-raw/r15_arica_y_parinacota.json
Here's a preview of the ...
0
votes
0
answers
53
views
Issue in loading geojson from CSV in R
I am trying to load Geojson string into R, which was stored as a character string in CSV and then declare it as geojson by
as.geojson function. But the json validation is failing as shown.
> ...
0
votes
1
answer
123
views
Missing data for geojson
I made the following query in overpass-turbo
[out:json][timeout:25];
// gather results
(
// query part for: “amenity=hospital”
node["amenity"="hospital"]({{bbox}});
way["amenity"="hospital"]({{...
1
vote
0
answers
184
views
Read a geojson file with mixed geometries geojsonio::geojson_read
I am trying to create a chorpleth of Belgium in shiny (R) using this geojson file (github view). I am following the tutorial of rstudio to get the basics right. While doing this I encountered the ...
1
vote
1
answer
2k
views
display() in geojsonio gives 401 error
I am trying to Visualize a geojson file.
import geojsonio as gj
contents = open("taluk.geojson").read()
gj.display(contents)
But it gives the below error:
AuthenticationFailed ...
1
vote
1
answer
322
views
How to draw polygons sharing exact same edges (borders) using Leaflet Draw
Using geojson.io page I want to draw some districts/countries.
I'm drawing each district separately as there is no multipolygons in Leaflet Draw. However when I'm drawing the borders even with maximum ...
0
votes
1
answer
2k
views
Changing style color of geoJSON polygon, but the geojson is not showing up
My layer won't appear, I've used Leaflet's example and it is still not showing up.
Here is a snippet demonstrating the problem.
// Setting map point of view with L.map and set view
var map = L....
0
votes
1
answer
204
views
How to load properties table of topojson in R as a dataframe?
I'm trying to read the properties table into r as a dataframe.
I'm using geojsonio.
library('geojsonio')
Then I load my topojson file.
house_map <- topojson_read("./tl_2016_us_cd115/...