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
0answers
976 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
1answer
302 views

Geographic Web Service

I was told to implement a web service which, given 2 inputs (street name, cross street name) the output is the crossing geographical coordinates. What is the best way i should go? Is there a standard ...
1
vote
1answer
362 views

how to use gdal command inside php exec() function

I need to develop a webportal which will display the images generated by a GIS software package. I my development I need to run gdal command inside php exec() function. but I don't know how to do ...
0
votes
1answer
436 views

shp2MySQL GIS Import Coordinates Not Correct

I'm attempting to import the Chicago Neighborhood Boundaries into a MySQL database from the shape files available at ...
0
votes
3answers
813 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
387 views

Calculate MBR envelope for different geometry shapes in different rows

I have some different kinds of geometry (Polygons and line strings) stored in my mysql database. On different rows. I know I can retrieve the envelope of one row with: SELECT Envelope(zoneShape) FROM ...
0
votes
2answers
2k views

How to insert a point into postgis from php?

For the following line, I received an error in my php page, but the query is OK when I run it from pgmyadmin. I am trying to insert a point into my postgis from php which contains name, address and ...
2
votes
1answer
3k 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
4k views

How to add polygon in MySQL database

I have a table which contains an field zoneShape of the type Polygon. When inserting some geometry in this field, in phpmyadmin it says: affected 1 row. The row is added, but the geometry field says ...
2
votes
2answers
1k 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 ...
4
votes
2answers
756 views

Adding an external WMS service using REST service with Geoserver

I'm trying to add an External WMS layer to geoserver with a php page, using the REST service of Geoserver. I've already read the tutorials for creating the geoserver features ...
3
votes
2answers
3k views

Markers on openlayers openstreetmap

I am trying to show some markers from a database in openlayers. I tried it in google maps in past using GDownloadURL fuction to read a json php generated file from my database. Now I tried the same ...
7
votes
5answers
10k views

How to Geocode 300,000 addresses on the fly?

I have a database which has 300,000 address, which are to be shown on map. I know if I geo-code all the address it will be too expensive for me. So I was wondering if it is possible to geo-code the ...
2
votes
1answer
451 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 ...
1
vote
2answers
1k views

How to get libspatialite.so file for spatialite

I am creating an application using spatialite database. I checked couple of tutorial from internet. Most of them explains the same. But the problem is I need "libspatialite.so" extension library. I do ...
1
vote
2answers
746 views

How to make distance calculated using Latitude and Longitude more accurate

I'm coding a Web App whereby users can choose their city (start) and a destination city, and find out the approximate distance between both cities, using Latitude and Longitude of both cities to ...
3
votes
2answers
2k views

Using PHP to create a GIS Web application

I've developed many GIS Applications using ESRI ArcGIS 9.3 and 10.0 for ASP.NET . I'm wondering if i can do a GIS application using my SHAPE files and Pure PHP scripting . I've googled for that ...
4
votes
2answers
1k views

How to read GeoTIFF using PHP?

My current pet project involves creating a web service that uses the CGIAR SRTM worldwide elevation data set. Each request to the service will query for elevation data from a small geographic area. ...
2
votes
1answer
628 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) ...
3
votes
2answers
1k views

How to programatically generate my own wms file?

I'm new to OpenLayers and as far as I understood layers are retrieved from an wms file. I know this is not precisely a development forum but I was just wondering if there is a way to fool this ...
1
vote
2answers
867 views

How to read Autodesk Spatial Data File (.SDF) in PHP

I am working on an application using Autodesk MapGuide. The application is being developed on PHP and hosted in IIS 7.5. I had to create point, line and polygon geometries on-the-fly. I found a ...
2
votes
1answer
2k views

Getting Started with Map Server 6 and Google Maps

I'm relatively new to GIS, but what I'd like to do is display map layers on top of Google Maps. From what I understand, mapserver provides the tiles that can be overlaid onto a Google Maps page. I'm ...
2
votes
1answer
352 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 ...
1
vote
0answers
592 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 ...
11
votes
4answers
2k views

Options for displaying PostGIS rasters in OpenLayers

This question is similar to an earlier question about displaying vector data in a web-map. I want to have a basic web interface which uses OpenLayers and can display raster data that is currently in ...
8
votes
2answers
1k views

How to obfuscate data when using Google Maps?

I've been working on a google map (v3 of the api) that is plotting 120 markers or so (or will do shortly) - see http://www.mediwales.com/mapping. If you view the source the map data is for all the ...
2
votes
2answers
847 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 ...
19
votes
5answers
1k views

I'm new to GIS and I'm looking for a developer-friendly web gis [duplicate]

I'm a recent Computer Science graduate who prides himself in his knowledge of software development and problem solving, but has no idea how gis systems work. (Read: I'm a programmer) I've been ...
2
votes
1answer
778 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 ...
4
votes
1answer
2k views

Generating SLD dynamically using php in Geosever

I am fairly new to Geoserver and I have a question before I launch into something bigger than me: if i replace the XML code in the SLD style sheet inside geoserver with some PHP which generates the ...
2
votes
3answers
1k views

Looking for Geoserver REST PHP examples

I am in deadly need of geoserver rest php scripts for creating workspace, store, publishing layer etc. I have done a lot of googleing but couldn't find any. In geoserver site only examples using cURL ...
5
votes
3answers
1k views

PHP MGRS Conversion Formula/Library

Currently, the formula I'm using to convert MGRS to Lat/Long and vice versa is giving me slightly different results than most other conversion utilities. It's usually between 10 to 30 feet off. This ...