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
81 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 ...
2
votes
4answers
1k 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
131 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
86 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
187 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
61 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
117 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
280 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
266 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
494 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
51 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
303 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
134 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
41 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
469 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
83 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
216 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
42 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
55 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
548 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
35 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
562 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.
0
votes
0answers
60 views

Correct way to zoom on php mapscript. Zoom not center

I have a 800x600 pixel map image generated with php mapscript. Whenever i want to zoom to a certain point on the map, it doesn't centerly zoom to that point. I use the zoompoint() method. The x and y ...
1
vote
2answers
185 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 ...
2
votes
1answer
564 views

How do I set the fillcolor of polygons in Leaflet.js dynamically?

I'm using the interactive chloropath example for leaflet.js I figured out how to make each of my polygons add a running tally of values to the bottom of the page after each polygon is clicked. Upon ...
0
votes
1answer
46 views

Could SQL performance be increased by storing rotations of the data?

I'm working on a project where this kind of SQL Psuedocode would apply: SELECT * FROM objects WHERE (distance My inputs are latitude and longitude, and my database holds latitude and longitude. ...
1
vote
1answer
525 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
vote
0answers
2k views

Google map did not update new geolocation when I moved the marker to new position

This is my google map code. I'm trying to update new latitude and longitude when i moved the existing marker to new position. But I don't understand why the following google map code is not updating ...
0
votes
2answers
373 views

Spatial databases in location based search

I'm developing a location based application in which i was in the plan of dividing the globe into grids and when the client requests information, will create a table or similar data model which will ...
0
votes
1answer
59 views

Get rectangle's coords in php

I'm trying to create a script which i give the center of a rectangle (in coords) and the preferred width and height (in metres) and return me the coords of four angles.Any idea about the ...
2
votes
0answers
17 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) ...
0
votes
1answer
58 views

Identify the direction of traveling road segment

I'm using pgRouting to find the least congested path using time as the cost metric. I am using average speed between two nodes to calculate time taken to travel in a segment. In pgRouting there is a ...
0
votes
2answers
367 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 ...
4
votes
1answer
293 views

How to find intersection points between two circles?

We have two points (centers of two circles) and their radius in meters, those radius make the circle. We need to find intersection points. For example we have  lat1 = 55.685025, lng1 = 21.118995, r1 = ...
1
vote
0answers
24 views

How to send variables from gis addin own web browser to gis file

I am a complete beginner with GIS. So I want to be able to go to the coordinates in arcmap I fill in in my php page. I've got this now: The variables inserted in the textfield should be the ...
1
vote
1answer
2k 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 ...
0
votes
1answer
199 views

How to set DATA string on LayerObj in MapFile by Using Mapserver's PHP Mapscript?

I'm manipulating mapfiles through mapscript. Setting layer attribute values like the opacity works like this: $layer = $map->getLayer('layername'); //set an attribute value ...
0
votes
1answer
260 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 ...
0
votes
1answer
189 views

How can i login in Geoserver from application?

I'm looking for advice how to login on Geoserver from php. I found much tutorial how to work with Geoserver through REST api and cURL: create workspaces, stores, etc. But still cant find how to login ...
4
votes
5answers
956 views

Display ESRI Shapefiles in a map in a browser. (Not in google maps)

I have a series of shapefiles that I need to render as a map on a webpage. I have an ASP.Net server, although I would prefer something that will work on Linux servers. I would like to find an easy to ...
0
votes
1answer
152 views

Is there any library for converting projection transformation in php?

I would like to transform data from lat/long ETRS89 to y/x UTM ETRS89 through php. Any idea?
0
votes
1answer
60 views

Apply edits with PHP

I trying to develop a PHP script that will simply applyedits to a feature services. Right now I'm trying to use the In the ESRI restend point example. I'm thinking if someone can help me, point me ...
0
votes
1answer
450 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 ...
0
votes
2answers
143 views

How to make PHP (in MS4W Apache) setting for MSSQL

I am new for MSSQL. I wanted to make php setting for MSSQL. What i mean by that is to avoid following error while trying to establish connection using PHP and MSSQL Fatal error: Call to undefined ...
2
votes
4answers
519 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 ...
1
vote
1answer
236 views

Buffer along a route

I'm using Googlemaps service to plot some marker on the map. All markers are stored in a postgresql table, named "locations" and that has a location column (data type to geometry). When the user ...
1
vote
0answers
553 views

How to calculate corner coordinates of static Google Map image using PHP?

How can I calculate the corner coordinates of a static Google Map image, like the one fetched with this URL, using a little PHP script?
4
votes
2answers
1k views

How can I query Postgres tables directly from OpenLayers?

I have a map that is being hosted with the components of OpenGeo. The map contains WMS layers of millions of parcels and some rail stops. All of our spatial data is on PostgresSQL. Right now the only ...
1
vote
1answer
212 views

Shortest path for a given waypoints

I have an application where the user selects some "markers" from a google maps (all those coordinates' markers are stored into a postgresql database). Right now, I can draw the route between all ...
1
vote
1answer
144 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 ...