We help IT Professionals succeed at work.

GIS/GPS Programming

The Global Positioning System (GPS) is a space-based global navigation satellite system (GNSS) that provides reliable location and time information in all weather and at all times and anywhere on or near the Earth when and where there is an unobstructed line of sight to four or more GPS satellites. A geographic information system (GIS) or geospatial information system is any system that captures, stores, analyzes, manages, and presents data that are linked to location(s). In the simplest terms, GIS is the merging of cartography, statistical analysis, and database technology.

We set up a QGIS server and are using QGIS to connect to a WFS layer. Everything is working fine within the desktop application. Then we use qgis2leaf to generate a html/js web map. That all works fine, except when I use the WFS layer. For some reason I am getting the Unexpected token < error, as can be seen here (http://qgis.webmuni.com/export).

So basically what I think is happening is that the call that is made is (http://qgis.webmuni.com/qgis_mapserv.fcgi?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=zones2&SRSNAME=EPSG:4326&outputFormat=text/javascript&format_options=callback:processJSON) and it expects it to return JSON, but the server is returning XML.

I don't know why the server wont return JSON(P) and I am not sure if there is something I am doing wrong or if we need to configure the server in some way to enable JSON capabilities.

Thank you in advance for your help.
0
Hi,
My scenario is : I have to create a route by selecting  a 10 points (bus stops) on the google maps and save Lat, long and street addres of this points. Its possible !? I`m using a PHP and JQuery.

Can anyone help me to this implementation ?

Thanks in advance !
0
Hi Experts

I'm new in Mapbox.

Trying to reconstruct the maps Mapbox Studio doesn't recognize the .kml I used on the site, the error appear:

img_EE_01_29102015.png
Do you know why?

I create some projects in the site www.mapbox.com  with the same kml(s) and would like to export it to Mapbox Studio, too, how could it be done?

Thanks in advance!
0
I believe that the name for a circle with a circular hole in the centre is an Annulus.

Is there a mathematical name for a square with a square hole in it ?
0
I am interested in developing a mobile app to track GPS devices, and am curious which among the mobile-friendly mapping sources would best meet my needs.  

I'm looking for either a free service, or a low-cost one, which is scalable, lightweight and able to render points quickly.  

My source data will have 10-20 thousand records (and hopefully more moving forward), and approximately 20 fields of data, although my API might not expose all records and all fields depending on the call.  

Note that I'm interested in using a framework such as PhoneGap or Ionic to develop in one language and compiled into native Android or iOS code.  If there are considerations for how the different free or low-cost mobile-friendly mapping sources would play with those frameworks (or the code they produce), thoughts on that would be appreciated.
0
How to restrict autostarting GPS/Location service of my HUAWEI G730-U00? Eversince late in last week that my phone's location service has been  auto starting despite my attempts to switch it off.
0
Custom icon customicon.pngDefault icon defaulticon.png
You see how the letter label for the custom icon is misplaced.
Where and how can I access the position settings for this letter.
Note that all is swell if not using a custom icon and also this custom icon is the exact same size as the default.
0
Dear experts,

I need help I have a license server that is hosting ArcGIS network licenses and I want to move it to another server. I have built a new server and just want to know what's next. The desktops in the environment are not using any environment variables and I want this done quickly.

I need to follow proper procedure so the production environment is not disturbed and also the old license server and the new one still remains accessible. The old server will have other licenses when I move the ArcGIS license.

Any suggestions will be helpful.
0
HI

Where or how to get  people movement data such as the one in Google timeline please?

I am very interested in data like this if anybody knows please let me know asap.

Thanks
0
I am working on a google map application .  I am trying to determine if a certain lat and long are in a polygon

I think my problem is my java syntax

I am using the following code but  does not work
var content=[];

	for(var h=0;h<arr.length-1;h++) {

	content.push(responsetime((arr[h][0], arr[h][1]),'MillvilleGeoFence');
	} 

Open in new window


The function is

function responsetime(lat, lng,geofencetest)
    {
		var myTestPoint = new google.maps.LatLng(lat, lng);                                                                                                                                                                                                  
		var rt= containslocation(myTestPoint,geofencetest);  
		return rt;
        
    }

Open in new window


Thank you
0
I have a Google Fusion Table,  which is a geographic geometric place,  renders fine in GoogleFusion.  I am trying to get it to display on my google map using the following code.  Can anyone see why it doesn't render the shape.  Map renders fine.

SOURCE CODE:
window.onload = function() {

//    function initialize()
//    {
       
 

	   var myCenter=new google.maps.LatLng(39.2,-75.036699);
        var myPoint=new google.maps.LatLng(39.3903478,-75.05);
       
		var mapProp = {
            center:myCenter,
			fences:GeoFence,
            zoom:12,
            mapTypeId:google.maps.MapTypeId.ROADMAP
        };
	
		
  
 
        var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
		


  var layer = new google.maps.FusionTablesLayer({
    query: {
      select: 'geometry',
      from: '1UjPsmyos6_MieyGJbCoZpgSoOWprtaQA2kIVW_MJ'
    },
    styles: [{
      polygonOptions: {
        fillColor: '#FF0000',
        fillOpacity: 0.3
      }
    }]
  });
  layer.setMap(googleMap);

Open in new window


Thank you
0
I am trying to add a geofence  but when adding initilaing the var Geofence  the map fails to render:

<script>
 var blueStar = {
        path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',
        fillColor: 'blue',
        fillOpacity: 0.4,
        scale: .07,
        strokeColor: 'yellow',
        strokeWeight: 1
	}

    var redStar = {
        path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',
        fillColor: 'red',
        fillOpacity: 0.7,
        scale: .07,
        strokeColor: 'yellow',
        strokeWeight: 1
	}   
	
	
	var yellowStar = {
        path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',
        fillColor: 'yellow',
        fillOpacity: 0.7,
        scale: .07,
        strokeColor: 'yellow',
        strokeWeight: 1
	}  


var GeoFenceCoords = [
		<%for y=1 to n-1%>
      {lat: <%=gf(y,1)%>, lng: <%=gf(y,2)%>},
      <%next%>	
	  
      {lat: <%=gf(n,1)%>, lng: <%=gf(n,2)%>}
  ];
  
  
  	
  	
window.onload = function() {

//    function initialize()
//    {
       
 var GeoFence = new google.maps.Polygon({
  paths: GeoFenceCoords,
 strokeColor: '#FF0000',
 strokeOpacity: 0.8,
 strokeWeight: 3,
 fillColor: '#FF0000',
 fillOpacity: 0.35
 });

	   var myCenter=new google.maps.LatLng(39.2,-75.036699);
        var myPoint=new google.maps.LatLng(39.3903478,-75.05);
       
		var mapProp = {
            center:myCenter,
			fences:GeoFence
            zoom:12,
    

Open in new window

0
My OS is win 7 prof 64 bit and I use Google maps for directions.  Is there a way to find out also the toll charges along the route from point A to point B, or is there a way the output will also give u the toll charges to be paid.  Thank u.
0
Trying to learn google  map api v3.  I have the following code,  I want to create a mouse over with vbscript variable array nature(z) passing to mouseover for GM api v3.  Can some one get me started.  Thanks

html>
<head>
<script src="http://maps.googleapis.com/maps/api/js?key=xxxxxxx"></script>
<script>
var myCenter=new google.maps.LatLng(39.3903478,-75.0518511);
var myPoint=new google.maps.LatLng(39.3903478,-75.05);
function initialize()
{
var mapProp = {
  center:myCenter,
  zoom:12,
  mapTypeId:google.maps.MapTypeId.ROADMAP
  };

var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);


var goldStar = {
    path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',
    fillColor: 'blue',
    fillOpacity: 0.4,
    scale: .07,
    strokeColor: 'yellow',
    strokeWeight: 1
	}
var redStar = {
    path: 'M 125,5 155,90 245,90 175,145 200,230 125,180 50,230 75,145 5,90 95,90 z',
    fillColor: 'red',
    fillOpacity: 0.7,
    scale: .07,
    strokeColor: 'yellow',
    strokeWeight: 1
	}
var marker=new google.maps.Marker({
  position:myCenter,
  icon:goldStar,
  map:map
    });

marker.setMap(map);

<%for z=1 to narcans%>

var myPoint=new google.maps.LatLng("<%=pu_lat(z)%>","<%=pu_lon(z)%>");
<%if EMS_RT_FAIL(z)=1 then %>
var marker=new google.maps.Marker({
  position:myPoint,
  icon:redStar,
  map:map

    });
<%else%>
var marker=new google.maps.Marker({
  position:myPoint,
  icon:goldStar,
  map:map
       });
<%end if%>

Open in new window

0
I use google maps for my directions to destinations.  Is there a way to calculate the tolls that are to be paid along a google route that I selected from point A to Point B using google maps.  Or is there another way of doing this.  Thank u.
0
In Php I am trying to find thw driving distance between 2 given points.
The 2 points can be given as addresses or lat/long as I have all this information.

This code given me the distamce without having to add a API key?

1) How do I add the address in and no the city for the driving distance?

2) How would I instead add the lat/long values for 2 points instead of the cities?
$url = 'http://maps.googleapis.com/maps/api/distancematrix/json?origins=London&destinations=Dover&mode=driving&language=en&sensor=false';
$data = file_get_contents($url);
$data = utf8_decode($data);
$obj = json_decode($data);

echo($obj->rows[0]->elements[0]->distance->text); //km
echo($obj->rows[0]->elements[0]->distance->value); // meters

Open in new window

0
I brought a car which has a RFID tag on it.

Given we can track anything using GPS like mobile phones etc.. How can I use RFID tag to track my vehicle or pay tolls.

Any other uses of RFID
0
Hi

I am new to GIS but I am surprised when I find the following statement in a paper. Is thie following statements still valid or this is old. Please let me know. Thanks


While GISs provide some extensive tools for analysis of spatial data, their capabilities for spatio-temporal modelling, and hence the handling of temporal data, have been considered limited. GISs were formerly known to handle time or dynamic variations in a process poorly.  Adhering to this view,  GISs, with their standard functionality, do not explicitly allow dynamic processes to be captured and analyzed. GISs have been traditionally associated with maps, and the capabilities of a contemporary GISs represent map-related ideas of layers, projections and generalizations.
0
If you want to track the location of a lot of "things" - say bicycles in a city, the trackers on the bikes need to phone home their location. If you were managing a fleet of 1000 bikes you probably couldn't afford a $25/month data plan for each tracking each bike. And you wouldn't be transmitting very much data per bike - just positional data. SO... what service providers would allow you to transmit a small amount of data per bike. What providers would allow you to send data using an aggregate data plan for numerous devices to that perhaps the per-device cost wound up more like $3/month??
0
I'm looking for an inexpensive GPS tracking device that I can attach to my car that will allow me to track exactly where I have driven in my car.

I'm looking for an inexpensive solution in both the cost of the GPS tracking device and in the cost of the service to track the device.

Please let me know what is available.
0
I am  planning to travel to Europe I  want to buy Garmi nuvi 2597 LMT Gps  device  at Costco Canada .
In store salesmen told me that that unit will not work at Europe.  I am little confused.
Unit has good price and has life time map updated. Does anybody has experience with that unit and what I need to do after buying it to get map of Italy, Slovenia, Croatia on it.
0
I am not hearing anything when I press again

It is locking and unlocking but not sounding

Model is RPN 7142V
0
I have found this code that will give me that lat & lng of an address.  However, I am not experienced enough to figure out how to "modify" the code to parse the address component    "administrative_area_level_2"

void Main()
{
	
	var address = "301 s western 66720";
	var requestUri = string.Format("http://maps.googleapis.com/maps/api/geocode/xml?address={0}&sensor=false", Uri.EscapeDataString(address));
	
	var request = WebRequest.Create(requestUri);
	var response = request.GetResponse();
	var xdoc = XDocument.Load(response.GetResponseStream());
	
	var result = xdoc.Element("GeocodeResponse").Element("result");
	var locationElement = result.Element("geometry").Element("location");
	var lat = locationElement.Element("lat");
	var lng = locationElement.Element("lng");
	
	Console.WriteLine(lat);
	Console.WriteLine(lng);

Open in new window

0
I am reading pros and cons about importing the osm database into my own mysql server but since there are so many variations in posts, I thought I would ask here to get the most current version.

I want to have a local osm db so that I don't have to use others bandwidth and to speed up the reads.
I will install the entire db and then only update as needed.

The server already has MySQL installed on it and I am thinking of using it for development and later will likely build a new server for OSM using Postgress or something else. Apparently, geographic extensions are missing when using MySQL, unless that is old information on the wiki?

Cannot afford an optimized service at this time but perhaps in the near future.

Wondering what the pros and cons are as well as what method to use for importing the xml file.

Thanks
0
My Nuvi 2557 is working perfectly until I upload my routes to the device. After I upload the routs to the device, the Nuvi 2557 doesn't connect properly to the computer. I have 14 of them for my small business and it is happening to all of them.

The way I am uploading the routes is dragging the GPX files from my computer to the Nuvi 2557. Then when I turn the Nuvi on, it breaks the routes up into 30 point sections.

Any ideas why this is happening? Why the Nuvi would all of a sudden not talk to the computer? Is there a better way to upload the routes to the Nuvi then simply dragging them over?
0

GIS/GPS Programming

The Global Positioning System (GPS) is a space-based global navigation satellite system (GNSS) that provides reliable location and time information in all weather and at all times and anywhere on or near the Earth when and where there is an unobstructed line of sight to four or more GPS satellites. A geographic information system (GIS) or geospatial information system is any system that captures, stores, analyzes, manages, and presents data that are linked to location(s). In the simplest terms, GIS is the merging of cartography, statistical analysis, and database technology.

Top Experts In
GIS/GPS Programming
<
Monthly
>