PHP is a Server-Side Scripting language designed initially for web programming, but is also used as a general-purpose programming language.

learn more… | top users | synonyms

2
votes
2answers
237 views

What is the proper “title” property for the Terrain with Labels Basemap?

EDIT: Actually this posted link ended up helping me quite a bit but don't mark it as duplicate because the problem I had using it stemmed from needing to define the map before defining the ...
2
votes
2answers
322 views

PHP examples to replicate FeatureServer capabilities

I used FeatureServer before and I liked it. The only thing I didn't like, though, is that it needs some other dependencies to work. That's why I want to try PHP instead. I know that there are already ...
2
votes
1answer
186 views

Point to Line Calculations

We are looking to take a point and compare it against the nearest point to an adjacent line. All values are in lat/long. We tried using some of the concept found on the board but found it did not ...
2
votes
1answer
1k views

How to fetch polygons from PostGIS into a PHP array?

Currently I fetch polygons from a database table using ST_AsText(). The results are in text format, like this: POLYGON((84 104,212 48,321 122,243 179,275 238,131 240,84 104)) I am not quite sure if ...
2
votes
1answer
42 views

Using php to edit CartoDB infowindow?

Perhaps a basic question, but can php code be used in editing the CartoDB infowindow HTML? We want to show or hide a category depending on the value.
2
votes
1answer
190 views

Distort image to display on leaflet.js based on known 16x16 point grid

I have an image that is a satellite picture, and with php gd I want to distort it so I can overlay it on a leaflet.js map. To make it a bit more simple, I have a grid of points, 16x16 which bind the ...
2
votes
2answers
3k views

Fixing the OpenLayers MBTiles Example

I've been trying to implement the OpenLayers Example for reading MBTiles: http://projects.bryanmcbride.com/ol_mbtiles/ Right off, the link to the necessary mbtiles.php script was broken, but I found ...
2
votes
2answers
857 views

Script to extract UTM Zone using Range and Meridian information

I am looking for a python or php script that will accept the Range and Meridian values of a location and use it to identify the UTM zone. I have a table that comprises of Easting, Northing, Range and ...
2
votes
1answer
5k views

KML PHP parser to INSERT into database

So I have a KML file which has attribute data(Inside the tag with about 12 data points). This file was generated on ArcGIS. I'm trying to write a PHP script to parse this KML file and insert the ...
2
votes
1answer
405 views

Looking for options to use Mapfish with PHP

I recently installed MapFish on my test server and started to play around with. As I'm not that good in python/pylon I'd prefer to work with that framework with PHP. I read that it is possible with ...
2
votes
1answer
22 views

Is there an app/plugin combination that suits the tracking of a public bus

In a town near where I live there is a public bus that runs a circuit about once an hour. I was asked if it would be easy to track the bus (presumably via an android device on the bus) and put the ...
2
votes
1answer
169 views

Spatialite not loaded in PHP5 on Ubuntu

I'm trying to install Spatialite (4.3.0a) on Ubuntu (14.94.2 LTS) ..... I'd like to use it with PHP (5.5.9-1) .... Following this post https://faimsproject.atlassian.net/wiki/display/FAIMS/...
2
votes
1answer
28 views

Error when passing shapefile to postgis through submit button and php

I have the following issue when I try to pass a shape file to postgis. When I run this part of code through the terminal: shp2pgsql -s 2100 -d /var/www/dkar/MarCO/Code/python/output/cluster/...
2
votes
1answer
788 views

Fetching postgis data through php json and passing to leaflet map

I am new to this and trying to explore leaflet and geojson a bit. Please help me with this. This is my php page which I am using to fetch data from PostGIS. (the data opened successfully in the ...
2
votes
1answer
202 views

Choosing a platform for developing opensource GIS web application.

I am from a non programming background. I started learning GIS opensource web applications from last 3 moths. Now I am using only notepad++ for writing codes and I am familiar with javascript, HTML ...
2
votes
3answers
590 views

Buffer Zone Algorithm

I use google maps, php, mysql, and I want to create a buffer zone in line among some points. Could someone tell me where can i find the algorithm (php library or the math in order to implement it) to ...
2
votes
1answer
53 views

Area of an EPSG 27700 polygon

I am working with EPSG 27700 polygon data in PHP. All the polygons are in the UK. The polygons do not have holes inside them. I'm hoping to be able to calculate the area of these polygons. For this I ...
2
votes
1answer
655 views

How to use PHP MapScript to generate a MapServer Mapfile

I just read from this question that the OP was using Mapscript and C# to generate and display a Mapfile I was wondering if it is really possible to use MapScript to generate a Mapfile? And if so,...
2
votes
4answers
1k views

Get coordinates from address

I am writing a application which allow users to save a address into database (db) and in the next step it shows all addresses on a map. But in the saving step I need automatically calculate a GPS ...
2
votes
1answer
1k views

How to visuilze PostGIS data in GeoJSON format with PHP

I need to visualize PostGIS Geometry column as an overlay of a Leaflet tiled Map. I started a question here ,but didn't get any simple and satisfied answer. So I am starting this question. I got an ...
2
votes
1answer
2k views

How to insert google maps lat/lng into postgis in geometry datatype

I came across: https://developers.google.com/maps/articles/phpsqlinfo_v3 I've changed the code a bit and all process is well done for postgis database. I get the data from infobox when user clicked. ....
2
votes
2answers
2k views

How to create dynamic map images?

I have map images of my local ward (Areas geo-referenced and drawn using QGIS and Adobe illustrator. Now these maps are in .png format (Raster images). It's not a tile linked to some mapserver such as ...
2
votes
1answer
557 views

How to configure wampserver for spatialite

I am in windows 7. I installed WAMPServer. Now, I can not load spatialite libraries. It is showing warning.. Warning: SQLite3::loadExtension() [sqlite3.loadextension]: Not supported in ...
2
votes
1answer
807 views

How to write to shape file in MapGuide

Here the code I have written to a Shape file in MapGuide Open Source (in PHP running on IIS 7.5). The code is actually the modified class MarkupEditor (markupeditor.php) from the General Tracks (Gt) ...
2
votes
2answers
1k views

MySQL Query to fetch all cities and POI's near the route

I'm implementing alghorithm to search POI near the route (array of Lat, Long points). My problem is that I don't know how to calculate distance beetween line segment and POI. Look at picture that I ...
2
votes
1answer
1k views

integrating spatialite and php (sqlite3) on windows platform

anyone can give me an explanation about how to integrate spatialite with php(sqlite3)-windows platforms. I have tried to refer from this link http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-...
2
votes
2answers
256 views

Using PHP's curl to Upload *.csv file into CartoDB?

I use CartoDB import api to upload csv file correctly, and I can see the 'pointtest' table is created in the cartoDB website. By following command line: #curl -v -F file=@/mnt/hgfs/D/cartodb/...
2
votes
0answers
23 views

Vanilla PHP and GeoTIFF: How to know byte address and byte length of a “strip” in an LZW-compressed GeoTiff?

I have a situation where I need to read cell values from a GeoTiff using vanilla PHP, and while I've been successful reading values from an uncompressed TIF (~800MB), I'm having difficulty reading ...
2
votes
0answers
9k views

How to get multiple dynamic custom markers on map using MapBox in MySQL and PHP?

Can anyone help me to get multiple custom markers on mapbox using lat/long from the database MySQL. I want to use 2 types of markers on the map, for which I have two separate table of lat/longs in the ...
2
votes
0answers
98 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
21 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
2k 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
5answers
175 views

What is “n” in calculating tiles? [closed]

What does n mean in this formula: n = pow(2, zoom)? I using this when I calculate tiles. Thank you
1
vote
3answers
1k views

Getting all vertex lat, long coordinates every 1 meter between two known points using PHP?

I am currently using php to try and write code that will take a start point and end point latitude and longitude coordinate pair in decimal degrees and calculate the latitude and longitude of every ...
1
vote
3answers
1k views

Simple WMS server

Is there a way to implement a WMS server using only php or python cgi and mysql? I can't use geoserver or mapserver and postgres and any other software as they are not provided by the administrator.
1
vote
3answers
1k views

How to run GDAL command in php page? [duplicate]

I want to develop a webportal that will show the QGIS generated images on dynamic website. For this reason I need to run gdal_translate command inside php page. but I don't know is it possible or not. ...
1
vote
1answer
234 views

Problem with using a circle as polygon for querying PostGIS

I'm trying to query PostGIS and find some object features that intersect with a circular buffer created by the user using OpenLayers, JavaScript and PHP. I use the following code for creating the ...
1
vote
2answers
104 views

Reduce query time when using both MySQL and PostgreSQL with PostGIS

I am doing a tracking query. The device is sending its location data, timestamp to store in MySQL Database. I want to show the query result of every point with its nearest POI. The POI database is ...
1
vote
2answers
1k views

Convert WKT to GeoJSON with leaflet

I have a point type WKT geometry column in a MySQL table storing the location of some stores. I want to display it on a leaflet map on my website. I've found plenty of tutorials to doing this on ...
1
vote
2answers
124 views

Viewing large set of polygons in PostGIS using OpenLayers?

I am prety new to GIS. I have set up a postgis database with al large dataset and a openlayers front-end to display it. But since the dataset is getting prety big I am looking for a way to only load ...
1
vote
1answer
3k views

Leaflet Heatmap Dynamic data layer

I am trying to add heatmap layer to my map. I have tried the following plugin: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-leaflet.html From this plugin the data came from ...
1
vote
2answers
687 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 ...
1
vote
1answer
947 views

Display Shapefile on website (Java or PHP)

i have to write an application where similar to Google Maps where i have to display a shapefile in a web application. My available technologies are Java (frontend framework: Apache Wicket) or PHP. It ...
1
vote
3answers
1k views

GEOSERVER and Php

I want to use a Php script to retrieve information from the .db file of a shapefile saved as a layer in Geoserver. I need to retrieve attribute data from the layer and present it at the client side. ...
1
vote
1answer
75 views

PostGIS table structure question

I have been using QGIS to insert point data accompanied by information for each point into PostGIS. When I open PGAdmin to take a look at the table rows I noticed a column near the start of each row ...
1
vote
1answer
438 views

GPS tracking data string format for GRTQ device

I get GPS data from tcp (php socket), but for some devices (GRTQ) I will get an unreadable string. First devices sends: *HQ,XXXXXX,41,4#V1,time,A,**Lat**,N/S,**Lng**,W/E,000.00,000,date,FFFFFBFF,432,...
1
vote
3answers
735 views

Read GeoTIFF file with php or javascript

Sorry, I am newbie with GeoTIFF files. I want to create a project that a person can upload a GeoTIFF file and the web application saves the lat/long of the picture into the database, the server side ...
1
vote
1answer
280 views

Problem with nested query in PhP and PostGIS

I have a simple problem regarding a nested query. I would like to select all buildings in a given circular buffer and create a kml file of those selected objects. The following query does the job very ...
1
vote
1answer
2k views

How do I insert a geometry as WKT to SQL Server Spatial with PHP?

I have a web mapping application built on Bootleaf (Leaflet + Bootstrap). Using the leaflet Draw plugin the user can create a polygon on the map. I'd like to insert that polygon into a geometry ...
1
vote
2answers
343 views

How to extract common outline of multiple polygons with code?

I'm not really asking for a chunk of code to do this, but more of an algorithm I can work with myself. For example, this is the state of Maine, obviously, and I have the points of each county ...