A web programming language.

learn more… | top users | synonyms

0
votes
3answers
249 views

storing images in mysql from WebGIS applications

I'm a complete amateur at writing code. I would like to make an application for storing LNG, lat, and other data, as well as images in mysql. I've set up, I made a separate application for storing ...
0
votes
2answers
218 views

PHP PostGIS to geoJSON missing required parametar error

I'm using this PHP PostGIS to geoJSON script: https://gist.github.com/bmcbride/1913855 But I keep getting this error: 'missing required parameter: geotable' This is my code: # Retrive URL ...
1
vote
1answer
47 views

OpenStreetMaps routing - starting far from a road

I am writing an web application, that needs routes between some markers (A, B, C, D). So far I used the this api with PHP, where I pass each pair of points (A and B, B and C, C and D .... and so on) ...
1
vote
1answer
344 views

Linux Client for OpenGTS server

I've installed an OpenGTS server and successfully linked it with the GPS2OpenGTS_Pro application for android. The buses I'm tracking offer 3G with a wireless AP, however whenever the bus stops, the ...
1
vote
1answer
230 views

PHP Mapscript get feature / shape by index in layer

I upgraded my Mapserver version from 5.6.x to 6.2.0 (yes, big version jump here!) and I am stuck with getting a shapeObj from a layer by simply using its Index (or FID for shapefiles or GID in case of ...
1
vote
1answer
270 views

What software would be useful to create General Transit Feed Specification (GTFS)?

I am doing a project in which i am required to create GTFS. I look at transit google developer forum which provide a format to create feed but that completely have to done by hand (we have to write ...
0
votes
1answer
60 views

How to find line segment between line intersections?

Given 1 non-self-intersecting line (red) and 2 other non-self-intersecting lines (light-green), what is the best way to find the coordinates of the line in between the 2 intersections? I threw this ...
0
votes
1answer
40 views

Issues with pgrouting workshop code in postgis 2.11/pgrouting 2.0

I'm having issues getting the pgrouting workshop to work on Postgresql 9.2/PostGIS 2.11 and pgrouting 2.0 on windows. How can I rewrite the following php/sql code and make it compatible with my ...
0
votes
1answer
43 views

Identify the direction of traveling road segment

I'm using pgRouting to find the least congested path using time as the cost metric. I am using average speed between two nodes to calculate time taken to travel in a segment. In pgRouting there is a ...
0
votes
1answer
103 views

How to set DATA string on LayerObj in MapFile by Using Mapserver's PHP Mapscript?

I'm manipulating mapfiles through mapscript. Setting layer attribute values like the opacity works like this: $layer = $map->getLayer('layername'); //set an attribute value ...
0
votes
1answer
185 views

How to transform/convert Coordinate Reference System with Proj4 and php

Basically my question is: Can I combine the functions of proj4 with php in my server? For example, I would like to know if it is possible get data in WGS84 and transform in ETRS89. I need to get ...
0
votes
1answer
49 views

Apply edits with PHP

I trying to develop a PHP script that will simply applyedits to a feature services. Right now I'm trying to use the In the ESRI restend point example. I'm thinking if someone can help me, point me ...
0
votes
1answer
112 views

Is that possible to use map object ( PHP_MapScript ) instead of map file when using the MapServer?

In my previoous code, I am using openlayer WMS to load a raster data through MapServer. As you can see, the mapserv.exe call a local map file to load the raster data. I just heard PHP_MapScript, since ...
-1
votes
1answer
99 views

Shp2pgsql - exec() not allowed on external server

Me and my collegue are using the shp2pgsql and psql commands in php code (a Drupal module to be precise). We put these commands in a php variable and use the exec() command to execute them. This ...
3
votes
0answers
117 views

Shapefile and geocoding to retrieve an area name

I'm very new to GIS and all things geospatial! I have dbf, prj, sbn, sbx, shp and shx files that have been provided to me. The shapefile contains information on parts of the country that have been ...
2
votes
0answers
56 views

Large loads geojson from mysql to leaflet?

I have a mysql database with +25K rows including geometry and other attributes. Using a mysql2geojson php script I then added it to a leaflet map. It is super slow now, what can I do to boost the ...
2
votes
0answers
35 views

Calculate Moving Time

I am wondering how web apps like Garmin connect or Strava calculate a "moving time" from a gps track. For example I might record a GPS track on my Garmin GPS that has an elapsed time of 5:34:26 but ...
2
votes
0answers
202 views

How do I set the fillcolor of polygons in Leaflet.js dynamically?

I'm using the interactive chloropath example for leaflet.js I figured out how to make each of my polygons add a running tally of values to the bottom of the page after each polygon is clicked. Upon ...
2
votes
0answers
17 views

arcmap envelope coordinates from webbrowser tool

So I have my own php file with textfields which I run in my add in. Now I want to get the variables from the textfields and automatically give the value of the textfields to my env.PutCoords(x,y,x,y) ...
2
votes
0answers
766 views

How to insert data into fusion table using php?

I am using fusion tables to generate pins over the map. now I want to insert more coordinates data into the table using php but couldn't get any exact idea how to do it? Can anyone help me for that? ...
1
vote
0answers
83 views

pgrouting php problem “pg_fetch_result(): Unable to jump to row 0 on PostgreSQL result index 3”

I'm trying to build a simple routing web-app using pgrouting, followed some tutorial and the latest workshop. Because I'm using PostgreSQL 9.3(x64), Postgis 2.1.1, and pgrouting 2.0 so I did some ...
1
vote
0answers
53 views

How to create static image file with geometries from shapefile using ArcGIS Online?

I'm trying to create static map images, including overlaid geometry features imported from a shapefile, server-side (in PHP if that matters), in order to use them in generated PDFs. We're using ArcGIS ...
1
vote
0answers
190 views

Google map did not update new geolocation when I moved the marker to new position

This is my google map code. I'm trying to update new latitude and longitude when i moved the existing marker to new position. But I don't understand why the following google map code is not updating ...
1
vote
0answers
22 views

How to send variables from gis addin own web browser to gis file

I am a complete beginner with GIS. So I want to be able to go to the coordinates in arcmap I fill in in my php page. I've got this now: The variables inserted in the textfield should be the ...
1
vote
0answers
270 views

How to calculate corner coordinates of static Google Map image using PHP?

How can I calculate the corner coordinates of a static Google Map image, like the one fetched with this URL, using a little PHP script?
1
vote
0answers
282 views

How to visualize MBTiles with OpenLayers using a PHP tile server?

This is repost as didn't get my expected answer. Please help me as I am newbie. I have setup the PHP Tile Server 0.1 and when I am calling the PHP server it showing the following Now I am triyng to ...
1
vote
0answers
668 views

searching GeoJSON features

After googling for many days and reading the OL documentation, I don't understand well how the filterToParams in OpenLayers.HTTP protocol should work, what I'm trying to do is to find and display the ...
1
vote
0answers
163 views

OpenLayers Icon e PopUp

Ciao, sto creando una pagina in php con una mappa ... in OpenLayers Examples ho trovato due interessanti esempi: esempio che mostra come usare diversi tipi di poupup ...
1
vote
0answers
496 views

Generate Two Triangles on KML file with PHP/MySQL

I am currently generating a KML file dynamically from PHP and Mysql. One latitude / longitude point is being passed to the script. What I want to do now is create two triangle polygons from this point ...
0
votes
0answers
9 views

Unable to execute pgsql2shp in php

I am able to execute the command using the command line. But when i use it in the php script, I am not able to ececute it. Could you please help me out on thi Using command line pgsql2shp -f p2 -h ...
0
votes
0answers
19 views

drag and drop csv file and display map using leaflet js

I am new in php and leaflet js. I want to drag and drop .csv file in php and using the values of csv file, I want to display map using leaflet js. Can any one help me.
0
votes
0answers
7 views

How to upgrade php version for mapguide server

I am using mapguide server 2.0 . It has PHP version 5.0.I want to use sqlite database3 but it doesn't support sqlite3. Does any one know how to upgarde php version manually? or way to convert sqlite3 ...
0
votes
0answers
38 views

Extract Polygon Data for Each Neighborhood from GIS Shape File

I have a dataset that has four types of files with the following file extensions - .DBF,.PRJ,SHP,SHX My goal is to get all the polygon coordinates for each neighborhood and draw the boundary outline ...
0
votes
0answers
22 views

Need help getting GeoMoose working on CentOS

Anybody know how to get GeoMoose to work? I've installed on Centos 6, following the destructions on the Geomoose website. I'm down to the bottom of the page, and should be done. I open the demo page ...
0
votes
0answers
35 views

Fixing “Assigning the return value of new by reference is deprecated” error

I just downloaded the vertex.php, polygon.php, and polyExample.php files from this site: http://www.phpclasses.org/package/2544-PHP-Perform-geometric-operations-on-polygons.html only to find dozens of ...
0
votes
0answers
145 views

How to populate popup content when clicked on polygon in Leaflet?

When user click on polygon, popup opens with content from my-query.php. The problem is that php query is loaded when map loads, and I want that my-query.php loads when user click on some polygon, so ...
0
votes
0answers
25 views

WFS describeFeatureType results with curl/PHP

sending the following request in the browser works OK for me: http://localhost:8080/geoserver/wfs?request=DescribeFeatureType&typeName=topp:states but I'd need its output in a PHP-variable to ...
0
votes
0answers
34 views

Correct way to zoom on php mapscript. Zoom not center

I have a 800x600 pixel map image generated with php mapscript. Whenever i want to zoom to a certain point on the map, it doesn't centerly zoom to that point. I use the zoompoint() method. The x and y ...
0
votes
0answers
90 views

PHP Mapscript Installation Problem on Mac (Mavericks)

After installing PHP and Mapserver and all the frameworks needed from http://www.kyngchaos.com, I can access Mapserver via cgi-bin, but I got the following error for PHP: 500 Internal Server Error. ...
0
votes
0answers
98 views

style file in geoserver using php

i have uploaded the shape file using curl.The plodded file get the default SLD from geoserver. I have to assign the sld belonging to that layer and the style file is already present in geoserver. I ...
0
votes
0answers
49 views

execute raster2pgsql in php script

I have a geotiff Rasterimage and I want to import it to PostGIS via php. I'm using windows server 2008 with ms4w 3.0.6 installed. My php code looks like this: include ("db.php"); ...
0
votes
0answers
22 views

Find optimal path among multiple locations in PHP

I want to find the optimal path for a given number of cities. Path should be calculated using latitude, longitude of each city. Each city can be traversed only once. (Obviously I does not mean ...
0
votes
0answers
296 views

PHP-MBTiles Server implementation with Leaflet and Wax

Using PHP tile server from infostreams with Leaflet and Wax Connector for Leaflet to visualize my .mbtiles. I upped the source and the .mbtiles on a free hosting service. I am getting a blank Leaflet ...
0
votes
0answers
28 views

Php code not working with the Xampp version 1.7.1 but it is working fine with wampserver 2.2

i have a php and openlayer code in which the user select area on map press button,it gets checked in the database, the user is directed to appropriate page and then result is shown in map. The problem ...
0
votes
0answers
92 views

pgrouting workshop PHP script

I'm following pgrouting workshop for implement web to display shortest path on map I did upto chapter 6 on that work shop (all outputs came as the given so i think i'm correctly done upto chapter 6 ...
0
votes
0answers
30 views

How to retrieve latlon values of point that is searched by user?

I want to create a shortest route in openlayers. I created the sql queries of shortest route algorithms and can query shortest route in sql. Now I want to create a search functionality so that the ...
0
votes
0answers
1k views

How to populate data from postgresql using dynamic php\html listing

In the form I created, I need two fields to be dynamically populated from the database while the other fields will be manually entered and push to the database. I have written a script that is able ...