Questions tagged [geojsonio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

Why is there no output for mapview() command in R 4.2.2 (August 2023)?

After installing the "mapview" package in R 4.2.2 and importing its library into a Jupyter notebook, I cannot create any maps. Although the data is loaded, any attempt to render a map figure ...
scottmgeol's user avatar
0 votes
0 answers
52 views

How to avoid the right (info) sidebar when I open geojson.io via API?

I've written a Python function to open a geojson.io page with JSON data following these instructions. My function works fine but, when I call it, I can't stop the right info sidebar (the bar that ...
Jesus R.'s user avatar
0 votes
1 answer
114 views

Convert a geojson file to data.frame (from Eurostat) and make a map

I am trying to convert an Eurostat's geojson file here to a dataframe using packages geojsonio and broom, but when the file is converted into the dataframe using the broom::tidy() function many of the ...
Bruno Guarita's user avatar
0 votes
0 answers
149 views

Not able to properly convert the osm data to geojson with osm2geojson on python

I am running into an issue when converting osm data to geoJson data using osm2geojson. Here is a piece of code that I am using to convert the data. ` def get_osm_geometry(osm_id): retries_left = ...
user14607939's user avatar
0 votes
0 answers
410 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-...
November2Juliet's user avatar
1 vote
1 answer
2k 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 ...
G. Macia's user avatar
  • 1,284
2 votes
1 answer
2k 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": "...
brad7192's user avatar
0 votes
0 answers
296 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/...
Antonella's user avatar
4 votes
1 answer
2k 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 ...
console.log's user avatar
0 votes
1 answer
307 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 ...
motipai's user avatar
  • 328
0 votes
1 answer
160 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. ...
Arky's user avatar
  • 380
0 votes
0 answers
82 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('....
Poulomi Basu's user avatar
1 vote
0 answers
38 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) ...
Vlad's user avatar
  • 3,108
-3 votes
1 answer
409 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 ...
Daman deep's user avatar
0 votes
1 answer
312 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 ...
jane's user avatar
  • 385
1 vote
1 answer
9k 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", "...
Arun Kumar's user avatar
  • 6,624
2 votes
2 answers
76 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 ...
pachadotdev's user avatar
  • 3,419
0 votes
0 answers
68 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. > ...
Dinesh's user avatar
  • 401
0 votes
1 answer
187 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"]({{...
asimkon's user avatar
  • 943
1 vote
0 answers
238 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 ...
Robin VdE's user avatar
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 ...
Tom J Muthirenthi's user avatar
1 vote
1 answer
462 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 ...
Pawel Stadnicki's user avatar
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....
codewanderer's user avatar
1 vote
1 answer
288 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/...
Union find's user avatar
  • 7,886