Re: [mapserver-users] Export SVG

2009-11-26 Thread Maria Neywell
Hi,



Sorry, I don’t think you are getting it right. I’m going to try to explain
it differently.



The aliasing in my svg file rendered by mapserver is independent of the
viewer. Mapserver automatically simplifies geometries during the svg
generation, so the geometries rendered in a SVG file don’t match with the
ones in my original map.



See enclosed a picture to explain my problem. Iit will help you to
understand and to compare before and after SVG generation.



Do you understand what's going on with mapserver and so with my svg file ?



Thanks a lot and I’m sorry if my English is not so good to explain my
problems


Regards,


Maria


2009/11/26 Yewondwossen Assefa yass...@dmsolutions.ca

 Hi,

 Not sure I get it correctly: MapServer exports a vector file (the svg),
 when you mention anti-aliasing, I believe you are referring to  an svg
 viewer rendering the svg file?  From what I understand, the svg
 specifications allows to specify some properties at the shape level for
 example to give a hint to the viewers on how to render the different shapes
 (http://www.w3.org/TR/SVG/painting.html#ShapeRenderingProperty).
  Depending on the viewer, I suppose some would respect these properties.
  MapServer does not at the point setup these properties.  Is this what you
 are looking for?

 regards.

 Maria Neywell wrote:


 Thanks,

 I have already tried this way to extract my map in a svg file and it
 works. _However_, I had a svg file which corresponds to my map but with a
 lot of aliasing. The FORMATOPTION FULL_RESOLUTION=TRUE changes nothing. I
 tested this with and without option.

 I don't know if I did something wrong or if this is a mapserver problem…

 am I the only one to have this problem ?

 Regards,

 Maria

 2009/11/24 Yewondwossen Assefa yass...@dmsolutions.ca mailto:
 yass...@dmsolutions.ca


Hi,

You could  possibly specify FULL_RESOLUTION option in your
outputformat. Something like this:

OUTPUTFORMAT
   NAME svg
   MIMETYPE image/svg+xml
   DRIVER svg
  FORMATOPTION FULL_RESOLUTION=TRUE
END
  best regards,

Maria Neywell wrote:

Hi list,

I'm using mapserver 5.2.

I have tested all mapserver exports to render my map in svg,
see : http://mapserver.org/output/svg.html but, the point is
that all of these outputs give me up simplified geometry. I
want to export my map in a svg with geometries who match
exactly with my map.

did someone noticed that same weird result ?

Regards,

Maria

  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
mailto:mapserver-users@lists.osgeo.org

http://lists.osgeo.org/mailman/listinfo/mapserver-users



--
Assefa Yewondwossen   Software Analyst  Email:
 ass...@dmsolutions.ca mailto:ass...@dmsolutions.ca
 http://www.dmsolutions.ca/


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






 --
 
 Assefa Yewondwossen   Software Analyst
 Email: ass...@dmsolutions.cahttp://www.dmsolutions.ca/

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



attachment: compare.png___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] Usage of Vendor Option [SOLVED]

2009-11-26 Thread David Alda Fernandez de Lezea
Hello, 

sorry for my late response, I've been working in something else and didn't have 
time to check this out. I have tested what you told me. Well, half tested. I 
didn't where to put 'Partials=true' (in sld file or in map file at layer 
level??), so I didn't put it anywhere, and also removed from my SLD the tag 
'VendorOption name=grouptrue/VendorOption', just to see what could 
happened, and it worked perfectly. Just to understand a little bit, can you 
make a short explanation of why do I have to do this to make it work. Also, 
where do I have to put 'Partials=true' if it's necessary?? Take into account 
that I work with external SLD files and not with layer inner style.

Once again, thanks.
 


 
 
Un saludo,
 
··

David Alda Fernández de Lezea
Lurralde eta Biodibertsitate Saila / Dpto. de Territorio y Biodiversidad
 
IKT
Granja Modelo s/n · 01192 · Arkaute (Araba)

··
Tlfnos.: 945-00-32-95 Fax: 945-00.32.90
··
email: da...@ikt.esweb: www.ikt.es
··

-Mensaje original-
De: Stephen Woodbridge [mailto:wood...@swoodbridge.com] 
Enviado el: lunes, 23 de noviembre de 2009 16:47
Para: David Alda Fernandez de Lezea
CC: Yewondwossen Assefa; mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Usage of Vendor Option

David,

Try using
   labelcache_map_edge_buffer -10  at map level WEB METADATA
   PROCESSING LABEL_NO_CLIP=ON at layer level
   Partials=true with labels

-Steve W.


David Alda Fernandez de Lezea wrote:
  
 Hello,
 
 Thanks for your response. Just to clarify I've just added the comments bellow:
 
From a quick test I did locally using latest MapServer, I don;t see any 
particular issues with your sld. I was able to generate the labels as 
expected. 
 
 I'm also able to generate the labels, but the problem is that some of them 
 are cut and thay are also repeated over the polygon. See attached file.
 
 Note that the anchor position is only used when labeling point features.
 
 I thought it could be possible to add a label in the centroid of the polygon, 
 and just one label.
 
 Are each polygon formed with one shape or could one polygon be formed by 
 several adjacent shapes?
 
 I don't understand what you mean here. I'm using Oracle Spatial as DataSource 
 and my layer is a polygon table.
 
 You can also check the log files and see what your layer looks like after 
 the sld is applied: add something like this in your map file for example:
 CONFIG  MS_ERRORFILE f:/logs/my_log_file.log
 DEBUG 5
 
 Here is what I get from the log file
 
 [Mon Nov 23 08:54:37 2009].387000 msApplySLD(): Map file after SLD was 
 applied C:/ms4w/Apache/htdocs/MFD/tmp/4b0a3fbd_1058_1._sld.map[Mon Nov 
 23 08:54:37 2009].512000 msDrawMap(): Layer 5 (municipios), 0.093s 
 [Mon Nov 23 08:54:37 2009].512000 msDrawMap(): Drawing Label Cache, 
 0.000s [Mon Nov 23 08:54:37 2009].512000 msDrawMap() total time: 
 0.093s [Mon Nov 23 08:54:37 2009].528000 msSaveImage() total time: 0.016s 
 [Mon Nov 23 08:54:37 2009].528000 mapserv request processing time (msLoadMap 
 not incl.): 0.172s [Mon Nov 23 08:54:37 2009].528000 msFreeMap(): freeing map 
 at 015968D8.
 
 An then I go to the file referenced in the log and I see a mapfile with the 
 following lines, but I don't know what exaclty do I have to find...
 
 
 MAP
   EXTENT 46 4708766.29018245 61 4821233.70981755
   FONTSET misc/fonts/fonts.txt
   IMAGECOLOR 255 255 255
   IMAGETYPE png24
   SYMBOLSET misc/symbols/symbols.sym
   SHAPEPATH shapes/
   SIZE 1152 864
   STATUS ON
   UNITS METERS
   CONFIG MS_ERRORFILE C:/ms4w/Apache/htdocs/MFD/tmp/ms_wms.log
   NAME WMSSERVER
 
   DEBUG 5
   OUTPUTFORMAT
 NAME png24
 MIMETYPE image/png; mode=24bit
 DRIVER GD/PNG
 EXTENSION png
 IMAGEMODE RGB
 TRANSPARENT FALSE
   END
 
   OUTPUTFORMAT
 NAME png
 MIMETYPE image/png
 DRIVER AGG/PNG
 EXTENSION png
 IMAGEMODE RGBA
 TRANSPARENT TRUE
 FORMATOPTION TRANSPARENT=ON
 FORMATOPTION INTERLACE=OFF
   END
 
   SYMBOL
 NAME sld_line_symbol
 TYPE ELLIPSE
 FILLED TRUE
 POINTS
   1 1
 END
   END
 
   PROJECTION
 init=epsg:23030
   END
   LEGEND
 IMAGECOLOR 255 255 255
 KEYSIZE 20 10
 KEYSPACING 5 5
 LABEL
   SIZE MEDIUM
   TYPE BITMAP
   BUFFER 0
   COLOR 0 0 0
   FORCE FALSE
   MINDISTANCE -1
   MINFEATURESIZE -1
   OFFSET 0 0
   PARTIALS TRUE
 END
 POSITION LL
 STATUS OFF
   END
 
   QUERYMAP
 COLOR 255 255 0
 SIZE -1 -1
 STATUS OFF
 STYLE HILITE
   END
 
   SCALEBAR
 ALIGN CENTER
 COLOR 0 0 0
 IMAGECOLOR 255 255 255
   

[mapserver-users] ArcSDE raster and value difference of 256

2009-11-26 Thread bartvde
Hi list,

I am trying to use an ArcSDE raster layer in Mapserver, but the values
that Mapserver gives back are different from the values that ArcMap gives
back.

There is a difference of exactly 256.

So NODATA is 256 according to ArcMap, but Mapserver seems to map it to 0,
etc. for all other values.

Does anyone know how to solve this? TIA.

[b...@hades build]$ /opt/arcsde-9.2-tools/bin/sderaster -o list -l
HOOGTE.kust_2009_2,RASTER -s geodatabase.ad.rws.nl -i 5151 -D PGPR -u
RWS_LEZEN -p  -verbose

Connecting to server geodatabase.ad.rws.nl, port 5151, as user RWS_LEZEN

ArcSDE 9.1 Oracle10g  Build 392 Thu Nov  2 15:42:12 PST 2006


Raster ID ...: 1
Raster Dimension : 22000, 15000, 1
Raster Tile Dimension ...: 128, 128
Pixel Type ..: char
Compression .: lz77
Image Pyramid ...: 6, false, nearest
Extent ..:
  minx:105002.50
  miny:543752.50
  maxx:214997.50
  maxy:618747.50
Cell Size:
  x   : 5.00
  y   : 5.00
Statistics ..: NONE


1 raster(s).

Complete...

Best regards,
Bart

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


[mapserver-users] getLegendGraphic Request error

2009-11-26 Thread Boer, dr. W.M. de (Thijs)

Hello list,

wenn I send my getLegendGraphic Request I get the following error:

[Thu Nov 26 09:44:02 2009].113000 msImageCreateGD(): Image handling error. 
Cannot create GD image of size 67x-2.
[Thu Nov 26 09:44:02 2009].113000 msDrawLegend(): GD library error. Unable to 
initialize image.

Does anyone know, what can be wrong? How can I solve the problem?

Greetings,
Thijs


Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet 
de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u 
verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat 
aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband 
houdt met risico's verbonden aan het elektronisch verzenden van berichten. 

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. The State accepts no 
liability for damage of any kind resulting from the risks inherent in the 
electronic transmission of messages.

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


Re: [mapserver-users] getLegendGraphic Request error

2009-11-26 Thread Yewondwossen Assefa

Hi There,

Boer, dr. W.M. de (Thijs) wrote:

Hello list,

wenn I send my getLegendGraphic Request I get the following error:

[Thu Nov 26 09:44:02 2009].113000 msImageCreateGD(): Image handling error. 
Cannot create GD image of size 67x-2.
[Thu Nov 26 09:44:02 2009].113000 msDrawLegend(): GD library error. Unable to 
initialize image.

Does anyone know, what can be wrong? How can I solve the problem?

  
Would it be possible to make available a map/data and the full 
getlegendgraphic url and I can quickly check the case your are facing? 
Something is going wrong when calculating the size of the legend or the 
icons but could not quickly identify it by looking in the code.


regards


Greetings,
Thijs


Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is gezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten. 


This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. The State accepts no 
liability for damage of any kind resulting from the risks inherent in the 
electronic transmission of messages.

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

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@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


[mapserver-users] Geotransform on style, missing enumerate in mapscript.

2009-11-26 Thread Tiemens, Gerben
At the documentation of Mapserver I see the geotransform option.

I want to use this in mapscript. In C# i see this option available under:  
styleObj._goetransform
Since there is no enumerate at the moment, which numbers/integers correspond to 
the several options?

I am guessing now, but cant find the right one:

I have a line with 2 points.
On the first vertex,  I want to draw a marker with the angle given by the line 
(second point).
So, I guess this will be the start option?

Or is there an enumerate available which I overlooked.



Greetings Gerben

 Please read our E-mail Disclaimer at: Emaildisclaimer.Grontmij.com 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Map from .OSM

2009-11-26 Thread Stephen Woodbridge

I believe GDAL/OGR (newer versions) has support for SpatialLite.

-Steve W

Rahkonen Jukka wrote:

Hi,

Igor Brejc wrote interesting news today on osm-users mailing list: 
I've implemented importing of OSM data into SpatiaLite DB and
integrated it successfully with Kosmos map rendering code. SpatiaLite
OSM database can be quite fast, but I had to learn a trick or two to
reach good performance. I even managed to import the latest UK data
into it and it didn't complain too much. I'm planning to release this
in Kosmos v3, hopefully sometimes in the spring of 2010.

So there should be a SpatiaLite import utility available in the near
future.  Next question is if Mapserver can render effectively from
SpatiaLite.

-Jukka Rahkonen-


-Alkuperäinen viesti- Lähettäjä:
mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Milo van

der Linden Lähetetty: 26. marraskuuta 2009 8:19 Vastaanottaja: abul
khayer Kopio: mapserver-users@lists.osgeo.org Aihe: Re:
[mapserver-users] Map from .OSM

Mapserver cannot read osm directly. That is also because there is
no OGR adapter(yet) for .osm.

If you really don't want to set up postgis:

http://wiki.openstreetmap.org/wiki/Category:OSM_processing

You can browse throug a variety of export/conversion tools. One
might just create the format you need (shp). You can also consider
downloading ready-made shapefiles from the websites:

http://www.cloudmade.com

or

http://www.geofabrik.de


Kind regards,

Milo van der Linden (Miblon) Moblin powered asus eee pc 1005HA-H 
http://www.dogodigi.net


On Wed, 2009-11-25 at 19:01 -0800, abul khayer wrote:

Can Mapserver render map from .OSM(Open street map) file
directly?

I want to use mapserserver and Openlayer to render a map of .OSM.
 Though i get some help from below tutorial, 
http://trac.osgeo.org/mapserver/wiki/RenderingOsmData But it use

postgis and there need conversion.

... Md. Abul Khayer GIS
Programmer CEGIS (www.cegisbd.com) Cell: +8801730019572 Blog:
khayer.wordpress.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



___ 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


RE: [mapserver-users] Geotransform on style, missing enumerate in mapscript.

2009-11-26 Thread Tiemens, Gerben
Answers found by experimenting further:
1 = bbox
2 = start
3= end
4= vertices
5 is illegal, giving errors.

Debugging was little difficult since geotransform is not written from mapObj  
to mapfile.txt with function save();
Will write bugreport for that.

Thanks

Gerben






Van: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Namens Tiemens, Gerben
Verzonden: Thursday, November 26, 2009 4:18 PM
Aan: mapserver-users@lists.osgeo.org
Onderwerp: [mapserver-users] Geotransform on style, missing enumerate in 
mapscript.

At the documentation of Mapserver I see the geotransform option.

I want to use this in mapscript. In C# i see this option available under:  
styleObj._goetransform
Since there is no enumerate at the moment, which numbers/integers correspond to 
the several options?

I am guessing now, but cant find the right one:

I have a line with 2 points.
On the first vertex,  I want to draw a marker with the angle given by the line 
(second point).
So, I guess this will be the start option?

Or is there an enumerate available which I overlooked.



Greetings Gerben

 Please read our E-mail Disclaimer at: Emaildisclaimer.Grontmij.com 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Map from .OSM

2009-11-26 Thread Even Rouault

Stephen Woodbridge a écrit :

I believe GDAL/OGR (newer versions) has support for SpatialLite.
Yes. GDAL 1.6 has already read support for SpatiaLite DB through the OGR 
sqlite driver


GDAL 1.7dev brings write/creation support. It can also make use of 
spatial enabled functions when it is linked to libspatialite instead of 
libsqlite3.


See http://gdal.org/ogr/drv_sqlite.html for more info.



-Steve W

Rahkonen Jukka wrote:

Hi,

Igor Brejc wrote interesting news today on osm-users mailing list: 
I've implemented importing of OSM data into SpatiaLite DB and
integrated it successfully with Kosmos map rendering code. SpatiaLite
OSM database can be quite fast, but I had to learn a trick or two to
reach good performance. I even managed to import the latest UK data
into it and it didn't complain too much. I'm planning to release this
in Kosmos v3, hopefully sometimes in the spring of 2010.

So there should be a SpatiaLite import utility available in the near
future.  Next question is if Mapserver can render effectively from
SpatiaLite.

-Jukka Rahkonen-


-Alkuperäinen viesti- Lähettäjä:
mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Milo van

der Linden Lähetetty: 26. marraskuuta 2009 8:19 Vastaanottaja: abul
khayer Kopio: mapserver-users@lists.osgeo.org Aihe: Re:
[mapserver-users] Map from .OSM

Mapserver cannot read osm directly. That is also because there is
no OGR adapter(yet) for .osm.

If you really don't want to set up postgis:

http://wiki.openstreetmap.org/wiki/Category:OSM_processing

You can browse throug a variety of export/conversion tools. One
might just create the format you need (shp). You can also consider
downloading ready-made shapefiles from the websites:

http://www.cloudmade.com

or

http://www.geofabrik.de


Kind regards,

Milo van der Linden (Miblon) Moblin powered asus eee pc 1005HA-H 
http://www.dogodigi.net


On Wed, 2009-11-25 at 19:01 -0800, abul khayer wrote:

Can Mapserver render map from .OSM(Open street map) file
directly?

I want to use mapserserver and Openlayer to render a map of .OSM.
 Though i get some help from below tutorial, 
http://trac.osgeo.org/mapserver/wiki/RenderingOsmData But it use

postgis and there need conversion.

... Md. Abul Khayer GIS
Programmer CEGIS (www.cegisbd.com) Cell: +8801730019572 Blog:
khayer.wordpress.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



___ 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users