[mapserver-users] fcgi with mapserver version 6.0.0 beta4 - Parsing error

2011-04-05 Thread francesco . pirotti
Hello List,
Here is what I think is a bug on Mapserver last dev version 6.0.0 beta4:
When calling mapserv.exe using fcgi handler, it draw the map correctly
every OTHER call to mapserver, so once it draws the map, and if I click
again it throws the following error:

msLoadMap(): Unknown Identifier. Parsing error near(): line 3.

Seems like it cannot read the mapfile or something.

Any one experiencing the same problem?
Ciao
Francesco



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


RE: [mapserver-users] Coordinates precision in GML output

2011-04-05 Thread Lime, Steve D (DNR)
Looking at the code the 6 decimals are fixed. You'd need to edit mapgml.c and 
recompile I'm afraid. Sorry...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Nicolas BOUTET
Sent: Monday, April 04, 2011 6:20 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Coordinates precision in GML output

Hello all,

I'm serving some Oracle Geometries using MapServer as a WFS Server.
Data are stored in Oracle using WGS84 and are served as GML using a Mercator 
projection. Re-projection is also done by MapServer / PROJ.4.

All is working fine, but because I have a lot of geometries, with more and more 
vertices, the resulting GML output is too big and I need to decrease his size.
Because I don't need to have metric coordinates with 6 decimals (1 or 2 should 
be more than enough), I tried to find a way to limit the number of decimals, 
with no success.

Does anybody know how to do this?

Thanks

Nicolas B.

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


Re: [mapserver-users] DrawQuery problem

2011-04-05 Thread Oscar Testa


  
  


Steve,

the query returns rows, here the code:

  if ($x0 == $x1 || $y0 == $y1){
 $my_point = ms_newPointObj();
 $my_point->SetXY($x0,$y0);
 $bQquery = @$map->queryByPoint($my_point,MS_MULTIPLE,0);
  }
  else{
 $my_rect = ms_newRectObj();
 $my_rect->setextent($x0,$y0,$x1,$y1);
 $bQuery = @$map->queryByRect($my_rect);
  }

  if ($bQuery == MS_SUCCESS){
    $sQueryLayers = "layers=";
    $sQueryId = "id=";
    for ($i=0;$i
        $oLayer = $map->getLayer($iLayers[$i]);
        if ($oLayer->status == MS_ON)
          if ($oLayer->getNumResults() > 0){
              $oLayer->open();
              $bResults = true;
            for ($j=0;$j<$oLayer->getNumResults();$j++){
                $oResult = $oLayer->getResult($j);
                $sQueryId = $sQueryId . $oResult->shapeindex .
";";
            }
            $oLayer->close();
              $sQueryLayers = $sQueryLayers . $oLayer->name .
"|"; 
            $sQueryId = substr($sQueryId,0,strlen($sQueryId) - 1) .
"|";
          }
 }
    $sQueryLayers = substr($sQueryLayers,0,strlen($sQueryLayers) -
1);
    $sQueryId = substr($sQueryId,0,strlen($sQueryId) - 1);

The results is viewed in $sQueryId, a string with codes inside,
printed via echo.

When the draw method is called, or when drawQuery method is called
without a query, the results is a valid map with no error messages
in the debug file. When a query is performed, the debug file
contents the next:

[[Fri Apr  1 15:41:24 2011].623504 getSymbol(): Symbol definition
error. Parsing error near (I):(line 181)
[Fri Apr  1 15:41:24 2011].623825 getSymbol(): Symbol definition
error. Parsing error near (II):(line 181)
[Fri Apr  1 15:41:24 2011].624023 getSymbol(): Symbol definition
error. Parsing error near (III):(line 181)
[Fri Apr  1 15:41:24 2011].624231 getSymbol(): Symbol definition
error. Parsing error near (IV):(line 181)
[Fri Apr  1 15:41:24 2011].624407 getSymbol(): Symbol definition
error. Parsing error near (V):(line 181)
[Fri Apr  1 15:41:24 2011].624593 getSymbol(): Symbol definition
error. Parsing error near (VI):(line 181)
[Fri Apr  1 15:41:24 2011].624753 getSymbol(): Symbol definition
error. Parsing error near (VII):(line 181)
[Fri Apr  1 15:41:24 2011].625063 getSymbol(): Symbol definition
error. Parsing error near (I):(line 181)
[Fri Apr  1 15:41:24 2011].625235 getSymbol(): Symbol definition
error. Parsing error near (II):(line 181)
[Fri Apr  1 15:41:24 2011].625398 getSymbol(): Symbol definition
error. Parsing error near (III):(line 181)
[Fri Apr  1 15:41:24 2011].625559 getSymbol(): Symbol definition
error. Parsing error near (IV):(line 181)
[Fri Apr  1 15:41:24 2011].625755 getSymbol(): Symbol definition
error. Parsing error near (V):(line 181)
[Fri Apr  1 15:41:24 2011].625916 getSymbol(): Symbol definition
error. Parsing error near (VI):(line 181)
[Fri Apr  1 15:41:24 2011].626109 getSymbol(): Symbol definition
error. Parsing error near (VII):(line 181)
[Fri Apr  1 15:41:24 2011].626523 msPostGISLayerOpen called:
the_geom from (select distinct ua.oid as oid, ua.the_geom as
the_geom, ua.id_region from unidades_academicas as ua, instituciones
as i  WHERE i.univ_id = ua.univ_id AND i.id_tipo_institucion = 1 )
AS foo using SRID=4326 using UNIQUE oid
[Fri Apr  1 15:41:24 2011].626554 msPostGISLayerOpen: No connection
in pool, creating a fresh one.
[Fri Apr  1 15:41:24 2011].644796
msConnPoolRegister(UNIVERSIDADES,user=postgres
dbname=cpres_normalizada_ona password=postgres host=localhost
port=5433,0x7f0dd44ec890)
[Fri Apr  1 15:41:24 2011].644912 msPostGISLayerFreeItemInfo called.
[Fri Apr  1 15:41:24 2011].644928 msPostGISLayerFreeItemInfo called.
[Fri Apr  1 15:41:24 2011].644938 msPostGISLayerGetItems called.
[Fri Apr  1 15:41:24 2011].644948 msPostGISParseData called.
[Fri Apr  1 15:41:24 2011].645035 msPostGISParseData:
unique_column=oid, srid=4326, geom_column_name=the_geom,
table_name=(select distinct ua.oid as oid, ua.the_geom as the_geom,
ua.id_region from unidades_academicas as ua, instituciones as i 
WHERE i.univ_id = ua.univ_id AND i.id_tipo_institucion = 1 ) AS foo
[Fri Apr  1 15:41:24 2011].645054 msPostGISLayerGetItems executing
SQL: select * from (select distinct ua.oid as oid, ua.the_geom as
the_geom, ua.id_region from unidades_academicas as ua, instituciones
as i  WHERE i.univ_id = ua.univ_id AND i.id_tipo_institucion = 1 )
AS foo where false limit 0
[Fri Apr  1 15:41:24 2011].695722 msPostGISLayerInitItemInfo called.
[Fri Apr  1 15:41:24 2011].695894 msPostGISLayerInitItemInfo called.
[Fri Apr  1 15:41:24 2011].695982 msPo

Re: [mapserver-users] MapServer 6: outputformat gd/jpeg missing

2011-04-05 Thread Yewondwossen Assefa

Hi,

I am not sure if there is yet a 6.0 doc on that. Here is what I can see 
browsing through the code.


 This list gives you the output format names that are defined in 
MapServer and the driver used to render them.


- name: png;  dirver is AGG; mime type is image/png; produces 24bit png
- jpeg; AGG;  image/jpeg; jpeg output
- gif; GD; image/gif; gif output
- png8; AGG;  image/png; mode=8bit; QUANTIZED automatically to produce 
8bit png;

- png24; AGG; image/png; mode=24bit; same as png-24bit png
- pdf; CAIRO; application/x-pdf;
- svg; CAIRO; image/svg+xml
- cairopng; CAIRO; 24bit png
- GTiff; GDAL/GTiff, image/tiff
- kml; Mapserver native; application/vnd.google-earth.kml+xml
- kmz, Mapserver native; application/vnd.google-earth.kmz

You can also define output blocks in the map file as before. Here are 
some of them I see in the code.

  -  gdal/xxx : where xxx is the gdal driver
  - dirver TEMPLATE  (http://mapserver.org/development/rfc/ms-rfc-36.html)
 - ogr outputs for WMS 
(http://www.mapserver.org/trunk/output/ogr_output.html)

- cairowinGDI; CAIRO/WINGDI
 - cairowinGDIPrint; CAIRO/WINGDIPRINT
 - oglpng24;  OGL/PNG

Note that there might be docs explaining/giving details on each of 
them.  I might also have missed some of them. An explicit doc on oputput 
format is needed I believe for the 6.0 release.


Assefa

On 05/04/2011 7:25 AM, fruitwerks wrote:

The only recent mention of jpg I see is:

"AGG/PNG and AGG/JPEG are the only valid agg drivers.  Imagetypes
aggpng24 and aggjpeg can be used to refer to the default output
formats."

Is there a documentation for 6 yet? I know there are a few migration /
quirk / changes texts, but I was unable to find full blown
documentation.


On Tue, Apr 5, 2011 at 3:51 AM, Johannes Smith  wrote:

Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no
longer supported. Instead there's agg/jpeg. Is that intended? J.

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








--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6: outputformat gd/jpeg missing

2011-04-05 Thread fruitwerks
The only recent mention of jpg I see is:

"AGG/PNG and AGG/JPEG are the only valid agg drivers.  Imagetypes
aggpng24 and aggjpeg can be used to refer to the default output
formats."

Is there a documentation for 6 yet? I know there are a few migration /
quirk / changes texts, but I was unable to find full blown
documentation.


On Tue, Apr 5, 2011 at 3:51 AM, Johannes Smith  wrote:
> Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no
> longer supported. Instead there's agg/jpeg. Is that intended? J.
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



-- 
___
Any use, dissemination, distribution, posting on Internet bulletin
boards, disclosure or copying of this e-mail or any information
contained herein by or to anyone other than the intended recipient(s)
is strictly prohibited. Use of this content for any other purpose is a
violation of International Copyright Laws.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer 6: outputformat gd/jpeg missing

2011-04-05 Thread Johannes Smith
Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no 
longer supported. Instead there's agg/jpeg. Is that intended? J.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users