Questions tagged [geojsonio]

24 questions
0
votes
0 answers

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…
0
votes
1 answer

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 in rgeos::createPolygonsComment(oobj) :…
motipai
  • 328
  • 3
  • 10
0
votes
1 answer

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. Sample GeoJson file
Arky
  • 380
  • 1
  • 4
  • 15
0
votes
0 answers

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('.country-map-container'); const containerWidth =…
0
votes
1 answer

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 resulting list to a sf object? The alternative is to…
jane
  • 385
  • 1
  • 4
  • 14
0
votes
0 answers

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. > geo2_geojson <- geojson::as.geojson(test1) Error in…
Dinesh
  • 391
  • 2
  • 9
0
votes
1 answer

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"]({{bbox}}); …
asimkon
  • 915
  • 1
  • 14
  • 21
0
votes
1 answer

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.map('map').setView([47.656896, -122.307511],…
-3
votes
1 answer

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 screenshot to show my CSV file. I don't want single…
Daman deep
  • 631
  • 3
  • 14
1
2