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

1
vote
1answer
15 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
24 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
23 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. ...
-1
votes
0answers
14 views

tileOrigin for WMS [duplicate]

In OpenLayers there is possible to pass tileOrigin parameter for WMS layer. This is required to align layer tiles for WMS that uses arcgis caches. ...
0
votes
0answers
11 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 ...
0
votes
0answers
55 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
1answer
41 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
32 views

Pont to Point and Point to Line Calculations [duplicate]

We have been beeating our head against a wall trying to get point to point and point to line segment (perpindicular) to work in PHP. I posted the other day as well but did not include the code in ...
0
votes
0answers
29 views

GeoServer + PHP + Single Sign On

I'm developing a web app which uses GeoServer side by side with a PHP framework. I've been struggling for a while trying to find out an acceptable way of implementing a Single Sign On. I would like ...
1
vote
0answers
38 views

GeoServer setup for intercepting WFS-T requests and handle them via PHP

I'm developing a web app which uses GeoServer side by side with a PHP framework. My goal is to be able to intercept WFS-T requests to update some records whenever a WFS transaction is executed ...
0
votes
1answer
21 views

GPL-compatible database of country & region names

For WordPress's sister project BuddyPress, we are looking for relatively-reputable resources that manage a list of countries and regions. Due to the WordPress OpenSource philosophy, we are only ...
0
votes
0answers
66 views

parsing an osm-file with PHP simpleXML :: getting a few more tags

I am new to PHP's SimpleXML. upate: The original version of this question was derived from here: OSM Data parsing to get the nodes with child I am thankful that hakre offered a great example in ...
0
votes
0answers
42 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 ...
0
votes
0answers
38 views

schools are included as nodes, while others are areas - how to get all of them?

goal: want to extract schools from Overpass-api: now with an update: the allready exinsting code runs nicely. At the moment it is no problem that i do not catch the shools as ways nodes or rleatins. ...
1
vote
0answers
32 views

change the area in a osm-request: from lon & lat to whole country

I am new to PHP's SimpleXML. the script below makes a starting point for my project. Below I have added my own answer to the question, how to refine the code to ad more tags. I want to filter the ...
0
votes
2answers
64 views

Common Web Server for Web Mapping?

I'm planning to create interactive routing map system( for small town only ) which will be running online. My server side language will be PHP and PostGIS/PostgreSQL with using pgRouting and client ...
1
vote
0answers
365 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 ...
0
votes
0answers
20 views

PHP Query Tables of Active Layers

I currently have an "Identify Features" function on my site that works by passing a the Lon and Lat of the click, along with a list of active layers to a PHP script that will then query my PostGIS ...
0
votes
1answer
36 views

How can i store shape file in postgress database as a table using php?

I want to create a table from a shape file in Postgres. To do that, I can run this command in cmd: shp2pgsql -s 4326 -W LATIN1 E:\Any\THA_adm public.test123 | psql -h localhost -d DATA -U postgres -w ...
0
votes
0answers
87 views

How do i integrate Clustering into my Google Map?

How do i integrate clustering for my google map? I have found a few codes but i'm not sure how to combine both so that it won't mess up the whole site. This is my current code: <script ...
1
vote
1answer
127 views

Development guide for beginner? [duplicate]

Im new to GIS and mapping, and I need to learn how to create web map application for my project. I'm really confused on what to use. I have read PostGIS, OpenStreetMap, and Openlayer. I'm wondering ...
0
votes
1answer
37 views

Can we use geoNetwork with php [closed]

I am new to GIS, I want to develop web application using geoNetwork, Is it posible to use PHP with geoNetwork?
0
votes
0answers
30 views

about updating WFS with popup

I want to ask you something about this How to collect data via WFS and Popup I started to build my own WebGis using openlayers and geoserver, but I'm newbie here I want to add form to update the ...
2
votes
1answer
200 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
0answers
22 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
85 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
17 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
77 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
1answer
71 views

How to display drawings from ArcGIS on Google Maps using JavaScript or PHP?

my client has ArcGIS installed on his PC and he has designed roads, hospitals, houses, and parks of a specific area in ArcGIS he needs his system online. challenging task for me is how can I get ...
1
vote
4answers
517 views

Formula to Check Latitude & Longitude is within Area without Google Maps Api

I got this Example Map SampleMap: http://techinfo.co.id/test/map.php I make Boundary Polygon shape , -6.875165174925262, 107.56293296813965 -6.882663904407988, 107.66730308532715 ...
1
vote
1answer
107 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 ...
0
votes
0answers
63 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 ...
3
votes
3answers
144 views

Open Street Map: converting to country -> administrative unit -> city database

To moderators: If you think this question is too broad, please point me into right direction before closing, I'm desperately looking for help. I'm stuck on my task and I don't know what to do. The ...
1
vote
1answer
59 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
88 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 ...
2
votes
1answer
160 views

Problem with reading data from PostGIS as KML file using PHP

I am using the following PHP code in order to read data from PostGIS and save it in KML format as a file. When I load the page a document with ".PHP" extension is returned (not .kml) which inside has ...
2
votes
2answers
176 views

Problem in running query on PostGIS using PHP

Would you kindly help me solving this problem. I'm trying to use the PHP code provided here in order to read geo-data from PostGIS. The code seems clear without any problem (also nobody has ...
3
votes
2answers
252 views

Problem with loading GeoJSON file in OpenLayers generated by PHP

I'm trying to read some geo-data from PostGIS database using PHP, creating a GeoJSON file and showing it on a base map using OpenLayers. The PHP code works just fine. The generated data in GeoJSON ...
1
vote
0answers
46 views

Web Application/Android Application [closed]

I want to develop a web application/android app which has following functions. Runs OpenStreetMaps Creating Markers Changing colors of the markers Connecting all to a MySQL Database Please let me ...
1
vote
0answers
211 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
106 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 ...
2
votes
0answers
39 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 ...
1
vote
1answer
266 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 ...
0
votes
1answer
70 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
167 views

Openlayers 2.1x Load WMS Layers From PHP

I have been looking to see if it's possible to add WMS layers afrom a PHP script. I'd like to do this to move a lot of the code from the client side to the server. Currently I load the layers in the ...
0
votes
0answers
41 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
1answer
49 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
0answers
401 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
33 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 ...
1
vote
3answers
376 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.