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
1answer
53 views

Submit form information from a leaflet popup to MySQL table

I have a leaflet map and I want to have the user fill out a form in a leaflet popup and upon clicking the 'submit' button - the information in the form will be inserted into my MySQL database. As a ...
-2
votes
0answers
25 views

How to publish a PostGIS table on Google maps? [on hold]

I am attempting to take a shape file and display it on a map: I can do it!! if you please meaning!!
-1
votes
0answers
48 views

Development of a geolocation application using Google maps API [closed]

Translation: I am trying to develop a geolocation application, and I have to work with the Google Maps API and use a map server for publishing points... polygons or shapefiles and I have chosen PHP ...
1
vote
1answer
40 views

I am using “Hindi and Gujrati” font then I am getting “Black Squre Dots”?

At the time of generating PDF file when I am using “Hindi and Gujrati” font then I am getting “Black Squre Dots”. Below I am using code. Here I am trying to convert in UTF-8 but it’s not converting. ...
-1
votes
1answer
93 views

How to get 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 ...
2
votes
0answers
11 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
1answer
20 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.
3
votes
2answers
159 views

Column 'SHAPE' cannot be null in mysql database even if the query string is correct

I am trying to write an POLYGON into an column named SHAPE which is a geometry type. And created query which looks $sql = "INSERT INTO rokka(zone,district,location,area,SHAPE) VALUES ...
1
vote
1answer
22 views

Serve very basic WMS data to a GIS system from my PHP server

Apologies for the basic nature of this question - I hadn't heard of GIS until this morning! I have a PHP server with some basic data for geographic points in a MySQL database - each one has a ...
0
votes
0answers
22 views

php array of s2 map indexes to quadtree array

i have a list of s2map cells (at various levels) that i wish to convert to a quadtree for easy-er processing as shown here in binary ...
0
votes
0answers
26 views

Fatal error</b>: Class 'Geocoder\HttpAdapter\CurlHttpAdapter' not found

I have installed Geocoder following the instructions here: https://github.com/geocoder-php/Geocoder And then I try to run this example: require __DIR__.'/vendor/autoload.php'; $bingApikey = ...
0
votes
0answers
20 views

Issue when creating points with php and entering them in postgis

I pass some data to a postgis table defined as: CREATE TABLE categoriesdata (id serial NOT NULL, name character varying(200), geom geometry(Point,4326), CONSTRAINT obj_geom_pkey PRIMARY KEY ...
0
votes
1answer
64 views

covert a shape file to geojson

Is there any method in PHP to covert a Shapefile to GeoJson ? I need to upload Shapefile and convert it to PostgreSQL table. I tried PHP exec(), but it didn't work. Please help me
0
votes
0answers
26 views

Configuring Select Tool in Postgis Layer of Geomoose

I'm a beginner in this field and i've plotted the postgis database table points in geomoose in 3857 projection.Configured identify tool and it works .But the search query for postgis layer is not ...
0
votes
0answers
100 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: ...
0
votes
0answers
36 views

Determining intersection between list of points and list of linestrings?

I'm coding in php. I have a list of point coordinates (very large one) and a list of linestring geometries (large too). I'd like to determine for each linestring, the point coordinates that ...
1
vote
0answers
104 views

How to publish layer on geoserver using rest api with PHP CURL

I'm working in a project that I need to publish a layer automatically on geoserver. Searching I discover that the REST API can help me. Studying the REST API I saw that I need to use cURL to do ...
0
votes
0answers
47 views

Street maps with php and mysql

I am trying to create a website that can show how much the houses in the area are worth. I am able to get gis data, but not exactly sure what to do with it or what exactly is needed. I am extremely ...
0
votes
0answers
81 views

finding circumcenter of circle assuming 3 geo points on circumference (lat/long)

Situation: I have 3 geo points (lat/long). I have to draw a circle on a map where these 3 points are "sitting" on a circle circumference (max-distance from point to point = 500 Meters). So I need to ...
0
votes
1answer
262 views

Passing data into leaflet js via a php script

I'm trying to display route data on a map using leaflet. I'm pulling the data from a MYSQL database with a php script. which is working. The data is stored in an array called vechiclelatlong. I use ...
0
votes
0answers
41 views

problem with to addlister event google maps in same html file

I try to make two actionlistener one when the mouse over a marker show a infowindows and the other is for get when click on a market the lat and long and make an AJAX request the two lister code is ...
0
votes
0answers
57 views

Make PostGIS points from Ajax data in a php file

I have an AJAX a string which has lat-long parameters in a request. I try to make point in an SQL query but I get this error 37.15452626 ERROR; parse error- invalid geometry HINT: ...
0
votes
0answers
139 views

Load a shape file in postgresql DB with php

I am trying to load a shapefile in a postgis database using the exec() command. I have read the format I have to follow from here and I checked several similar questions from the forum. Based on the ...
0
votes
0answers
54 views

Modifications to use multiple mapbooks in Geomoose

Currently i'm working on two projects and i want to use two mapbooks.I want to load two mapbooks at the same time without changing the whole geomoose2 folder.I've done the steps shown in ...
0
votes
0answers
78 views

Post coordinates to Php

I am trying to send (x,y) coordinates from script html code to PHP but it doesn't work: -Script code: searchControl.on("results", function (data) { results.clearLayers(); for ...
1
vote
1answer
138 views

Google Maps Javascript and PHP

I try to make a menu bar with icons which show the same icons in the map when clicked, for example hotels or bars. I made a form with radio buttons for choose and click submit. This goes to PHP, ...
0
votes
1answer
104 views

Displaying postgis database data

I'm a beginner in this field and tried to display the postgis database data in localhost.But i used select query in my code .so the table got displayed.I want to display the geographical points in a ...
1
vote
0answers
290 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 ...
0
votes
1answer
13 views

Fetch the selected value from scale toolbar

can somebody guide me how to fetch that value shown in the image? using jquery and or PHP language?
0
votes
2answers
459 views

How do I json_encode without those quotes for the coordinates in leaflet geojson polygon?

I have a field name: 'coordinates' I have the coordinates stored in there: like this: [[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]] when I json_encode($geojson); I get ...
0
votes
0answers
76 views

Creating WMS Tile images on server Programatically

I am using WMS services on client side applications, OpenLeyers. I am adding Tile service for base map, WMS service for road ways, cities etc. Javascript app is creating a view of services. Can I ...
0
votes
0answers
31 views

How to choose entrys in pgr_kdijkstrapath over checkbox in HTML?

I want to create a GIS, where people live at pre-defined places(all of them play a defined musical instrument). A route should be created from these people to the place where they play together. It ...
1
vote
0answers
82 views

CentOS 6.5 - After compiling gdal.so: Unable to load dynamic library

CentOS release 6.5 (Final) Linux version 2.6.18-028stab101.1 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) I'm trying to Install Cartaro CMS (http://cartaro.org/). GeoServer, ...
3
votes
1answer
199 views

Put LeafletJS geoJSON's into a MySQL database through PHP

I'm doing a project that will let users manipulate a map through LeafletJS, creating circles and polygons on top of the map. I need to gather these inputs for later analysis, using a MySQL database ...
1
vote
0answers
48 views

How to cut parallelogram with intersecting line?

I have a very specific set of circumstances under which I need to break a parallelogram into 2 pieces. The parallelogram obviously always have 4 vertices and the intersecting line intersects the ...
2
votes
1answer
150 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
0answers
4k 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 ...
0
votes
0answers
197 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
13 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
97 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
267 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
457 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 ...
0
votes
0answers
96 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 ...
0
votes
1answer
141 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 ...
-2
votes
1answer
103 views

What application server or web framwork to use [closed]

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, ...
1
vote
0answers
113 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
721 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
0answers
31 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
35 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
0answers
198 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 ...