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

0
votes
1answer
268 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 ...
2
votes
0answers
59 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 ...
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 ...
0
votes
0answers
38 views

Changing Style of Layer in GeoServer REST API (PHP)

I would like to change the layer's style via REST. My problem is very similar to here and here. Running the following via curl works: curl.exe -v -u user:password -XPUT -H "Content-type: text/xml" ...
0
votes
0answers
7 views

Error after do search with suggest

After does search in my map server using framework pMapper, enter in looping infinity, but show the info requested. Show this information in console: Failed to load resource: net::ERR_CACHE_MISS ...
0
votes
0answers
22 views

How to Show the Lat/Long of Marker in a Textbox if it has been clicked

function getInfo() { $.getJSON("get_info.php", function (data) { for (var i = 0; i < data.length; i++) { var location = new L.LatLng(data[i].lat, data[i].lng); ...
1
vote
0answers
26 views

Route tracking on google map php

i have to make a software which is track a vehicle on Google map using GPS. I have almost done this project but i am stuck at a point, the client require a system that track the bus in a route. I am ...
0
votes
1answer
37 views

Transfer Data from Database to Leaflet POP UP

Good Day too all! I just wanna ask a little question. Ahmm how do you show data from database to leaflet pop up? Here is my code in php select command <?php $db = new ...
2
votes
1answer
434 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
0answers
46 views

GIS Street Maps

I am extremely new to GIS, but very interested in it. I am trying to create a php application that can display a map, and based on the address show like a 1 mile radius all around and the color each ...
3
votes
1answer
522 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 ...
0
votes
3answers
178 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 ...
0
votes
2answers
354 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 ...
0
votes
1answer
11 views

creating a feature type using rest/ php (geoserver)

im trying to create a feature type for a ship in geoserver but when i post the request to the server i get this response [geoserver.rest] - Trying to create new feature type inside the store, but no ...
1
vote
1answer
538 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
votes
1answer
51 views

What application server or web framwork to use

I'm looking to make a webmapping app, which gonna use Geoserver as carto server, and Postgres/postgis as Dabatase, and Extjs as client UI. but i'm in dilemma in application server side, between PHP, ...
0
votes
0answers
57 views

Postgresql , PHP JS and Json and Google Maps

I try to make a dikstra pgrouting query in a php file i retrive the coordinates and pass them in the Javascript code as o JSON object and visual in the map use this Script from google api to draw the ...
1
vote
0answers
31 views

Install php mapscript on ubuntu 12.04 PHP 5.4

I follow this website : http://blog.geoghana.com/2013/06/28/setting-up-lampp-linux-apache-mapserver-php-postgresqlpostgis/ to install mapserver and the php extension on my ubuntu 12.04 64bit and PHP ...
0
votes
1answer
111 views

Google Maps Api , PHP, Javascript and Postgresq-Postgis

I'm trying to make a web application, where I take the start/end city from a text box, geocode the city, use the coordinates to query my database in PHP, and return the features to be drawn in the ...
1
vote
1answer
525 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
0answers
13 views

Run intersects function in PHP?

I have an old script that used to connect to a postGIS DB and basically perform: $sql="select * from mobile.regions_ne where intersects(geom_wgs84,GeomFromEWKT('SRID=4326;POINT (".$lng." ".$lat." ...
1
vote
0answers
20 views

Authenticate to geoserver using openlayers 2

I want load layers from geoserver using openlayers in php page. How I should do it? Maybe can give ane code examples? Layers not public, need authentification.
0
votes
1answer
478 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 ...
1
vote
2answers
64 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 ...
0
votes
0answers
84 views

GeoJSON and php i cant visualy roads from postgres database

I am make a json file with geometry MultiLineString from the posgresql but when i try to load the file in map.data.loadGeoJsonis not visually the roads but if i take the link from google api example ...
3
votes
1answer
90 views

How to interpolate point set into value contours?

The task at hand is creating 'isobar' value contours that are interpolated from a point field of either the x/y or lat/lon type. I really have no idea where to begin mainly because this needs to be ...
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. ...
0
votes
0answers
55 views

Project with Postgresql and PHP and GoogleMaps

i like to make samething like this https://sites.google.com/site/mapperzmapdemo/ put i stack in the conection database and web application I try to explane my problem i make a code to read first ...
2
votes
3answers
133 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 ...
1
vote
1answer
117 views

How to update leaflet L.imageOverlay using jquery serialize without page refresh?

I am developing an application that fetches and displays raster/image maps (png, tif), into a leaflet map. However, I didn't like the page and the map refresh upon form submission. In addition, I ...
2
votes
2answers
75 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 ...
0
votes
0answers
43 views

Setting default style in any layer on GeoServer?

I am creating layer on GeoServer using curl from my PHP application, and layer is creating but in this layer there is not any default style is assigning to this layer so can you please let me know how ...
1
vote
1answer
363 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 ...
0
votes
2answers
54 views

Parse PHP/HTML to shapefile or similar

I've been experimenting with scraping spatial data from a web page (www.majidata.co.ke). I've managed to find the source of the vector data from within a webpage though and have saved a chunk as HTML ...
2
votes
2answers
141 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 ...
0
votes
1answer
902 views

how to configure WFS layer with openlayer in PHP wampserver with windows?

I have a problem to display WFS layer outside the Geoserver. My code working fine in geoserver, but when I tried my code in wampserver(PHP), only WMS layer is being to displayed. I gone through many ...
1
vote
0answers
44 views

Is there a QGIS plugin that allows users to interface with a PHP form page?

I've been looking for several days for a QGIS plugin that allows users to interface with a PHP form page. Does anyone know something that works in this way?
1
vote
0answers
29 views

Creating Interactive Map Using Something Other Than Google? [duplicate]

I have a Roleplay Forum, and I would like to add a map of my Roleplay World to the website. I would like my map to be clickable, and have each location take you to a place on the forum. I don't know ...
1
vote
1answer
148 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 ...
2
votes
1answer
120 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 ...
2
votes
1answer
51 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 ...
1
vote
1answer
138 views

Converting shapefile to KML using JavaScript or PHP?

My client needs to generate maps from shapefiles. Through my initial search, I came to know that we need to convert shapefiles to .kml then we can generate maps from google maps. So I searched for a ...
1
vote
1answer
23 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
127 views

Geoserver WFS - Can I Pass in Filter Parameters via the URL?

I'm trying to use PHP's CURL function to fetch geoJSON information from a GeoServer instance. I'm doing this using url variables rather than trying to construct a full xml GetFeature request. ...
0
votes
0answers
25 views

Creating custom size images from WMS cache

I am currently working on my own WMS service (using PHP). The service works currently if the requested image is in 256x256px size but currently does not support any other size. My service basically ...
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 ...
0
votes
0answers
405 views

Smooth replay of gps points on google map

When first the google map is loaded we load data using php codes in the backend and draw a line connecting between each lat long. There after we check if the lat long point have some ...
0
votes
2answers
379 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
1answer
66 views

converting random point order into polygons

We received a kml file with polygons but the points are not in a logical sequence and we end up with strange overlapping shapes that are supposed to be an open polygon. We did identify a point near ...
1
vote
0answers
769 views

How can I get all the latitude, longitude coordinates/points inside a rectangular polygon drawn in google maps?

Google maps lets you obtain a valid address by clicking on houses or buildings one by one, but it would be much easier if you could draw a polygon on the map and get a list of all valid addresses ...