Re: [mapserver-users] (no subject)

2013-10-11 Thread Fawcett, David (MNIT)
Daniel, 

If you tweak the layer to output as a map image, do you see any features on the 
map?

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Daniel Bolgheroni
Sent: Friday, October 11, 2013 1:45 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] (no subject)

Hi mapserver-users@,

I've set up a mapserver host and I'm trying to get kml format as output, to be 
used as a feed to Google Maps. I have no problems trying to get images, and 
actually,I can get a kml, but there is nothing useful in it.

I'm trying to make mapfile.map as simple as possible, to narrow down the 
problem, with just one shape.

The request I'm using is this:

http://localhost/cgi-bin/mapserv/?map=mapfile.map&mode=map&layer=mg

The mapfile.map I'm using is this:

MAP
NAME "maps"
STATUS ON
SIZE 1920 1080
#SYMBOLSET "../etc/symbols.txt"
EXTENT -180 -90 180 90
UNITS DD
SHAPEPATH "../shp"
IMAGECOLOR 127 0 255
#FONTSET "../etc/fonts.txt"
#KML_INCLUDE_ITEMS "true"

LAYER
  NAME "mg"
  DATA '../shp/estado_mgPolygon.shp'
  STATUS ON
  TYPE POLYGON
  CLASS
NAME 'Minas Gerais'
STYLE
  OUTLINECOLOR 0 0 0
END # STYLE
  END # CLASS
END # LAYER

OUTPUTFORMAT
  NAME kml
  DRIVER "KML"
  MIMETYPE "application/vnd.google-earth.kml+xml"
  IMAGEMODE RGB
  EXTENSION "kml"
  FORMATOPTION 'ATTACHMENT=layer.kml'  #name of kml file returned
  FORMATOPTION "maxfeaturestodraw=100"
END
END # MAP

The 'layer.kml' I get is this:


http://www.opengis.net/kml/2.2";>
  

  
check
  


  
checkHideChildren
  


  
checkOffOnly
  


  
radioFolder
  

criamaps

  mg
  1
  #LayerFolder_check

  


Any hint on what I'm missing is appreciated.
Thank you.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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


[mapserver-users] (no subject)

2013-10-11 Thread Daniel Bolgheroni
Hi mapserver-users@,

I've set up a mapserver host and I'm trying to get kml format as output,
to be used as a feed to Google Maps. I have no problems trying to get
images, and actually,I can get a kml, but there is nothing useful in it.

I'm trying to make mapfile.map as simple as possible, to narrow down the
problem, with just one shape.

The request I'm using is this:

http://localhost/cgi-bin/mapserv/?map=mapfile.map&mode=map&layer=mg

The mapfile.map I'm using is this:

MAP
NAME "maps"
STATUS ON
SIZE 1920 1080
#SYMBOLSET "../etc/symbols.txt"
EXTENT -180 -90 180 90
UNITS DD
SHAPEPATH "../shp"
IMAGECOLOR 127 0 255
#FONTSET "../etc/fonts.txt"
#KML_INCLUDE_ITEMS "true"

LAYER
  NAME "mg"
  DATA '../shp/estado_mgPolygon.shp'
  STATUS ON
  TYPE POLYGON
  CLASS
NAME 'Minas Gerais'
STYLE
  OUTLINECOLOR 0 0 0
END # STYLE
  END # CLASS
END # LAYER

OUTPUTFORMAT
  NAME kml
  DRIVER "KML"
  MIMETYPE "application/vnd.google-earth.kml+xml"
  IMAGEMODE RGB
  EXTENSION "kml"
  FORMATOPTION 'ATTACHMENT=layer.kml'  #name of kml file returned
  FORMATOPTION "maxfeaturestodraw=100"
END
END # MAP

The 'layer.kml' I get is this:


http://www.opengis.net/kml/2.2";>
  

  
check
  


  
checkHideChildren
  


  
checkOffOnly
  


  
radioFolder
  

criamaps

  mg
  1
  #LayerFolder_check

  


Any hint on what I'm missing is appreciated.
Thank you.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] JPEGSetupDecode: Assertion failed

2013-10-11 Thread thomas bonfort
Rich,
I believe this is gdal related, not mapserver.

regards,
thomas

On 11 October 2013 03:25, Richard Greenwood  wrote:
> I think I've botched up my linking on a MapServer 6.2 build but I'm not
> knowledgeable enough to see what I've done wrong. On Ubuntu 12.04 I built
> gdal 1.10 from source and it seems to work. I then built MapServer 6.2 from
> source and it works fine with vector data sources but raster data sources
> fail with:
>
> tif_jpeg.c:961: JPEGSetupDecode: Assertion `sp->cinfo.comm.is_decompressor'
> failed
>
> My MapServer configure statement:
> export LD_RUN_PATH=/usr/local/lib
> ./configure --with-gd
>   --with-proj
>   --with-postgis
>   --with-geos
>   --with-ogr=/usr/local/bin/gdal-config
>   --with-gdal=/usr/local/bin/gdal-config
>   --with-wfs
>   --with-php=yes
>
> This machine also has libgdal on it from a QGIS install.
>
> Any suggestions or hits are appreciated.
>
> Thanks,
> Rich
>
>
>
> --
> Richard Greenwood
> richard.greenw...@gmail.com
> www.greenwoodmap.com
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users