Hot answers tagged

3

The AIVDM/AIVDO protocol decoding site contains the answer but there is a lot to sift through there. To answer the question posed, this is from the aforementioned site in that format: Here is a typical AIVDM data packet: !AIVDM,1,1,,B,177KQJ5000G?tO`K>RA1wUbN0TKH,0*5C And here is what the fields mean: Field 1, !AIVDM, identifies this as an ...


3

You were very close! This was quite tricky actually as the ArcGIS REST API documentation didn't explain much. According to the requests docs, you can explicitly set the content headers. This worked for me: import requests import os token = 'K6ZZZsf0Xtf...........PLNffN03fWcA..' url = ...


3

Basically you just need a PHP script that acts as a middle man and does the fetching for you, then returns what it gets directly to the client. I converted your JS snippet above into the relevant parts below. Notice that the url in your Leaflet tileLayer example has been changed to a PHP endpoint with URL parameters: ?s={s}&z={z}&x={x}&y={y} ...


2

I have developed a package to do these kinds of tasks on GitHub. To enable/disable extensions, you can just do something like this: from restapi import admin #can also use full namespace restapi.admin # authentication params url = 'http://someserver.yourdomain.com:6080/arcgis/admin/services' usr = 'username' pw = 'password' # login to server, use ...


1

I think you need to be using esri/layers/FeatureLayer somewhere in here, because the maps.map.addLayer method is expecting a layer class as input. It looks like you're just passing in a json object instead of a layer class object. Trap the URL from your esriRequest and build a new FeatureLayer from it, something like: featLayer = new ...


1

There is a good github repository of Kurt Schwehr who works at the Center for Coastal and Ocean Mapping (to track whale activities for example). There you will find a decoder and documents to understand the nmea messages (mostly links menioned by the posts of @ianmayo and @GID Dev). Here is a small howto running under LINUX and python 2.7. To get some code ...



Only top voted, non community-wiki answers of a minimum length are eligible