[mapguide-users] MapGuide Open Source 3.0 FINAL released

2015-07-13 Thread Jackie Ng
We are pleased to announce that the MapGuide Open Source project team has
made the final release of MapGuide Open Source 3.0 available

Release notes: http://trac.osgeo.org/mapguide/wiki/Release/3.0/Notes
Downloads:
http://trac.osgeo.org/mapguide/wiki/Release/3.0/Notes#Installation
Documentation: Updated Developer's Guide, API reference documentation and
sample code are now included with the installer. The release notes contain
information on API changes for MapGuide Open Source 3.0

If you find a defect, please report it using http://trac.osgeo.org/mapguide
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Cleaning out old/unused MapGuide binaries/packages on download.osgeo.org

2015-07-13 Thread Jackie Ng
Hi All,

The MapGuide 3.0 final release should be available soon. We hit a bit of a
snag uploading the final bits to download.osgeo.org

The snag is due to low disk space on download.osgeo.org. Markus has kindly
let us know that the MapGuide project has around 35GB (!!!) of various
binaries on there.

If we remove all the testing/preview/beta/RC packages of various
MapGuide/Maestro releases, this should free up some significantl disk space.

Anybody have objections to this?

- Jackie
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Fwd: Consultation mapguide to be send

2015-07-13 Thread Julián Felipe
Hello Mapguides List,

I am developing an aplication about vehicle tracking and i have beed
reading the MgOpenSourceDevGuide.pdf.

I need to draw the car image about location on the map but i don´t
understand how to do it.

Coul you help me with this please.


My code is the follow:




html

body onLoad=OnPageLoad()

?php
function add_layer_definition_to_map($layerDefinition, $layerName,
$layerLegendLabel, $sessionId, $resourceService, $map)
// Adds the layer definition (XML) to the map.
// Returns the layer.
{
 echo Iniciando metodo add_layer_definition_to_map...;
global $schemaDirectory;

// Validate the XML.
$domDocument = new DOMDocument;
$domDocument-loadXML($layerDefinition);


// Save the new layer definition to the session repository
$byteSource = new MgByteSource($layerDefinition,
strlen($layerDefinition));
echo br/ echo 111 br/;
$byteSource-SetMimeType(MgMimeType::Xml);
echo br/ echo  br/;
echo session: .$sessionId;
$resourceID = new
MgResourceIdentifier(Session:$sessionId//$layerName.LayerDefinition);
echo br/ echo  br/;
$resourceService-SetResource($resourceID, $byteSource-GetReader(),
null);
echo br/ echo  br/;
$newLayer = add_layer_resource_to_map($resourceID, $resourceService,
$layerName, $layerLegendLabel, $map);
echo br/ echo  br/;
return $newLayer;
}


function add_layer_resource_to_map($layerResourceID, $resourceService,
$layerName, $layerLegendLabel, $map)
// Adds a layer defition (which can be stored either in the Library or a
session
// repository) to the map.
// Returns the layer.
{
$newLayer = new MgLayer($layerResourceID, $resourceService);

// Add the new layer to the map's layer collection
$newLayer-SetName($layerName);
$newLayer-SetVisible(true);
$newLayer-SetLegendLabel($layerLegendLabel);
$newLayer-SetDisplayInLegend(true);
$newLayer-SetDisplayInLegend(true);
$layerCollection = $map-GetLayers();
if (! $layerCollection-Contains($layerName) )
{
// Insert the new layer at position 0 so it is at the top
// of the drawing order
$layerCollection-Insert(0, $newLayer);
}

return $newLayer;
}


?

?php

try{
 define('__ROOT__', dirname(dirname(__FILE__)));
require_once(__ROOT__.'/../phpsamples/common/common.php');
echo ferez.__ROOT__.'/../findaddress/layerdefinitionfactory.php';
require_once(__ROOT__.'/findaddress/layerdefinitionfactory.php');

 // Get the session information passed from the viewer.
 $args = ($_SERVER['REQUEST_METHOD'] == POST)? $_POST : $_GET;
 $mgSessionId = $args['SESSION'];
 $mgMapName = $args['MAPNAME'];

 // Initialize the web extensions,
 MgInitializeWebTier ($webconfigFilePath);

 // Get the user information using the session id,
 // and set up a connection to the site server.
 $userInfo = new MgUserInformation($mgSessionId);
 $siteConnection = new MgSiteConnection();
 $siteConnection-Open($userInfo);


 echo Instanciamos Feature service br/br/;
$featureService =
$siteConnection-CreateService(MgServiceType::FeatureService);
echo Instanciamos Resource service br/br/;
$resourceService =
$siteConnection-CreateService(MgServiceType::ResourceService);
echo Instanciamos ResourceIdentifier br/br/;
$bufferFeatureResId = new MgResourceIdentifier(Session: . $mgSessionId .
//Buffer.FeatureSource);

$map = new MgMap($siteConnection);
$map-Open($resourceService, $mgMapName);


// Set up some objects for coordinate conversion
$mapWktSrs = $map-GetMapSRS();
$agfReaderWriter = new MgAgfReaderWriter();
$wktReaderWriter = new MgWktReaderWriter();
 echo Creando FeatureSource br/br/;
echo br/ echo 1 br/;
 // Create a temporary feature source
$bufferClass = new MgClassDefinition();
$className = 'BufferClass';
$bufferClass-SetName('BufferClass');
$properties = $bufferClass-GetProperties();

$idProperty = new MgDataPropertyDefinition('ID');
$idProperty-SetDataType(MgPropertyType::Int32);
$idProperty-SetReadOnly(true);
$idProperty-SetNullable(false);
$idProperty-SetAutoGeneration(true);
$properties-Add($idProperty);

$polygonProperty = new MgGeometricPropertyDefinition('BufferGeometry');
$polygonProperty-SetGeometryTypes(MgFeatureGeometricType::Point);
$polygonProperty-SetHasElevation(false);
$polygonProperty-SetHasMeasure(false);
$polygonProperty-SetReadOnly(false);
$polygonProperty-SetSpatialContextAssociation('defaultSrs');
$properties-Add($polygonProperty);

$idProperties = $bufferClass-GetIdentityProperties();
$idProperties-Add($idProperty);

$bufferClass-SetDefaultGeometryPropertyName('BufferGeometry');
$bufferSchema = new MgFeatureSchema('BufferLayerSchema', 'temporary schema
to hold a buffer');
$bufferSchema-GetClasses()-Add($bufferClass);
$sdfParams = new MgCreateSdfParams('defaultSrs', $mapWktSrs, $bufferSchema);
$featureService-CreateFeatureSource($bufferFeatureResId, $sdfParams);
 echo br/ echo 2 br/;
//Creamos Layer

Re: [mapguide-users] MapGuide Open Source 3.0 FINAL released

2015-07-13 Thread Rémy Gourrat
Good job

Reusable tile  set is a great thing !

Thanks to the team

Remy Gourrat

De : Jackie Ng [via OSGeo.org]mailto:ml-node+s1560n5215407...@n6.nabble.com
Envoyé : ‎13/‎07/‎2015 13:30
À : Rémy GOURRATmailto:rgour...@ag-carto.fr
Objet : MapGuide Open Source 3.0 FINAL released

We are pleased to announce that the MapGuide Open Source project team has
made the final release of MapGuide Open Source 3.0 available

Release notes: http://trac.osgeo.org/mapguide/wiki/Release/3.0/Notes
Downloads:
http://trac.osgeo.org/mapguide/wiki/Release/3.0/Notes#Installation
Documentation: Updated Developer's Guide, API reference documentation and
sample code are now included with the installer. The release notes contain
information on API changes for MapGuide Open Source 3.0

If you find a defect, please report it using http://trac.osgeo.org/mapguide

___
mapguide-users mailing list
[hidden email]/user/SendEmail.jtp?type=nodenode=5215407i=0
http://lists.osgeo.org/mailman/listinfo/mapguide-users


If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.x6.nabble.com/MapGuide-Open-Source-3-0-FINAL-released-tp5215407.html
To start a new topic under MapGuide Users, email 
ml-node+s1560n4182607...@n6.nabble.com
To unsubscribe from MapGuide Users, click 
herehttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4182607code=cmdvdXJyYXRAYWctY2FydG8uZnJ8NDE4MjYwN3w1MzYwNTE3NDA=.
NAMLhttp://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

--
This message has been scanned for viruses and
dangerous content by MailScannerhttp://www.mailscanner.info/, and is
believed to be clean.




-
AG-Carto - Bayonne
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Open-Source-3-0-FINAL-released-tp5215407p5215481.html
Sent from the MapGuide Users mailing list archive at Nabble.com.___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users