[mapserver-users] Unicode characters in gml_[item name]_alias

2018-11-21 Thread Dejan Gambin
Hi I found somewhere that msIsXMLTagValid function accepts unicode characters (https://github.com/rouault/mapserver/commit/8a6843dd67c75e4d44da0e8ec0b94567dd55377b ) so I am wondering if I can use something l

Re: [mapserver-users] Label wrapping question

2014-11-07 Thread Dejan Gambin
> From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dejan Gambin > Sent: Thursday, November 06, 2014 7:34 AM > To: Rahkonen Jukka > Cc: 'mapserver-users@lists.osgeo.org' > Subject: Re: [mapserver-users] Label

Re: [mapserver-users] Label wrapping question

2014-11-06 Thread Dejan Gambin
your change. > I feel that your change would make sense. > > -Jukka Rahkonen- > > Dejan Gambin wrote: > >> In the meantime, I have slightly changed msWrapText() function in maplabel.c >> to >> get what I wanted. If someone is interested I can share the short

Re: [mapserver-users] Label wrapping question

2014-09-24 Thread Dejan Gambin
In the meantime, I have slightly changed msWrapText() function in maplabel.c to get what I wanted. If someone is interested I can share the short piece of code. regards, dejan On 23. ruj. 2014., at 12:32, Dejan Gambin wrote: > Hi, > > I have some users wishing to use long legend la

[mapserver-users] Label wrapping question

2014-09-23 Thread Dejan Gambin
Hi, I have some users wishing to use long legend labels, but they don't fit well on my site. As I can see, MapServer is doing this - if maxlength > 0 and wrap = 'char' (usually space), insert a new line at the FIRST wrap character found AFTER maxlength character. This is leading to some bad res

Re: [mapserver-users] Label background style

2014-07-01 Thread Dejan Gambin
t;> size 15 >> position cc >> font "default" >> style >> geomtransform "labelpnt" >> symbol "circle" >> size 18 >> color 254 254 254 >> end >> end > > Jörg > > > Am 01

[mapserver-users] Label background style

2014-07-01 Thread Dejan Gambin
Hi, Is it possible to place a label text, for polygon feature, inside a circle, like on the picture attached (K1)? I know I can use GEOMTRANSFORM labelpoly and get a background rectangle, but I need a circle instead. Thanks regards, dejan ___ mapser

Re: [mapserver-users] MapCache - tiles stored with no transparency

2014-06-02 Thread Dejan Gambin
: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- >> boun...@lists.osgeo.org] Im Auftrag von Dejan Gambin >> Gesendet: Montag, 2. Juni 2014 10:29 >> An: mapserver-users@lists.osgeo.org >> Betreff: [mapserver-users] MapCache - tiles stored with no transparency >> >

[mapserver-users] MapCache - tiles stored with no transparency

2014-06-02 Thread Dejan Gambin
Hi, I just started playing with MapCache so this could be a pretty newbie question... I have a layer with transparency set, but my tiles, as I can see in filesystem, are stored with no transparency. When using mapcache wms demo, I get correct/transparent images but only after first getting non

Re: [mapserver-users] Fwd: Wrong/different legend generation

2014-04-04 Thread Dejan Gambin
ver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dejan Gambin > Sent: Monday, March 31, 2014 4:12 AM > To: mapserver-users@lists.osgeo.org > Subject: Re: [mapserver-users] Fwd: Wrong/different legend generation > > Here it is: > &

Re: [mapserver-users] Fwd: Wrong/different legend generation

2014-03-31 Thread Dejan Gambin
looks like a bug but it would help to see the layer defs for one of the solid fills layers and one of the line layers. Are you setting map resolution explicitly? --SteveFrom: mapserver-users-boun...@lists.osgeo.org [mapserver-users-boun...@lists.osgeo.org] on behalf of

[mapserver-users] Fwd: Wrong/different legend generation

2014-03-28 Thread Dejan Gambin
Does anyone have a clue about this? Not sure if this is a bug or not :-(thx, dejanBegin forwarded message:From: Dejan Gambin <dejan.gam...@coin.hr>Date: 20. veljače 2014. 09:20:04 GMT+0100To: mapserver-users@lists.osgeo.orgSubject: [mapserver-users] Wrong/different legend generationHi,I am

Re: [mapserver-users] WFS whith openlayers

2014-02-20 Thread Dejan Gambin
Yep...this was my problem too :-) On 21. vel. 2014., at 08:23, jongarrido wrote: > Thank you very much for your answers!! > > The problem was a cross domain issue. > > Some time ago I'had to add a new directive to my apache server to resolve a > getfeatureinfo problem like this: > > Header set

Re: [mapserver-users] WFS GetFeature 1.0.0 vs 1.1.0

2014-02-20 Thread Dejan Gambin
sina,vlasnistv2,vlasnici" "gml_kc_broj_alias" "NUMBER" "gml_povrsina_alias" "AREA" "gml_vlasnistv2_alias" "OWNERSHIP" "gml_vlasnici_alias" "OWNERS" "wms_include_items" "all"

[mapserver-users] Wrong/different legend generation

2014-02-20 Thread Dejan Gambin
Hi, I am using GetLegendGraphic request for generating legends in my OL application. Everything was fine in previous MapServer version 6.0.3. The request like this: http://my.site.com/cgi-bin/mywms6?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&FORMAT=image/png&LAYER=my_layer returned an

Re: [mapserver-users] WFS whith openlayers

2014-02-19 Thread Dejan Gambin
I don't know if this can help you... In my getfeatureinfo code I am using getfeatureinfo control like this: this.cnt_GetFeatureInfo=new OpenLayers.Control.GetFeature({ protocol: OpenLayers.Protocol.WFS({ version: "1.0.0", url: wfs_url + "SE

Re: [mapserver-users] WFS GetFeature 1.0.0 vs 1.1.0

2014-02-19 Thread Dejan Gambin
vel. 2014., at 08:57, Martin Kofahl wrote: > Hi Dejan, > can you please post the get or post request made by openlayers for both, > version 1.1.0 and 1.0.0? > > Martin > > > 2014-02-18 11:37 GMT+01:00 Dejan Gambin : > Hi, > > I hav

[mapserver-users] WFS GetFeature 1.0.0 vs 1.1.0

2014-02-18 Thread Dejan Gambin
Hi, I have been using MapServer 6.0.3 for a while. My client application worked well with WFS 1.1.0 protocol. Here is the part of the code: var protocol = new OpenLayers.Protocol.WFS({ version: "1.0.0", url: self.options.config.wfs_url + "SERVICE=WFS&srs

Re: [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-02-14 Thread Dejan Gambin
I've upgraded to 6.4 and seems fine now On 13. vel. 2014., at 16:09, Rahkonen Jukka (Tike) wrote: > Hi, > > Just to eliminate one possibility, is the result the same if you use one DEM > raster as a source instead of tileindex? > > -Jukka Rahkonen- > > Deja

Re: [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-02-13 Thread Dejan Gambin
ka Rahkonen- > > Dejan Gambin wrote: > >> Since I didn't solve this yet, do you think it could be a bug and/or should >> I try >> with some newer MapServer version? I am currently using 6.0.3 >> >> Thx >> >> Dejan Gambin >> >> On 2

Re: [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-02-13 Thread Dejan Gambin
Since I didn't solve this yet, do you think it could be a bug and/or should I try with some newer MapServer version? I am currently using 6.0.3 Thx Dejan Gambin On 22. sij. 2014., at 10:35, Dejan Gambin wrote: > Sorry for being late... > > So, I have tested it all with bro

Re: [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-22 Thread Dejan Gambin
FORMAT=gml&X=200&Y=100 On 17. sij. 2014., at 13:52, Rahkonen Jukka (Tike) wrote: > Hi, > > Please show us the complete GetFeatureInfo requests for both cases. Server > urls are not interesting but all the WMS parameters. Have you already tried > to send them from

Re: [mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-17 Thread Dejan Gambin
> What is the mywms? MapServer binary, wrapper script, ...? wrapper script. Something like: #! /bin/sh MS_MAPFILE=/path_to_my_map_file export MS_MAPFILE /usr/lib/cgi-bin/mapserv6 > > Did you check the actual requests? Does the bbox parameter fit to the > srs? Could you compare a working GetFeatu

Re: [mapserver-users] RE Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-16 Thread Dejan Gambin
> Pour me rejoindre par courrier > Service de l'infrastructure et du réseau > Direction des technologies de l'information > Ministère de la Sécurité Publique > 2525 boul. Laurier, 2è étage > Tour Laurentides > Québec, G1V 2L2 > > > Dejan Gambin > 2014-01-16 09:2

Re: [mapserver-users] RE Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-16 Thread Dejan Gambin
Tried...no luck :-( Thx anyway On 16. sij. 2014., at 14:36, steve.tout...@inspq.qc.ca wrote: > > In the metadata tag of your layer try set > "wms_srs" "EPSG:4326 EPSG:900913" > > > > > Dejan Gambin @lists.osgeo.org > Envoyé par : mapserve

[mapserver-users] Problem using WMS GetFeatureInfo in OpenLayers with different projections

2014-01-16 Thread Dejan Gambin
Hi, I am trying to send WMS GetFeatureInfo request using OL WMSGetFeatureInfo control. My source data is in 4326 and map is displayed in 900913. I have something like this in mapfile: LAYER NAME "mylayer" TYPE RASTER STATUS ON PROJECTION "init=epsg:4326" END METADATA "

Re: [mapserver-users] Legend size problem in GetLegendGraphic request

2012-02-17 Thread Dejan Gambin
l scaling > factor across all layers so that differences are preserved. Doesn't help with > non-pixel units. > > Steve > > > From: mapserver-users-boun...@lists.osgeo.org > [mapserver-users-boun...@lists.osgeo.org] o

Re: [mapserver-users] Legend size problem in GetLegendGraphic request

2012-02-08 Thread Dejan Gambin
nd would be to create an image ahead of time and use KEYIMAGE to > reference it instead. > > Steve > > -Original Message- > From: mapserver-users-boun...@lists.osgeo.org > [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dejan Gambin > Sent: Monday,

Re: [mapserver-users] Legend size problem in GetLegendGraphic request

2012-02-06 Thread Dejan Gambin
Does someone know if this is some kind of a bug or it is supposed to be so? Should the legend symbol box size really depend on sizeunits? Or should I report it as a bug? thx, dejan On 3. vel. 2012., at 09:45, Dejan Gambin wrote: > Hi, > > I have point shapefile and trying to show t

[mapserver-users] Legend size problem in GetLegendGraphic request

2012-02-03 Thread Dejan Gambin
Hi, I have point shapefile and trying to show the points as big circles on the map. So I am using something like: ... SIZEUNITS kilometers CLASS Name "myname" SIZE 10 ... END ... Everything is show ok on the map but the symbol in the legend is very big, and exceeds the symbol key box ver

[mapserver-users] Using WFS gml_[item name]_alias

2012-02-03 Thread Dejan Gambin
Hi, I am trying to use gml_[item name]_alias for renaming my columns in wfs GetFeature request with gml output. Everything works fine except I can't use some characters like whitespace for example, because it is not a valid xml element. My question is - is there any way to name my attribute li

Re: [mapserver-users] Order of attributes returned from WFS GetFeature

2011-12-29 Thread Dejan Gambin
Thanks. This works like a charm :-) dejan On 29. pro. 2011., at 12:40, Havard Tveite wrote: > I think your subselect has to include gid. > > Examples on: > http://mapserver.org/input/vector/postgis.html#data-access-connection-method > > > Håvard > > On 12/29/2011 1

Re: [mapserver-users] Order of attributes returned from WFS GetFeature

2011-12-29 Thread Dejan Gambin
D (DNR) wrote: > >> I don't believe you can control this on the MapServer side. Why not just set >> the column order >> explicitly in the SQL statement? > >> Steve > >> -Original Message- >> From: mapserver-users-boun...@lists.osgeo.org >>

[mapserver-users] Order of attributes returned from WFS GetFeature

2011-12-22 Thread Dejan Gambin
Hi, I am using GetFeature request to get the attributes from my PostGIS data. I define attributes with "gml_include_items". The order of attributes is however related to postgis column order, not to the order in gml_include_items. Is it somehow possible to change the order, withoout need to mod

Re: [mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames

2011-12-05 Thread Dejan Gambin
g polygons or ogc;DWithin filter for finding all > kind of features with a buffer? > > My TinyOWS has a bug with ogc:BBOX so if you test it, use Intersects, > Contains, or DWithin instead. > > Naturally WFS should behave in a similar way independently of the data source > behind t

Re: [mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames

2011-11-14 Thread Dejan Gambin
gt; finds 10 or more candidates from typeName "A" you will not get any features > at all from typeName "B". > > -Jukka Rahkonen- > > Dejan Gambin wrote: > > >> >> Anyway, seems like this ogrinfo error has nothing to do with >&

Re: [mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames

2011-11-14 Thread Dejan Gambin
Anyway, seems like this ogrinfo error has nothing to do with mapserver crash. So the problem persists :-( dejan On 14. stu. 2011., at 11:49, Dejan Gambin wrote: > Additional info: > > Everything works OK when data is in postgis. The problem is with data coming > from shape f

Re: [mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames

2011-11-14 Thread Dejan Gambin
030.196207) - (5407353.143421, 4986100.367492) Layer SRS WKT: (unknown) ID: Integer (8.0) NAMJENA: String (30.0) POVRSINA: Real (16.2) OZNAKA: String (100.0) On 14. stu. 2011., at 10:35, Dejan Gambin wrote: > Hi, > > I have a serious issue usng MapServer WFS in making GetFeature reques

[mapserver-users] MapServer crash with WFS GetFeature request using multiple typenames

2011-11-14 Thread Dejan Gambin
Hi, I have a serious issue usng MapServer WFS in making GetFeature request using multiple typenames. Here is the example post request: [Mon Nov 14 09:16:06 2011].666863 msWFSParseRequest(): WFS post request: http://www.opengis.net/wfs"; service="WFS" version="1.1.0" maxFeatures="10" xsi:schema

Re: [mapserver-users] GetFeatureInfo using MySQL join - additional info about segmentation fault

2011-09-14 Thread Dejan Gambin
;template_join.html" END regards, dejan On 14. ruj. 2011., at 13:05, Dejan Gambin wrote: > I tried debugging with gdb but only get this: > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x7f8b8d76c8b7 in ?? () from /lib64/ld-linux-x86-64.so.2 > > and with

Re: [mapserver-users] GetFeatureInfo using MySQL join - additional info about segmentation fault

2011-09-14 Thread Dejan Gambin
0x in ?? () regards, dejan On 14. ruj. 2011., at 12:33, Dejan Gambin wrote: > I have found "Segmentation fault" message in apache error.log each time I run > GetFeatureInfo with MySQL join. No problem with PostgreSQL :-( > > Any clue? Should I report it as a bug? > &

Re: [mapserver-users] GetFeatureInfo using MySQL join - additional info

2011-09-14 Thread Dejan Gambin
I have found "Segmentation fault" message in apache error.log each time I run GetFeatureInfo with MySQL join. No problem with PostgreSQL :-( Any clue? Should I report it as a bug? dejan On 13. ruj. 2011., at 22:51, Dejan Gambin wrote: > Of course. And everything works when usin

Re: [mapserver-users] GetFeatureInfo using MySQL join - additional info

2011-09-13 Thread Dejan Gambin
Of course. And everything works when using ogrinfo for example dejan On 13. ruj. 2011., at 20:19, Carlos Ruiz wrote: > Dejan, > > One question: If you look at the OGR supported formats, does MySQL appears ? > > Cheers from México > > IC Carlos Ruiz > > From: De

Re: [mapserver-users] GetFeatureInfo using MySQL join - additional info

2011-09-13 Thread Dejan Gambin
data from one-to-many join, using templates (thanks to Ted Spradley post). But gml returns only the main data, not the joined data. Is it supposed to be so? Thanks very much regards, dejan On 13. ruj. 2011., at 09:00, Dejan Gambin wrote: > Some additional info: > > Since I need this

Re: [mapserver-users] GetFeatureInfo using MySQL join - additional info

2011-09-13 Thread Dejan Gambin
[Tue Sep 13 08:58:04 2011].402821 shp2img total time: 0.161s Does anybody know what is it? It happens for MySQL and Postgres database join thanks very much dejan On 12. ruj. 2011., at 14:03, Dejan Gambin wrote: > Hi, > > After solving my compile problem (thanks to thomas), I need to

[mapserver-users] GetFeatureInfo using MySQL join

2011-09-12 Thread Dejan Gambin
Hi, After solving my compile problem (thanks to thomas), I need to do GetFeatureInfo to a shape layer joined to MySQL table (non-spatial join). I compiled MapServer with MySQL support and everything seems ok, but "mapserv -v" doesn't return "INPUT=MYSQL". Is it supposed to anyway? Or it is enou

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
OK thanks very much regards, dejan On 12. ruj. 2011., at 12:29, thomas bonfort wrote: > don't do that. recompile gd using the /usr/local libpng and > reconfigure mapserver with --with-gd=/usr/local > > regards, > thomas > > > 2011/9/12 Dejan Gambin : >> Than

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
:21, thomas bonfort > wrote: >> it's using the libpng.so from /usr/lib64 instead of /usr/local >> >> try adding -L/usr/local/lib right after "-o shp2img.o" >> >> 2011/9/12 Dejan Gambin : >>> Is this ok? >>> >>> coin:/hom

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
cutable `shp2img' collect2: ld returned 1 exit status On 12. ruj. 2011., at 12:10, thomas bonfort wrote: > One last check: can you run the linker command with the "-t" option > and post the output > > 2011/9/12 Dejan Gambin : >> Here is the ticket I created: &g

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
Here is the ticket I created: http://trac.osgeo.org/mapserver/ticket/4019 regards, dejan On 12. ruj. 2011., at 11:45, thomas bonfort wrote: > 2011/9/12 Dejan Gambin : >> It doesn't help :-( >> >> >> Here is the part of make compile statement with mapimagei

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
bonfort wrote: > make sure you remove the "-o mapimageio.o" from the call > > 2011/9/12 Dejan Gambin : >> I get no output, just mapimageio.o generatedI'll try again...maybe some >> other option... >> >> dejan >> On 12. ruj. 2011., a

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
I get no output, just mapimageio.o generatedI'll try again...maybe some other option... dejan On 12. ruj. 2011., at 11:45, thomas bonfort wrote: > 2011/9/12 Dejan Gambin : >> It doesn't help :-( >> >> >> Here is the part of make compile statement with

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
by > #include "/usr/local/include/png.h" > > if you have both png 1.4 and 1.5 in /usr/local, you're asking for > trouble, make sure this is not the case > > 2011/9/12 Dejan Gambin : >> Hi Thomas >> >> Thanks for the help. As I said, I have system lib

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
nfort wrote: > Can you check you are linking against the same version libpng library > as the png.h header (i.e. check you don't have multiple png versions > installed) > > 2011/9/12 Dejan Gambin : >> Hi, >> >> I am still unable to compiče mapserver 6.0.1. I

Re: [mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-12 Thread Dejan Gambin
Hi, I am still unable to compiče mapserver 6.0.1. I can't find this function (png_set_longjmpfn) defined anywhere. Can someone give me a clue? I am almost sure I am doing some stupid mistake, but for me seems unsolvable :-( Thanks very much regards, dejan On 8. ruj. 2011., at 12:12,

[mapserver-users] Problem compiling MapServer 6.0.1 with libpng

2011-09-08 Thread Dejan Gambin
Hi, After many trials and missings, I am still unable to compile MapServer 6.0.1 (6.0.0 also) on my Debian Lenny machine. Here is the error I get: ./libmapserver.a(mapimageio.o): In function `savePalettePNG': /home/dgambin/mapserver-6.0.1/mapimageio.c:274: undefined reference to `png_set_longj

Re: [mapserver-users] Font encoding

2010-09-21 Thread Dejan Gambin
Hi, I usually use some hex editor to find out the real encoding of dbf files. I look for special characters and identify the encoding somehow... regards, dejan On 20. ruj. 2010., at 17:16, Bennos wrote: > > Hi, > > I want to display labels of attributes of my shapefile which i exported from >

[mapserver-users] Artifacts on raster dataset after using gdaladdo

2010-09-03 Thread Dejan Gambin
Hi, I have a set of aerial ortophoto images. I have done the following: 1. gdal_translate -co "TILED=YES" on all of them 2. gdaladdo 2 4 8 16 on all of them 3. gdaltindex The problem is - artifacts appear in the lower right corner of each raster file (tiled and overviewed). They ave different c

[mapserver-users] Error showing tracks from gpx file

2010-03-22 Thread Dejan Gambin
Hi, I am trying to show data from gpx file using Mapserver. I can successfully show "track_points" layer but when trying with "tracks" layer, which is "multi line string" with one feature only, I get: msOGRFileNextShape(): IllegalArgumentException: point array must contain 0 or >1 elements he

Re: [mapserver-users] DXF layer definition in mapfile

2010-03-04 Thread Dejan Gambin
. ožu. 2010., at 17:06, Frank Warmerdam wrote: Dejan Gambin wrote: > Hi, > Since DXF driver has been made, I would like to show a DXF file on the map. > Is this possible? What syntax do I have to use to make it work? > I have tried defining it similar to dgn syntax, but it do

[mapserver-users] DXF layer definition in mapfile

2010-03-04 Thread Dejan Gambin
Hi, Since DXF driver has been made, I would like to show a DXF file on the map. Is this possible? What syntax do I have to use to make it work? I have tried defining it similar to dgn syntax, but it doesn't work. I get: "msOGRFileOpen(): Open failed for OGR connection in layer `layer_name'. Fi

Re: [mapserver-users] Blank map when using WMS connection

2010-02-26 Thread Dejan Gambin
LT. David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Dejan Gambin Sent: Friday, February 26, 2010 11:05 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Blank map when using WMS connection

[mapserver-users] Blank map when using WMS connection

2010-02-26 Thread Dejan Gambin
Hi, Maybe someone can give me a hint about this problem: I am trying to show a map from an external WMS server. This is what I can do successfully from my browser (get the image displayed): http://www.geo-portal.hr/wmsconnector/com.esri.wms.Esrimap/SCM?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&

[mapserver-users] Creating world files from raster images referenced in dwg

2010-01-27 Thread Dejan Gambin
Hi, I suppose this is not the right place to ask, but maybe someone can give me a hint: I have a dwg file with a bunch of raster images referenced. In the background, these images are tiff files but they have no georeference information. I know there are many utlities/programs that can export

Re: [mapserver-users] GeoJSON output from MapServer - GOT IT

2009-07-07 Thread Dejan . Gambin
Hi Steve (and others) Finally I got GeoJSON output from MapServer. I have used the newest ms4w. The point is - I have already tried with this one, but probably didn't use FORMATOPTION or something like this. Now it works correctly. A note - I had to use backslash notation for template FILE (on

Re: [mapserver-users] GeoJSON output from MapServer

2009-07-06 Thread Dejan . Gambin
Thanks Steve, I did all that and I get: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver TEMPLATE, but this driver isn't configured. Do I have an older MapServer version? Currently, I run this on ms4w 2.2.7 (MapServer 5.0.2), but as I remember, I have also trie

Re: [mapserver-users] GeoJSON output from MapServer

2009-07-05 Thread Dejan . Gambin
Hi, Sorry to bother again. Is there anyone been successful in getting GeoJSON output from MapServer? Is there any example or documentation on this? best regards, dejan "Steve Lime" wrote on 02.07.2009 15:35:28: > What does myTemplate.js look like? > > >>> 07/02/09 5:33 AM >>> > Thanks Fabi

Re: [mapserver-users] GeoJSON output from MapServer

2009-07-02 Thread Dejan . Gambin
Steve, Is there any GeoJSON example I can see? I must be missing something trivial, When I put: OUTPUTFORMAT NAME 'geojson' DRIVER TEMPLATE MIMETYPE 'application/json; subtype=geojson' TEMPLATE 'myTemplate.js' END in my.map file and call for example "http://localhost/cgi-bin/mapserv.e

Re: [mapserver-users] GeoJSON output from MapServer

2009-07-02 Thread Dejan . Gambin
Thanks Fabio, As I said in my last post, I can't get GeoJSON output using this outputformat: OUTPUTFORMAT NAME 'geojson' DRIVER 'TEMPLATE' MIMETYPE 'application/json; subtype=geojson' FORMATOPTION 'FILE=myTemplate.js' END :-( regards, dejan Fabio D'Ovidio wrote on 02.07.2009 09:28:06

Re: [mapserver-users] GeoJSON output from MapServer

2009-07-01 Thread Dejan . Gambin
Fabio, Glad to here you are here too :-) I can certainly use both GeoServer and MapServer but this is not something I would like at the end. Since I am still investigating all this, I am not in such a hurry to get it working with my data ASAP. So, I would rather go with one of your Mapserver

Re: [mapserver-users] GeoJSON output from MapServer

2009-07-01 Thread Dejan . Gambin
Steve, Here are more details, I am sure you'll have some further suggestions: There is a project called GeoReport, part of GeoBI suite, that integrates the data coming from Business Intelligence processes (Pentaho BI) with their cartographic representation. Since I am pretty much involved in bo

[mapserver-users] GeoJSON output from MapServer

2009-07-01 Thread Dejan . Gambin
Hi, Is it possible to use GeoJSON template for getting GeoJSON output from MapServer? I have tried using outputformat as described in: http://mapserver.org/development/rfc/ms-rfc-36.html and http://mapserver.org/development/rfc/ms-rfc-56.html Is it supported at all? I have a project where I nee

Re: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source

2009-05-18 Thread Dejan . Gambin
Since I didn't solve this yet, is there a way to somehow debug the query and see what is happening on individual "layers"? regards, dejan mapserver-users-boun...@lists.osgeo.org wrote on 18.05.2009 08:22:37: > > > > > Try to remove the brackets [] from the field names > > queryByAttributes

Re: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source

2009-05-17 Thread Dejan . Gambin
Still doesn't help :-(. Maybe I am doing something wrong...I don't know if I can "debug" this query on a lower level... This works for me correctly: ogrinfo -where "KOORDINATAX=5460870" krk.ovf krk although I get : ERROR 4: Update access not supported for VRT datasources Had to open data sourc

Re: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source

2009-05-17 Thread Dejan . Gambin
Hi, Unfortunatelly it doesn't help. I have tried with: queryByAttributes("[KOORDINATAX]", ( [KOORDINATAX] = 5460870 ), MS_MULTIPLE); and with queryByAttributes("[KOORDINATAX]", 5460870, MS_MULTIPLE); Neither one gives results :-( dejan Maher Karim wrote on 18.05.2009 07:28:19: > > > >

[mapserver-users] queryByAttributes returns no result with OGR/ODBC data source

2009-05-17 Thread Dejan . Gambin
Hi, I am using OGR Virtual Spatial Data to connect to MS Access database using ODBC. Database has X/Y columns. I have created .ovf file like this: ODBC:@Krk ID Dozvole wkbPoint It is all working fine and the points are showing on the

[mapserver-users] OGR problem connecting to mdb using ovf

2009-01-27 Thread Dejan . Gambin
Hi, I need to connect to Access database that has (among the other columns) spatial data in two columns named "x coord" and "y coord". I am trying to implement Virtual Spatial Data according to http://www.mapserver.org/input/vector/VirtualSpatialData.html. I have made ovf file like this:

[mapserver-users] Re: OGR problem connecting to mdb using ovf - SOLVED

2009-01-27 Thread Dejan . Gambin
I have solved the problem by using System DSN correctly and removing user dsn Thanks very much regards, dejan Dejan Gambin/GradPula wrote on 27.01.2009 16:23:16: > Hi, > > I need to connect to Access database that has (among the other > columns) spatial data in two columns na

[mapserver-users] Geometry scaling question

2008-11-27 Thread Dejan . Gambin
Hi, I suppose that could maybe be a stupid question, but: is there any function in PHP/Mapscript for geometry resizing/scaling? Let's say I would like to implement a functionality that could resize a polygon shape after user inputs some parametar that somehow defines this scaling (by formula)

Re: [mapserver-users] Sudden msRASTERLayerOpen() error - need help

2008-10-07 Thread Dejan . Gambin
I am not getting those errors any more with the new version, but my problem still remains. Now I suppose it is related to p.mapper thanks anyway dejan [EMAIL PROTECTED] wrote on 07.10.2008 10:42:25: > > Hi, > > I am using query on tif layer and everything was fine untill today. > Now I ca

Re: [mapserver-users] Sudden msRASTERLayerOpen() error - need help

2008-10-07 Thread Dejan . Gambin
I have even tried to build php-mapscript from the source, using the newest stable version but it doesn't help. Any suggestion would be greatly appreciated thanks regards [EMAIL PROTECTED] wrote on 07.10.2008 10:42:25: > > Hi, > > I am using query on tif layer and everything was fine until

[mapserver-users] Sudden msRASTERLayerOpen() error - need help

2008-10-07 Thread Dejan . Gambin
Hi, I am using query on tif layer and everything was fine untill today. Now I can't query the raster any more. There are no errors showing immediatelly in log files, except few times in php error log, saying: PHP Warning: [MapServer Error]: msRASTERLayerOpen(): Attempt to open a RASTER layer,

[mapserver-users] Using PROCESSING SCALE and SCALE_BUCKETS parameters

2008-10-05 Thread Dejan . Gambin
Hi, I hope someone has some experience with this: I am classifying pixel values from a tiff file (converted from asc). The values are in range 0-100 and I need to clasify them in a following manner (don't bother the COLOR values :-): CLASS EXPRESSION ([pixel] <= 35) NAME '35dB(A)'

[mapserver-users] Re: Showing nodata values as transparent in Tiff

2008-10-04 Thread Dejan . Gambin
Sorry, the nodata areas are transparent indeed, even without any parameter ! dejan Dejan Gambin/GradPula wrote on 05.10.2008 00:06:23: > Hi, > > I have converted the ESRI ascii grid file to Geotiff and did > gdaladdo on it too. Thean, using gdalinfo I get: > > Driver: GTi

[mapserver-users] Showing nodata values as transparent in Tiff

2008-10-04 Thread Dejan . Gambin
Hi, I have converted the ESRI ascii grid file to Geotiff and did gdaladdo on it too. Thean, using gdalinfo I get: Driver: GTiff/GeoTIFF Files: LDAY.tif Size is 3401, 2601 Coordinate System is `' Origin = (6398997.500,5044002.500) Pixel Size = (5.000,-5.000

[mapserver-users] Re:aaigrid display problem

2008-10-02 Thread Dejan . Gambin
Hi, I have sucessfully converted the ESRI ascii grid file to Geotiff using gdal_translate. But using tiffinfo on newly created file gives me something like this: TIFFReadDirectory: Warning, Unknown field with tag 33550 (0x830e) encountered. TIFFReadDirectory: Warning, Unknown field with tag 33

Re: [mapserver-users] Output image resolution - explanation needed

2008-07-31 Thread Dejan . Gambin
Thanks, you helped me a lot In my example, I have printed an area of aproximately 1km wide on an A4 Landscape that is 29,7cm wide, so 1inch is about 85.5m. So that should be the reason? :-) regards, dejan "Rahkonen Jukka" <[EMAIL PROTECTED]> wrote on 31.07.2008 11:00:15: > Hi, > > What are t

Re: [mapserver-users] Output image resolution - explanation needed

2008-07-30 Thread Dejan . Gambin
Thanks Steve I still (unfortunatelly) don't understand why I am getting the "same quality" image on the paper with the first and second print (the second image has twice more pixels). Is it because of the input image itself? To be specific - the raster input is aerial image that gdalinfor repor

[mapserver-users] Output image resolution - explanation needed

2008-07-30 Thread Dejan . Gambin
Hi, I am trying to download a high resolution image and print it on a paper. I am using p.mapper and its download function that enables downloading the map image on different resolutions. I have turned on my raster layer (ortophoto image). I have zoomed in to an area of interest. I have downl

[mapserver-users] Legend icon size - question

2008-07-28 Thread Dejan . Gambin
Hi, Can I influence the size of legend icon/image in any way? The documentation says "The size of the legend image is NOT known prior to creation.." and "...legend components are built automatically from class objects from individual layers..." The reason I am asking this is following: I am u

Re: [mapserver-users] How to tile a large TIF image?

2008-04-18 Thread Dejan . Gambin
Paul, I am just interested in one thing: If you say "breaking" a single tiff file with "TILED=YES" is equivalent to breaking into individual files and using tileindex - does it mean it is ALWAYS better to create a single file with "internal" tiling than create many files and using tileindex? I