Questions tagged [node-js]

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications

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

Installing Experience Builder in Offline Environment - Errors

I have followed the instructions provided by esri at this link, but I cannot get the Experience Builder to install properly in our offline DEV environment. https://developers.arcgis.com/experience-...
1
vote
0answers
14 views

Exporting a table from Earth Engine to Cloud Storage using the npm package

I try to export a table from Google Earth Engine to Cloud storage with a script that runs using NodeJS instead of the code editor. However, when running the script, no file is added to the Cloud ...
-1
votes
1answer
28 views

Using gdal_translate in node-gdal?

How can I use gdal_translate in node-gdal? I'm trying to use the following command: gdal_translate C:\test.tif cog.tif -co TILED=YES -co COPY_SRC_OVERVIEWS=YES -co COMPRESS=DEFLATE.
1
vote
1answer
27 views

Convert shapefile to JSON by using node js

I want to convert a big shapefile to JSON and store it inside MongoDB. Is there any tutorial to help me? Or any library that could help.
0
votes
0answers
27 views

Can I use ArcGIS REST-API "applyEdits" to update Feature-Layer as an authenticated user?

I'm using nodeJS to edit my Feature-Layer using REST API. My intention is to: Update my layer using Firebase Cloud-Functions Share my layer publicly But keep my layer non-editable for unauthorised ...
0
votes
0answers
69 views

Import GeoJSON object into PostGIS in JavaScript

I'm looking for a way to persist my GeoJSON object to a table in PostGIS, I've installed the ogr2ogr JavaScript library to achieve this; on this case this what I got so far: async function ...
1
vote
0answers
25 views

How to run topojson from Powershell?

I have already installed node.js and used it to install topojson via npm install topojson. But when I run command like topojson input.geojson -o output.topojson, I get the familiar error of topojson :...
1
vote
0answers
37 views

Getting data/geometry from Azure Database into Azure Maps

I'm currently working on a proof-of-concept where we're using an Azure Database as our data storage. I've got one table in there containing a few bits of information, and a geometry column (geometry ...
0
votes
0answers
70 views

Unable to find 'coordinates' in GeoJSON string error when creating controller API

I am trying to create an API to insert Geojson data into Postgres/PostGIS and I am getting the below error message when I try to make a post. Is there anything obvious that stands out where I could be ...
0
votes
0answers
98 views

How to show the horizontal zoom slider on the top right of the map

The below posted code is to show a map with zoom bar or slider. The code is taken from here: https://openlayers.org/en/latest/examples/zoomslider.html I attempt to show the zoom slider number three, ...
0
votes
1answer
240 views

Getting GeoJSON file to load in OpenLayers

I have validated the JSON and I'm certain it is clean. I'm loading it from a web server (using Node.js). The Firefox error is "Uncaught SyntaxError: JSON.parse: unexpected character at line 1 ...
0
votes
0answers
71 views

QWC2 build pipeline problems

I am trying to build the qwc2 demo app from https://github.com/qgis/qwc2-demo-app on a windows machine. I have a working QGIS server and a customized "themesConfig.json". After "git ...
0
votes
0answers
39 views

Can't install GitBook 3.2.3 from Geoext3 workshop

I am trying to setup the Geoext3 workspace based on this tutorial for web mapping aplication: https://github.com/geoext/geoext3-ws But i get this npm error after starting 'npm start', it can't install ...
0
votes
0answers
59 views

Is it necessary to sanitize GeoJSON/WKT inputs to Leaflet / Terraformer?

I am currently building a website which includes the following: a Leaflet map where users can draw polygons using Leaflet-draw (and enter other data using HTML forms) a paired text field where users ...
1
vote
0answers
23 views

Source controlling Esri Web AppBuilder Widgets and Themes

I'm not a JavaScript kind of guy but I'm trying to get ramped up in advance of some retirements of the people that have handled our web mapping applications (but whose savvy to source control ranges ...
2
votes
0answers
123 views

GeoJSON format (Geography) for posting in Postman tin PostgreSQL

I am trying to do an update posting on Postman for the first using PostGIS / Geography file type and I don't know where I am going wrong. I have included the model below of the table in pgamdin 4 / ...
0
votes
1answer
167 views

Leaflet's map.project(latlng, zoom) without a leaflet map instance

I am working with a leaflet app and I'm shifting a lot of the GIS calculations to the back end (a nodejs app). I need to be able to get the RGB value of a pixel given the latlng and the map zoom. (I'...
0
votes
0answers
46 views

Coordinate transformation npm for X,Y and Z values

Is there any direct node parameter libraries (npm) available to convert the X, Y, and Z values from one coordinate system to another? And are there any other methods for this conversion?
1
vote
0answers
114 views

How to create a tile from a TIFF stored in PostGIS using Mapnik in nodejs

I stored TIFF in the database using: raster2pgsql -c -C -s 4326 -f geom_raster -F -I evapo_01_201.tif -t 200x200 public.rasters | psql -U postgres -d gaaf -h localhost -p 5432 I think it's alright ...
2
votes
1answer
122 views

Clip MBTiles with BoundingBox

I have a relatively large worldwide raster mbTiles file from which I want to convert individual countries into new mbtiles. Unfortunately i fail to use tilelive which is actually predestined for this ...
1
vote
0answers
77 views

How to tile Mars themis raster for Cesium

I am trying to tile the Mars themis raster that has the following crs: PROJCS["SimpleCylindrical Mars", GEOGCS["GCS_Mars", DATUM["D_Mars", ...
0
votes
0answers
181 views

Uncaught TypeError: ol.control.Timeline is not a constructor

I have been trying to create a timeline in my openlayers map. However it shows that it is not a constructor. How to fix this? this is my code var tline = new ol.control.Timeline({ className: 'ol-...
0
votes
1answer
1k views

Executing task npm run test in Visual Code Studio stopped working

I was working normaly in Visual Code Studio and everything was ok, then stopped uploading my changes from js in localhost server page.With npm start and build:server is running and built. But npm run ...
0
votes
0answers
126 views

How to use node.js with ArcGIS Web AppBuilder to list files in a widget

I have built an ArcGIS Web AppBuilder and a custom popup (widget.js). My goal is to list every file in a specific directory (in 'wwwroot' folder) to the popup user. I didn't find any built-in ...
1
vote
1answer
332 views

How to get the co-ordinates of the clicked point using 'ol/Draw' in OpenLayers 6?

I am trying to create a measure tool using OpenLayers 6. I did get examples to measure distance and area using the ol/Interaction/Draw and ol/geom library classes. I want also to measure the ...
1
vote
0answers
206 views

WebSocket connection error with OpenLayers [closed]

I am new to OpenLayers and NodeJS. I have installed OpenLayers on my EC2 instance following exactly the instructions found on the OpenLayers website (https://openlayers.org/en/latest/doc/tutorials/...
1
vote
1answer
661 views

Using Node.js to cluster millions of points on the server side

Situation: I am testing out different visualization techniques for web mapping a data set that has about 2.5 million points and a lengthy set of attributes (almost 30 fields). So its quite a large ...
1
vote
1answer
54 views

Add WMS to OpenLayers after click

I have a working WMS service under http://localhost:8080/geoserver/nis/wms?service=WMS&version=1.1.0&request=GetMap&layers=nis%3Atest Also I have a Node JS application with OpenLayers. In ...
-1
votes
2answers
277 views

NodeJs library to convert ESRI point(x, y, wkid) to lat/lng

I use ArcGIS and get an array of ESRI points which I need to convert to lat/lng. I don't want to use the ArcGIS API, because it requires too many calls. Is there any library that can do the work for ...
3
votes
1answer
575 views

Earth Engine NodeJS API: Failed to load resource and CORS policy issue

I am developing a GEE nodeJS custom application. I have gone through the documentation and source(https://github.com/google/earthengine-api/tree/master/demos/server-auth-nodejs). I setup the service ...
3
votes
1answer
961 views

QWC2 first install

I'm trying to install QGIS Web Client 2 (QWC2) following instructions in "Quick start" documentation: https://github.com/qgis/qwc2-demo-app/blob/master/doc/QWC2_Documentation.md#quick-start So, I ...
-2
votes
1answer
783 views

Google Earth Engine API map deploy to a website

Can we convert Google Earth Engine code (i.e., which is written in GEE console) to JavaScript so that it can be viewed on a website/app? I have gone through the GEE API documentation (https://...
1
vote
1answer
426 views

Openlayers: Using PHP and npm

I've got a rather large MySQL database containing polygons (coordinates) and their additional properties (e. g. text labels in different languages). I would like to use PHP to connect to my database ...
0
votes
0answers
98 views

Incorporation the Ordnance Survey map to Sheetsee.js plugin for Leaflet/Mapbox

I am currently using this plugin: https://github.com/jlord/hack-spots which works really nice in conjunction with Google Sheets. My goal is to convert this site into my own purposes. One of the ...
1
vote
0answers
412 views

Finding boundary coordinates of user current location with a given radius

I have my current lat and lng details { "lat": 8.561032, "lng": 76.846333 } And from this I need to build a boundary around me with given radius. So How can I get the boundary ...
1
vote
1answer
47 views

Find a point in a polygon

How can I find all points in a polygon pass in queries: My column coord is a geometry point example, pseudo-code. select a.* from "table" as a where ST_WITHIN(a.coord, [lng1 lat1, lng2 lat2, lng3 ...
0
votes
0answers
91 views

Adding style to a published layer using GeoServer REST API with Node.js [duplicate]

Lets say I have a custom style in GeoServer and after I created a new layer, I want to add the style to that layer. I am using this link for documentation. function editLayerStyle(layerName, body) { ...
2
votes
1answer
550 views

Adding existing style while publishing a new layer in GeoServer using REST API

I have a function which publishes a layer in GeoServer with the REST API. Now I want to add an existing style in the layer while publishing it. Anyone has any idea where I write the style name or ...
0
votes
0answers
593 views

Transforming Alaska and Hawaii to be next to USA with TurfJS?

I'm working on an app that contains a map; right now, the map just includes the Continental US, but it would be great if Alaska and Hawaii could be included as well. So far, I've found shapefiles ...
1
vote
1answer
1k views

Creating and publishing a new layer in Geoserver using Geoserver Rest API

I want to publish a new layer in Geoserver. The layer seems unpublished and I get 'Undefined' error. const publish = function () { return new Promise((resolve, reject) => { const layer = ...
0
votes
1answer
115 views

Points in Polygon with ArcGIS-REST-JS library

I am trying to get the points in polygon with Node JS libraries. Using Simple JS, I can get using QueryTask. But there is no queryTask in Node lib. var queryFeat = require('@esri/arcgis-rest-feature-...
0
votes
0answers
252 views

Routing Engine written in JavaScript

I'm looking for a routing engine written completely in native JavaScript or Nodejs, which is distributed with an open source license So far the solutions I've found are implemented only in Java, C++ ...
0
votes
0answers
285 views

OL5 functions in JavaScript not working with NodeJS

So I made a weathermap with GeoServer and OpenLayers5. Works fine and all, but NodeJS keeps giving me a hard time. Does anybody know how this really works? Because I need input from the end-user, ...
0
votes
1answer
757 views

Function in OpenLayers 5 JavaScript does not work

I am making a weather application and it is essentially working. (It is my first GIS-application, so I am really glad with that!) It is just still very basic. I made de application with PostGIS, NPM ...
0
votes
1answer
393 views

NodeJS Geometry string from GPS coordinates before sending to DB?

I'm building an application that saves geographical data to the postgresql db with postgis extension. The data I'm saving is in EPSG 4326 WGS84 format, so I'm sending lat/lng coordinates to the ...
0
votes
1answer
2k views

CORS ERROR with own WMS GeoServer layers

I am building a weather application. For this I want to use OpenLayers as the base for my application and then I want to be able to add my own made layers from PostGIS with GeoServer to this ...
1
vote
1answer
2k views

Adding a position.watch and update feature to live map with leaflet.js?

I have an app working in node.js that locates a user and plots their location on a leaflet map. When others connect it shows them too. It keeps their marker live as long as they move the mouse. I ...
2
votes
1answer
906 views

LAS/LAZ parser for NodeJS

I cannot find any popular libraries for parsing (reading into memory) of LAS or LAZ (lidar data) files in NodeJS (desktop Javascript) https://github.com/yuyou/liblas4node/blob/master/lib/liblas.js ...
0
votes
1answer
240 views

Map tile not rendered on node-mapnik?

const mapnik = require('mapnik'); const sphericalmercator = require('@mapbox/sphericalmercator'); mapnik.register_default_fonts(); mapnik.register_default_input_plugins(); const TILE_HEIGHT = 256; ...
2
votes
0answers
269 views

Why does node Circle to Polygon module returns oval/ellipse instead of a shape like circle?

I'm using npm package circle-to-polygon and I wrote following code to return a polygon which is approximately like a circle. const circleToPolygon = require('circle-to-polygon'); let coordinates = [...