Monday, December 24, 2007

Small Balloons Letters

Part 3: Working with without Mapserver Mapfile (. map)

Creative Commons License

This work is licensed under a Creative Commons .

© 2007 Jaime M. As Nozawa. You are free to copy, distribute and transmit the work and make derivative works under the following conditions: a) You must give the original author. b) can not use this work for commercial purposes (including publication by s any means, for-profit entities). c) If you alter, transform this work or creates a derivative work, distribute the work only under a license identical to this one. For any reuse or distribution, you must make clear to others the license terms of this work. Any of these conditions can be waived if you get permission from the owner of the copyright. The rights under fair use and other constraints are not affected by the above. Full license Castilian. The information contained in this paper and those derived from it are provided as they are, the authors assume no liability if the user or reader of these misuses.

Part 3 In this tutorial we'll do something interesting work without using a Mapfile (. Map). As you may have noticed the data is loaded according to the configuration. Map we've been working on lately, but I've seen always ask on the forums who always seems hard, having to be entering a text file to be adding layers or changing the color. In this part 3 of this tutorial, you will open new doors and the horizon as Web GIS Programmer, you will realize that we can, smooth but with some time to create our own Web interface management Mapserver (although there are projects like this but still in development).

I would say. Mapfile map or is like an "initial point" (. Ini). That means that we use to optimize the speed of MapServer layers to load default the first time they enter our application, and having done this, we'll review as it suits us.

This time we'll do something simple, try to do the tutorial # 1 but without using Mapfile ...

That means we will attempt to create a map as if there the next Mapfile: LAYER


NAME "Departments"

STATUS ON DATA "Lim_dep.shp" TYPE POLYGON

    
CLASS STYLE

COLOR 200 150 2
OutlineColor 0 0 0

END END
END


This Mapfile that I have is for reference only and WILL NOT BE USED .

Here I put my CODE EQUAL TO THE ABOVE:

1 \u0026lt;? Php
2 / / ejemplo01.php working without mapfile
3 / / Jaime M. As Nozawa 2007 Creative Co
4 5
/ / Load MapScript extension. Check if the extension is already loaded by default. 6
if (! extension_loaded ( "MapScript" )) dl ( 'php_
mapscript. " . PHP_SHLIB_SUFFIX )

7 8
/ / instantiate a new object: map object. 9
$ JMap = ms_newMapObj ( " ) 10

11
$ JMap -> September ( " name " , " Evidence " )
12
$ JMap -> September ( " SHAPEPATH " , " C: / ms4w-php5 /
carpetaDondeestantusShapes / );
13
14
$ jMap -> setSize (600 , 400 );
15
$ jMap -> setExtent (- 87.9964, - 19.0216 , - 63,114 , 1.19528 );
16

17 18
$ JMap -> web -> September ( "ImagePath" , "C: / ms4w-php5/tmp/ms_tmp / " )
$ 19 JMap -> web -> September ( " imageurl " , " / ms_tmp / " )
20
21
/ / Create a Layer within our MapObj and we set its properties
22
$jLayer = ms_newLayerObj ( $jMap );
23
$jLayer -> set ( "name" , "Departamentos" );
24
$jLayer -> set ( "type" , MS_LAYER_POLYGON );
25
$jLayer -> set ( "status" , MS_ON )
$ 26 jLayer -> September ( "data" , "Lim_dep.shp" )

27 28
/ / Create a
LayerObj classObj within 29
$ JClass = ms_newClassObj ( $ jLayer )

30 31
/ / We created a classObj styleObj within 32
$ jStyle = ms_newStyleObj ( $jClass );
33
34
$jStyle -> color -> setRGB ( 200 , 150 , 2 );
35
$jStyle -> outlinecolor -> setRGB ( 0 , 0 , 0 );
36
37
$ jImagen = $ JMap -> draw ();

38 39
/ / create and capture the rendered image path. 40
$ url_imagen = $ jImagen -> saveWebImage ();
41
?>


1) MapObj
Here The creation of MapObj is performed without passing a parameter, so do not charge any. map:

$ JMap
= ms_newMapObj ( " )


There is also an object that I set it up now" on the fly "is the object Web . This site does not have to object to instantiate, and is created automatically when you create an income so MapObj properties encountered:

18 $ JMap -> web -> September ( "ImagePath" , "C: / ms4w-php5/tmp/ms_tmp /" )
$ 19 JMap -> web -> September ( "imageurl" , "/ ms_tmp /" )


NEW
Another property is SHAPEPATH. This property is needed to make things easier and not putting the whole path each time we add a layer and we refer to the location of shapefiel. (Note the data property of the Layer, and do not put long routes)

12 $ JMap -> September ( "SHAPEPATH" , "C: / ms4w-php5/carpetaDondeestantusShapes /" )
Look
clearly as I entering the properties, always with the "set" method for any object in the Map:
 int set (string propertiedad, value) 
with set can change almost all properties of objects (unless you have a specialized property specific). If it returns a value of -1 means error.

2) Objects within the MAP
When I create a layer within the MapObj necessarily to instantiate it, I have to pass the object to which it is a party. In this case I think a layer LayerObj to be found within a MapObj:

ms_newLayerObj ( $ JMap )

As for the class or the style .. which are always contained within a larger object

$ 29 JClass = ms_newClassObj ( $ jLayer )

32
$ jStyle = ms_newStyleObj ( $ JClass )

3) constants:
addition to the above, have been used with new constants. In our case the rate constant Layers. In our example the type polygon.
Other possible values \u200b\u200bare:
 MS_LAYER_POINT, MS_LAYER_LINE, MS_LAYER_POLYGON, MS_LAYER_RASTER, MS_LAYER_ANNOTATION 

The latter type refers to an annotation layer.
Sometimes we want to label it alone or put
icons, logos for garnish or ease of comprehension, ETC.


---- Well that's it, I do not score because it would be the same as part 1. Can you try to change any of the property passing parameters using GET or SESSION. Or better yet, make a simple interface to configure the properties. Well you all in your imagination.
To always finish with a picture, here are a graph of the. Map (taken from the Book WebMapping ) I found sailing within the preview of the book.


enjoy it ... and do not forget to write and post their comments.
    

- NOTE UPDATE -
tutorial challenge: Recreate the map of the tutorial part 2, but without using a mapfile.

Thursday, December 20, 2007

Cake Boss Buttercream Recipe

PHP-mapscript for mapserver. Part 2: Dynamic Turning the mapfile (Continued) PHP-mapscript

Creative Commons License

This work is licensed under a Creative Commons .

© 2007 Jaime M. As Nozawa. You are free to copy, distribute and transmit the work and make derivative works under the following conditions: a) You must give the original author. b) can not use this work for commercial purposes (including publication by any means, for-profit entities). c) If you alter, transform this work or creates a derivative work, distribute the work only under a license identical to this one. For any reuse or distribution, you must make clear to others the license terms of this work. Any of these conditions can be waived if you get permission from the owner of the copyright. The rights under fair use and other constraints are not affected by the above. Full license Castilian. The information contained in this document and the derivatives thereof are provided as they are, the authors assume no liability if the user or reader of these misuses.

     1    \u0026lt;? Php 
2
/ / Get the layers

3 4
$ jCapas = $ JMap -> getAllLayerNames ();
5
$ layersOn = array ();
6 foreach ($ jCapas
as $ idx => $ layer ) {

7 8
$ capaObj = $jMap -> getLayerByName ( $layer );
9
10 if (
$capaObj -> status == MS_ON ) {
11 echo
"** CAPA :{$capaObj->name} **<ul>" ;
12
13 for(
$i = 0 ; $capaObj -> getClass ( $i ); $i ++){
14
$Class = $capaObj -> getClass ( $i );
15 echo
"<li>CLASS:
16 <ul>
17 <li>NOMBRE CLASS: {$Class->name}</li>
18 \u0026lt;li> EXPRESSION {$ Class-> getExpression ()}\u0026lt;/ li>
\u0026lt;li> 19 COLOR: {$ class-> getStyle (0) -> color-> red} {$ class-> getStyle (0) -> color-> green} {$ class-> getStyle (0) -> color-> blue} \u0026lt;/ li>
20 \u0026lt;/ ul> \u0026lt;/ li>
21 "
;

22 23}
24 25
echo "\u0026lt;/ ul>" ;
26}

27 28 29 }
?>

Explanation ...

a) $ jCapas = $ JMap-> getAllLayerNames ();

With the method (class MapObj) getAllLayerNames get an array ($ jCapas) in which we will have the names of each layer (Layers) of our mapfile. So doing a foreach would do a tour of array:

foreach ($ jCapas as $ idx => $ layer)

b) Re LayerObj

$ capaObj = $ JMap-> getLayerByName ($ layer);

With the method (class MapObj) getLayerByName LayerObj get an object ($ capaObj) from where you enter your parameter the name of the layer. As we got the names of each layer using the above method then we have no problems. In other words, the previous foreach travels layer by layer, and this method gets the LayerObj (See Table of tutorial part 1).


property
$ capaObj-> status

get itself the state of the layer, ON / OFF / DEFAULT. Values \u200b\u200bare constants in the mapscript API environment. In this case you can get the values: MS_ON, MS_OFF, MS_DEFAULT.

Other Boolean constants used in other situations: MS_TRUE, MS_FALSE, MS_YES, MS_NO

More Properties:

$ capaObj-> name: The name of the layer (String)
$ capaObj-> Transparency: Transparency layer (Q) $
capaObj-> maxscale: Maximum scale display (double) $
capaObj-> minscale: Minimum scale display (double) $
capaObj-> CLASSITEM: String CLASSITEM as explained at the start (string)

And all the properties you can add in the mapfile


c) Re ClassObj LayerObj

Each object can have many objects ClassObj inside, but always at least one. The ClassObj used to categorize our filter layer according to the field and filtering CLASSITEM with EXPRESSION. If you omit the EXPRESSION means that only had one ClassObj.

$ Class = $ capaObj-> getClass ($ i)

In our case I am using the method getClass (ObjLayer class) returns an object you ClassObj that is stored in the variable $ Class. The $ i is an integer that should represent CLASS which we refer. Zero (0) be the first class and compulsory for all Layer must always have a Class.
For a change now but I did not use foreach to a for travel.

More ClassObj object properties:

$ Class-> name: Name of the class

More ClassObj object methods:

$ Class-> getExpression (): Returns a string that gets the filter to use


d) styleObj

This object can set the background color, line thickness and color, font size, etc ...

I am in this case using

$ Class-> getStyle (0)

Method ClassObj class that gets an object styleObj. Because I've always used
a single Layer Style to get the number 0, but if more would have sequence numbers

Properties:

$ class-> getStyle (0) -> color: Property which holds the object colorObj.
This object has properties color RGB (red, green, blue)

$ Class-> getStyle (0) -> backgroundColor: background color (colorObj)
$ class-> getStyle (0) -> OutlineColor: color edge the CLASS (colorObj)
$ Class-> getStyle (0) -> size: Font size (int)

's all for the previous code, easy?

4. Modifying the properties

Let's start with something simple, let's modify the Extent of the map
(apparently we zoom) and the color of a Class of a layer:

     1    \u0026lt; ;? php 
2
/ / ejemplo02.php
3 / / Jaime M. As Nozawa

4 5 / / Load MapScript extension. Check if the extension is already loaded by default. 6
if (! extension_loaded ( "MapScript" )) dl ( 'php_mapscript. " . PHP_SHLIB_SUFFIX )

7 8
/ / instantiate a new object : map object. The constructor must receive at least the parameter file location.
map 9
$ JMap = ms_newMapObj ( "ejemplo01.map" ) 10

11 $ jmap -> SetExtent (-80.17494, -14.0216, -72.93546, -9.19528) ;
12
13
$ jColor = $ jmap -> getLayerByName ('Departments')
-> getClass (0) -> getStyle (0) -> color;
14
15 $ jColor -> setRGB (100,150,120);
16
17
$ jImagen = $ jMap -> draw ();
18 / / create and capture the rendered image path. 19
$ url_imagen = $ jImagen -> saveWebImage ();
20
?>

$ JMap-> setExtent (-80.17494, -14.0216, -72.93546, -9.19528);

In this case we are using the method to MODIFY
setExtent the Extent of the map and therefore we zoom into a region getting
the coordinates of the endpoints.

setExtent (double minx, double miny, double maxx, double maxy)
sieguiente
With online:
$ jColor = $ JMap-> getLayerByName ('Departments') -> getClass (0) -> getStyle ( 0) -> color;

As explained above colorObj have taken ownership style
0, Class 0, the layer called 'Departments' Map object.

After that modifies the color of that STYLE:

$ jColor-> setRGB (100,150,120);

Later I'll be working on a tutorial more interesting, I'll call
: Without Mapserver Mapfile (. Map) .

@ __ @

Result:

Wednesday, November 14, 2007

Gonorrhea Negative But Symptoms

of Mapserver. Part 2: Returning the mapfile

Creative Commons License

This work is licensed under a Creative Commons .

© 2007 Jaime M. As Nozawa. You are free to copy, distribute and transmit the work and make derivative works under the following conditions: a) You must give the original author. b) can not use this work for commercial purposes (including publication by any means, by entities profit). c) If you alter, transform this work or creates a derivative work, distribute the work only under a license identical to this one. For any reuse or distribution, you must make clear to others the license terms of this work. Any of these conditions can be waived if you get permission from the owner of the copyright. The rights under fair use and other constraints are not affected by the above. Full license Castilian. The information contained in this document and the derivatives thereof are provided as they are, the authors assume no liability if the user or reader of these misuses.



In this second part of the tutorial will try to do more dynamic our Mapfile (. Map). As we saw in Part 1, we could create a startup configuration file and upload the data listed in the file contents. Now we want to capture the data (properties) and modify the data found within the file, of course, without having to enter. Map to make a change, but performed only by code.

1. First the . Map will be like this to make it more interesting:

   # Home mapfile  
  MAP NAME test 


EXTENT SIZE 600 400 63 114 -19.0216 1.19528 -87.9964
WEB

ImagePath "C: / ms4w-php5/tmp/ms_tmp /" # This may vary according to your configuration
ImageURL "/ ms_tmp / "END




LAYER NAME" Departments "

STATUS ON DATA" Lim_dep.shp "TYPE POLYGON

CLASSITEM Nom_Dep


CLASS NAME" LIMA "
EXPRESSION / LIMA /

STYLE COLOR 200 OutlineColor
150 2 200 200 200
END END



CLASS NAME "OTHER"
EXPRESSION / .* /

STYLE COLOR 100 28 55 0 0 0
OutlineColor


END END END END


# end mapfile
Since we now realize I have added new features (in bold) of our initial mapfile. Our Window object

layer now has one more property:
       CLASSITEM Nom_Dep  
with him we can choose a field within the table, in this case Nom_dep order to make some search and filter or segment by different criteria.

CLASS In our view it is within LAYER now has more properties:
      
CLASS NAME "LIMA"
EXPRESSION / LIMA /

STYLE COLOR 200 150 2 200 200 200
OutlineColor

END END

In this case I am putting a name to the CLASS: LIMA, and the filter is made according to a regular expression
in this case / LIMA / bone looks inside the column Nom_dep all records containing the word "LIMA".

STYLE At the other called OTHER, the regular expression
/ .* / means one or more characters. In other words, all the rest. and note that each CLASS colored with different colors both edges as the content.

2. now proceed to add more lines in our Ejemplo01.php and rename it to

ejemplo02.php

    1    \u0026lt;? Php 2 
/ / ejemplo02.php
3 / / Jaime M. As Nozawa

4 5 / / Load MapScript extension. Check if the extension is already loaded by default.
6
if (! extension_loaded ( "MapScript" )) dl ( 'php_mapscript. " . PHP_SHLIB_SUFFIX )

7 8
/ / instantiate a new object: map object. The constructor must receive at least the parameter file location.
map 9
$ JMap = ms_newMapObj ( "ejemplo01.map" ) 10

11
/ / Rendering 12
$ jImagen = $ JMap -> draw ();

13 14
/ / create and capture the rendered image path. 15
$ url_imagen = $ jImagen -> saveWebImage ();
16
?>
17
\u0026lt;HTML>
18
\u0026lt;HEAD> \u0026lt;TITLE> Example 19 1 \u0026lt;/ TITLE>
20 \u0026lt;/ HEAD>
21 \u0026lt;BODY>
22 \u0026lt;IMG SRC = \u0026lt;? php echo $ url_imagen ; ?> ; >
Facebook
23 24 \u0026lt;? php
25
/ / Get Properties MapaObj called JMap
26
echo "Name map: $ { JMap-> name} Facebook " ;
27
echo "Extent map {$ JMap-> extent-> minx} / / {$ JMap-> extent-> miny} / / {$ JMap-> extent-> maxx} / / {$ JMap-> extent-> maxy} Facebook " ;
28
echo" Size ñ or image: {$ jImagen-> width} {$ jImagen-> Facebook height} " ;
29
echo" Scale: 1 / {$ JMap-> scale} \u0026lt;p> " ;
30
/ / echo ms_GetVersion ()
31 ?>
32
\u0026lt;/ BODY>
33 \u0026lt;/ HTML>


We clearly see that we can access the properties of MapObj: $ JMap

$ JMap -> name : Name property of the object MapObject
$ jImagen-> width: width of the image in pixels
$ JMap-> extent-> miny (minx) (maxx) (maxy) to capture
The Extent of the map scale is not very good proportion that is being used geodetic coordinates (do not get areas)
in next tutorials we will see how to correct this option.

3. Now that you know more or less objects and properties, they leave some interesting code for analysis:

    1    \u0026lt;? Php 
2
/ / Get the layers

3 4
$ jCapas = $ JMap -> getAllLayerNames ();
5
$ layersOn = array ();
6 foreach ($ jCapas
as $ idx => $ layer ) {
7 8
$ capaObj = $ JMap -> getLayerByName ( $ layer);
9
10 if ($
capaObj -> status == MS_ON ) {echo
11 "** COVER: $ {capaObj-> name} ** \u0026lt;ul> " ;
12
13 for ($ i
= 0 ; $ capaObj - > getClass ( $ i) $ i + +) {
14
$ Class = $ capaObj -> getClass ( $ i);
15
echo "\u0026lt;li> ; CLASS: 16
\u0026lt;ul>
\u0026lt;li> 17 CLASS NAME: {$ class-> name} \u0026lt;/ li>
18 \u0026lt;li> EXPRESSION {$ Class-> ; getExpression ()}\u0026lt;/ li>
19 <li>COLOR: {$Class->getStyle(0)->color->red} {$Class->getStyle(0)->color->green} {$Class->getStyle(0)->color->blue}</li>
20 </ul></li>
21 "
;
22
23 }
24
25 echo
"\u0026lt;/ Ul>" ;
26}

27 28 29 }
?>


Result:


continued ...

Monday, November 5, 2007

Safe Oral Gel In Pregnant

dynamic PHP-mapscript for mapserver. Part 1: Concepts Web

Creative Commons License

This work is licensed under a Creative Commons .

© 2007 Jaime M. As Nozawa. You are free to copy, distribute and transmit the work and make derivative works under the following conditions: a) You must give the original author. b) can not use this work for commercial purposes (including publication by any means, for-profit entities). c) If you alter, transform this work or creates a derivative work, distribute the work only under a license identical to this one. For any reuse or distribution, you must make clear to others the license terms of this work. Any of these conditions can be waived if you get permission from the owner of the copyright. The rights under fair use and other constraints are not affected by the above. Complete license in Castilian . The information contained in this document and the derivatives thereof are provided as they are, the authors assume no liability if the user or reader of these misuses.


What is MapServer?
MapServer is a development environment open source (Open Source Initiative ) for creating GIS applications in Internet / Intranet to view, query and analyze geographic information through the network using Internet technology Map Server (IMS).

Its main features are:

Source: wikipedia

What is PHP / mapscript?
PHP / mapscript is a PHP module that allows access to the MapServer API. These functions and classes would be available within our development environment. The module was developed and is currently maintained by the company
DM Solutions Group.

mapscript Family is refresentada as the next tree (source of data here ):
 
  MapServer  
/ \\
/ \\
/ \\
PHPMapScript \\ SWIGMapScript
PHP4 + - ---+-----+----+----+----+
is closer to MapServer and therefore more native in the implementation of our applications.
the mapfile
The MapServer is characterized by a configuration file named mapfile that has the extension point map (. Map). Here you define the data to be used by our application as mentioned below: layers, types and their configuration data source origin and method of serving data, legend and projections, and many other settings that you want

loaded at startup.
For this reason, we could say that the heart of MapServer is configured through a text file that is used in time implementation. Under the developer's perspective can be presented as a hierarchy of objects with a primary parent and many child objects that derive from it.
MapServer CGI Notes: Although this is not the aim of our paper, how to use CGI mapserver as the more traditional and usually used in the tutorials found on the Internet. MapServer CGI works through HTML templates (templates) and low basic reference rigid structures. That the. Map is of vital importance for the initialization of the layers.


The PHP mapscript breaks it rigidity. Map (for loading the layers configured in him the initialize) and can modify, change or even add more layers as we wish. This means that if you have a layer of green inactive, we can modify it to red and active. Do approach or consult relevant data.



Requirements to develop


Web Server: Apache or IIS with PHP and PHP module of mapserver-mapscript

Bookstores: Proj4, OGR, GDAL and utilities that we will require
  1. Data Source: shape files, PostGIS or other source OGR

  2. A Mapfile (. map)
  3. An editor ID text or PHP preferred.
  4. Basic knowledge of Geodesy and GIS, and most importantly, eager to learn

  5. We are lucky because the requirements 1,2,3 and Windows are included in a package called ms4w and you can get
  6. here.
  7. For those who are into Linux, you will find plenty of packages for both compiler and Ubuntu, Debian or Fedora. Intalarían only for the debs or rpms. On the other hand, Linux could also use a package called FGS and is
  8. here.
If installing on Linux becomes somewhat difficult, may request to review an article on creating only the installation.


A basic example:


ejemplo01.php

1 \u0026lt;? Php

2 / / ejemplo01.php
3 / / Jaime M. As Nozawa
4 5
/ / Load MapScript extension. Check if the extension is already loaded by default. 6
if (!
extension_loaded
( "MapScript"
)) dl ( 'php_mapscript. " . PHP_SHLIB_SUFFIX ) 7 8 / / instantiate a new object: map object. The constructor must receive at least the parameter file location.
map 9
$ JMap
=
ms_newMapObj (
"ejemplo01.map" ) 10 11 / / Rendering
12
$ jImagen
= $ JMap
->
draw (); 13 14 / / create and capture the rendered image path. 15

$ url_imagen
=
$ jImagen ->
saveWebImage (); 16 ?> 17
\u0026lt;HTML>
18 \u0026lt;HEAD>
19 \u0026lt;TITLE> Example 1 \u0026lt;/ TITLE>
20
\u0026lt;/ HEAD> 21
\u0026lt;BODY> 22
\u0026lt;IMG SRC = \u0026lt;? Php echo
$ url_imagen
; ?> > 23 \u0026lt;/ BODY> 24 \u0026lt;/ HTML>

ejemplo01.map




MAP NAME SIZE Pruebas
extents 600 400 -63 114 -87.9964 -19.0216 1.19528 WEB ImagePath " C: / ms4w-php5/tmp/ms_tmp / " ImageUrl" / ms_tmp / "END


LAYER NAME "Departments"

STATUS ON DATA "Lim_dep.shp" TYPE POLYGON


CLASS STYLE COLOR 200 150 2

OutlineColor 0 0 0 END


END END END



In the. Map any entry is similar to HTML tags because they have a beginning and an end. The Mapfile estonces consists of objects and others which it contains.


structure mapfile objects would be as follows (Source: Tutorial MapServer 4.x): MAP











 
+----+-----+----+----+----+
ImageURL "/ ms_tmp /"
END This specifies the routes where they are creating the rendered images. Here are settings that are saved in: C: / ms4w-php5/tmp/ms_tmp / (Change this one in your conviencia). Remember that this folder should be able to be accessed publicly through / ms_tmp /. (The ms4w and automatically configures an Alias \u200b\u200bin Apache - httpd.conf: Alias \u200b\u200b / ms_tmp / / ms4w-php5/tmp/ms_tmp /
 -) 

That means if we create a file:
C: / ms4w-php5/tmp/ms_tmp/prueba.gif be accessed as http://localhost/
 
ms_tmp /
 
prueba.gif


IMPORTANT: Each time you access our PHP script: Ejemplo01.php, will realize that it automatically creates a GIF or JPG image with a random name . That is the image that is displayed to the navigator and is captured in the variable $ url_imagen.

The MAP has the following attributes
EXTENT SIZE 600 400 63 114 -19.0216 1.19528 -87.9964

Specifies the size of the image (gif or jpg self-generated) and its Extent.
The Extent specifies the limit of coordinates which will display the map. In the case of Peru, as we are in the WEST - SOUTH ... corresponding points: lower-left (
-87.9964 -19.0216



) and upper-right (
1.19528 63 114 ). My analogy with trigonometry in mathematics, like we're in the third quadrant
.
The Layer object is contained within the MAP order. And in the Layer CLASS
LAYER NAME "Departments" STATUS ON DATA "Lim_dep.shp" TYPE POLYGON CLASS




STYLE




COLOR 200 150 2 OutlineColor 0 0 0

END







END END
     see that our layer called "Departments" shape file charges   polygon type ... and colors RGB (200 150 2) through the style object that is within the Class object. 
STATUS ON: that the layer is active and is displayed by default.
Result:
Annex link Shape File:
Lim_dep.shp

Tuesday, October 30, 2007

Pokemon Soul Silver Blue Screen

GoPHP5, Leaving PHP4 without support for the 2008 Proposed establishment

PHP4 and has seven years after it released, and PHP5 almost reaches 3 years of being in the air, but despite this many hostings have not yet added support for php5 for fear that no customer applications work, or at least not enabled by default. According to 80% Nexen.net hostings are still using php4 on their servers. is why GoPHP5.org born as an initiative for projects based on php abandon support PHP4 and PHP5 pass, taking advantage of its benefits, as well as engage hostings that they also remove php4 from their servers.
The goal is February 5, 2008 with minimal support for php4. Projects such as phpMyAdmin and Drupal 7 and are committed to this initiative and others like MediaWiki from now only run on php5. In the mailing list wp-hackers have already discussed the move to php5 several times already. The answer has always been: if there further support php5.
http://www.gophp5.org/

Sunday, October 28, 2007

Personalized Cards Like Jib Jab

Peruvian PHP framework


I recently gave the proposal to develop Peru's own framework for PHP 5 with MVC and using design patterns. Well, I started to develop even with many server problems and lack of hands for support. But there is progress. I'll be more news and developments. To see if anyone wants to help ..! As it is, with a SVN server: hands pa program and version control, or simply asking that you would like to have ... HA!


Saturday, October 27, 2007

Real First Time Auditions

UML with PHP Wiki Welcome to Blog

I open the UML with PHP wiki that talks about the issue http://es.wikipedia.org/wiki/UMLPHP
hope to collaborate and contribute. still under construction to be improved.

By the way, I'll be doing more articles on this subject that will appeal to many, it is to work with PHP 5 objects.

Comments On Property In Khargar

PHP expert

Blog Welcome to PHP expert, I hope you like the experience and all the interesting articles that are published on object-oriented PHP and interesting details. Greetings

ME ... JTN