Questions tagged [geojsonio]
The geojsonio tag has no usage guidance.
18
questions
0
votes
0answers
73 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/...
0
votes
0answers
21 views
Can i remove country borders from GeoJson file
I am using ECharts for the first time and I imported a world map file from geojson.io, I would like the map to have no country border.
Currently, I have this
and I want to make it into this
Please ...
0
votes
1answer
223 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
1answer
86 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
1answer
15 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
0answers
31 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
0answers
32 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
1answer
161 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
1answer
157 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
1answer
5k 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
2answers
55 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
0answers
48 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
1answer
78 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"]({{...
0
votes
0answers
154 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
1answer
1k 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
1answer
242 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
1answer
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
1answer
163 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/...