4,357 questions
0
votes
0
answers
93
views
D3 GeoJSON generated from TopoJSON renders some but not all features.. why is this?
I am trying to render a congressional boundaries map using d3. I am able to do this with the plain geojson file, but because it is quite large, I was trying to trim it down geo2topo. Now when I try to ...
-1
votes
1
answer
51
views
How to get data from responseJSON object? [duplicate]
I have the below javascript;
var XX = $.getJSON("skiareas-polygons.geojson",function(data){
// add data to map
L.geoJson(data, {
style: function (feature) {
...
-1
votes
1
answer
106
views
Python/Pyspark, return geojson record with Z values / Truncate Z
I have a dataframe with a column called 'geometry', it contains Multipolygon and Polygon values. I want to use Pyspark or Python to find and return where coordinates contain [X, Y, Z]; also would like ...
0
votes
1
answer
93
views
When I make a new Geojson file by geojson.io, do I need to fit to the exact the border of each region?
I am making a geojson file of Berlin by myself. I am using geojson.io because it is very easy to use.
When I draw the poligon, if the line is out of border of Berlin, is there any problem? I think ...
0
votes
1
answer
36
views
Openlayers geojson-vt : Why no features are generated?
I implemented openlayers geojson-vt example. I try to load a genuine geojson...
I don't understand why no features are generated:
sandbox demo
Where is the issue causing the difference with openlayers ...
1
vote
1
answer
128
views
converting geojson coordinates to plot correctly on folium in Python
To start here is an example of the geojson data:
WESTERN NORTH PACIFIC ROMS GeoJSON: {
"type": "Polygon",
"coordinates": [
[
[
-77.52046966552734,
...
0
votes
1
answer
61
views
Using D3.js for rendering map but the resulted map is too small
I'm using D3.js for drawing map of Vietnam. I fetch a GeoJSON data from an URL (in the code), I following a lot of instructions, from converting to TopoJSON (for compact size) then convert back to ...
0
votes
1
answer
247
views
Ogr2ogr: How do I merge 2 geojson files?
I'm attempting to combine 2 geojson files using ogr2ogr, but I'm getting the following errors:
Running this from a windows cmd window:
ogr2ogr PROW.geojson Rural.geojson Urban.geojson
Returns this:
...
0
votes
1
answer
524
views
Convert Geometry to 4326 in NetTopologySuite
I have a GeoJson file whose geometries are in 3857.
I want to read it using C# and insert its rows in a postgres table and I want the geometries there to be in 4326.
Also, I have some other files in ...
0
votes
0
answers
93
views
Trying to show shapefile in folium through javascript
I have a shapefile with postal codes in Belgium. In addition I have a distance-matrix from store-locations of one brand to all postal-codes. I managed to add markers to my map in PyQt5 QMainWindow ...
0
votes
0
answers
42
views
MongoDB - $geoIntersects is not working looking polygon with location
I want to search for the document with my location, depending on whether I am within the polygon.
I have a document like this
{
...
"points": {
"coordinates": [
[
...
1
vote
1
answer
73
views
Why doesn't d3 like this GeoJSON file?
Does anyone have any idea why D3 is failing to render the following GeoJSON?
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<svg width="960" height="720"></svg>
&...
0
votes
1
answer
513
views
How to Override CSS and JS in Folium Map Implementation?
All I want is to override the CSS of my Folium map. When I override the styles in my template, they do not reflect on my Folium map. However, when I edit the CSS in the browser's developer tools, it ...
0
votes
1
answer
50
views
Geojason serializer is giving null geometry
I'm having the same issue found in this question, though it was supposedly fixed in Django 1.9, so I thought maybe I'm doing something wrong.
I'm trying to serialize my geodjango data:
homes = ...
0
votes
1
answer
208
views
graph_to_gdfs not working even with simple examples
I'm using osmnx and networkx modelues in Python to convert a sumo network into a geojson file.
I've got an error when using graph_to_gdfs
I've tried this simple example after trying on a more ...
1
vote
0
answers
91
views
deck.gl GeoJSON point layer not extruding
I have a GeoJSON layer in deck.gl which I'm trying to extrude based on the elevation property.
E.g.
{
"type": "Feature",
"geometry": {
...
0
votes
1
answer
80
views
Highcharts / highmaps GeoJSON map appears distorted and squashed
I have created a simple chloropleth of UK regions in highcharts, inclusive of countries other than England (North East, Wales, West Midlands, etc.) and I am using this public domain GeoJSON map.
I am ...
0
votes
0
answers
51
views
How can I check if a Point, which is in one dataframe, is in the Polygon which is located in the second dataframe in pyspark?
I have two files: one contains data on taxi trips in NYC and the other is a GeoJSON file with the borough boundaries of NYC. I need to create two new columns in the taxi trip dataframe. These columns ...
0
votes
1
answer
321
views
Problem with config file in Keplergl Python
I want to build an news interactive map. The app would get latest news of a website, try to regex location of news and if so, insert them as points in a map, where a user could navigate and click on ...
1
vote
0
answers
66
views
Why is JSON automatically being converted to NSDictionary and how can I stop it? Want to convert to MKGeoJSONFeature
So there are a lot of questions on here about how to convert JSON to an NSDictionary, but nothing I've found on how to stop it from happening in the first place.
I'm trying to develop an app. Part of ...
0
votes
0
answers
34
views
Styling GeoJSON features from a select html give me an error
I continue working on the style classification of GeoJSON features based on the selection in a select html. The function that defines a general style classified by colors works without problem if i ...
0
votes
1
answer
407
views
Can't import geojson file (SyntaxError: Unexpected token ':' ) in sveltekit
I tried to implement geojson-vt in my sveltekit project, however, it stopped just when I wanted to load my geojson file.
+page.svelte:
<script>
import geojsonfile from '$lib/some_file....
0
votes
1
answer
162
views
How do I convert the shape values in a shapefile to a JSON string?
I'm trying to convert from Shape to a JSON string but I couldn't create a string for Polygon, I searched but I couldn't find something that helps me.
In the code shows other types different to polygon ...
0
votes
1
answer
162
views
How to import Revit room into a Power BI report? Or create a topojson/geojson file from Revit rooms?
I am attempting to import data from Revit rooms into an interactive Power BI report. I would like to bring the room geometries into the PBI report and link it with external data tables, creating ...
0
votes
0
answers
65
views
Mongoose GeoJSON query within two radius
I'm working with this schema:
const mongoose = require("mongoose");
const { rideStatus } = require("../utils/rideStatus")
const rideSchema = new mongoose.Schema(
{
...