2017 © Pedro Peláez
 

library mapserver

MapServer package for Laravel

image

taviroquai/mapserver

MapServer package for Laravel

  • Friday, March 6, 2015
  • by taviroquai
  • Repository
  • 2 Watchers
  • 6 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Laravel Mapserver package

Install

Add to composer.json, (*1)

    require: {
        "taviroquai/mapserver": "~2.0"
    }

Add Service Provider on app/config/app.php, (*2)

    'providers' => array(
        ...
        'Taviroquai\Mapserver\MapserverServiceProvider',
    ),
php composer.phar update

Usage

    // Create a MapServer instance
    $mapserver = new \Taviroquai\Mapserver\Mapserver();

    // Create a new map object (mapObj)
    $map = $mapserver->createMap(
        'test',
        storage_path('default.map'),
        storage_path('template.html')
    );

    // Return WMS capabilities
    $response = $mapserver->getCapabilitiesResponse($map);

    // Return map image as Illuminate response
    $response = $mapserver->getImageResponse($map);

    return $response;

Requirements

Of course Laravel 5, Mapserver and MapScript must be installed, (*3)

Features

  1. Check whether MapServer is installed or not at the requested machine
  2. Opens a mapfile
  3. Export a mapfile
  4. Return a GetCapabilities response as Illuminate\HTTP\Response
  5. Creates map image as Illuminate\HTTP\Response

Call for Collab

All GEO lovers are invited to fork and grow this project ;), (*4)

The Versions

06/03 2015

dev-master

9999999-dev

MapServer package for Laravel

  Sources   Download

MIT

The Requires

 

by Marco Afonso

06/03 2015

dev-laravel5

dev-laravel5

MapServer package for Laravel

  Sources   Download

MIT

The Requires

 

by Marco Afonso

06/03 2015

v2.0.0

2.0.0.0

MapServer package for Laravel

  Sources   Download

MIT

The Requires

 

by Marco Afonso

07/12 2014

dev-laravel4

dev-laravel4

MapServer package for Laravel

  Sources   Download

MIT

The Requires

 

by Marco Afonso

07/12 2014

v1.0

1.0.0.0

MapServer package for Laravel

  Sources   Download

MIT

The Requires

 

by Marco Afonso