Re: [mapserver-users] QGIS vs Mapserver someone use wrong scale ?

2013-02-14 Thread Martin Kofahl
Hi Andrea,
the inaccuracy may rest upon the resolution defined in your mapfile. By
default, MapServer uses RESOLUTION 72, I think. This is not quite correct
for OGC WMS, because this standard assumes a pixelsize of 0.28 x 0.28 mm²
which is ~90.7 dpi. Not sure if you can set floating point resolutions in
MapServer. Try setting RESOLUTION 90.7 or 91 in your mapfile.

Best regards,
Martin


2013/2/11 Andrea Peri aperi2...@gmail.com

 Hi,

 I set a class rule to show the label in this interval scale:

   LABEL
 COLOR 175 109 134
 OUTLINECOLOR 255 255 255
 OUTLINEWIDTH 1
 MAXSCALEDENOM 300100
 MINSCALEDENOM 1
 

 After I try to test it with QGIS, but I see calling it with qgis the
 show of labels in the scale are not so linear as I could guess.

 infact

 the label ARE NOT SHOWED at 1:299.990
 the label ARE NOT SHOWED at 1:300.000
 the label are showed at 1:300.001
 the label are showed at 1:300.010
 the label ARE NOT SHOWED at 1:300.050
 the label are showed at 1:300.090
 the label ARE NOT SHOWED at 1:300.100
 the label ARE NOT SHOWED at 1:300.110
 the label ARE NOT SHOWED at 1:300.150

 So seem the limit of
 1:300.100 I set in the mapfile is not so exactly used.

 But I'm not able to understand if is a wrong QGIS calculation of scale
 value or is a MapServer trouble.

 Any hint is welcome

 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -
 ___
 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] mapcache: How can I configure an attributionlayer with mapcache?

2013-02-14 Thread Ariane Brörmann
Is there a possibility to add an attributionlayer (copyright) with mapcache?
If yes, how can I configure this?

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


[mapserver-users] mapcache: How can I configure an other name for rootlayer in getcapabilities document?

2013-02-14 Thread Ariane Brörmann
I use mapcache for caching my own WMS-service. I called my layer mylayer,
but the GetCapabilities document contains rootlayer all time. I would
already like to have the name of my layer mylayer instead of rootlayer.
Is it configurable? Or missed I something?

Ariane

 ?xml version=1.0 encoding=UTF-8 standalone=no?
 !DOCTYPE WMT_MS_Capabilities SYSTEM 
http://schemas.opengis.net/wms/1.1.0/capabilities_1_1_0.dtd; [
@@ -23,7 +27,7 @@
 WMT_MS_Capabilities version=1.1.1
   Service
 NameOGC:WMS/Name
 Titletest/Title
...
   /Service
   Capability
@@ -48,11 +52,11 @@
 /VendorSpecificCapabilities
 Layer
   Namerootlayer/Name
   Titletest/Title
   SRS.../SRS
   Layer cascaded=1 queryable=0
 Namemylayer/Name
 Titletest/Title
 ...
   /Layer
 /Layer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapcache: How can I configure an attributionlayer with mapcache?

2013-02-14 Thread Martin Kofahl
Hi Ariane,
you may configure to add a watermark (from png file, etc) in the tileset
section. See http://mapserver.org/en/mapcache/config.html.

!-- watermark
  optional tag to add a watermark to the tiles *before* storing
them to cache  the supplied image MUST be exactly the same size as
the size of the tiles  configured in the grid  the supplied
image is read when the configuration is loaded.  if you make
changes to the image, they will NOT be reflected on tiles already
stored in the cache, nor on newly stored tiles until the server is
restarted--
watermark/path/to/static/watermark.png/watermark

Martin



2013/2/14 Ariane Brörmann ariane.broerm...@googlemail.com

 Is there a possibility to add an attributionlayer (copyright) with
 mapcache?
 If yes, how can I configure this?

 Ariane

 ___
 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] OGR SQL select Query to extract decimal part

2013-02-14 Thread csdave4u
I am using MapServer version 6.0.3 (MS4W 3.0.6) and my target to display
decimal number as per attached png. 
http://osgeo-org.1560.n6.nabble.com/file/n5034263/decimal.png My Solution
- Map file with two layers - First Layer to display Integer Part i.e. 12 and
Second Layer to display decimal part i.e. 8 with some offset. My Connection
type is OGR.My Query - OGR SQL select Query to extract decimal part i.e. 8
from decimal value 12.8



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/OGR-SQL-select-Query-to-extract-decimal-part-tp5034263.html
Sent from the Mapserver - User mailing list archive at Nabble.com.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver 6.2.0 perl mapscript

2013-02-14 Thread Andy Colson

On 2/14/2013 8:09 AM, Umberto Nicoletti wrote:

It's in the 6.2 branch, please review it:

https://github.com/mapserver/mapserver/commit/a4ac07d8da7d81f42090890a7e359bdc1f277dbf

Umberto




Mmm.. No, that didnt seem to work.

andy@mapper:/pub/apps/mapserver$ git branch
* branch-6-2
  master



top level ./configure and make went ok, then:

andy@mapper:/pub/apps/mapserver$ cd mapscript/perl

andy@mapper:/pub/apps/mapserver/mapscript/perl$ perl Makefile.PL
-I/pub/apps/mapserver -I/usr/local/include -I/usr/include
-L/usr/lib -L/pub/apps/mapserver/.libs -lmapserver
-rpath /usr/lib -lmapserver -lfreetype -lz -lbz2 -L/usr/lib64 -lgd 
-lproj -ljpeg -lpng -lgif -L/usr/local/lib -lgdal -L/usr/local/pg92/lib 
-lpq -L/usr/lib64 -lgeos_c -lc -lm -ldl -lstdc++

6.2.0
Writing Makefile for mapscript
Writing MYMETA.yml and MYMETA.json

andy@mapper:/pub/apps/mapserver/mapscript/perl$ make
cp mapscript.pm blib/lib/mapscript.pm
cc -c  -I/pub/apps/mapserver -I/usr/local/include -I/usr/include 
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 
-fPIC   -DVERSION=\6.2.0\ -DXS_VERSION=\6.2.0\ -fPIC 
-I/usr/lib64/perl5/CORE  -DHAVE_VSNPRINTF -DNEED_STRLCPY 
-DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_SVR -DUSE_POSTGIS 
-DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL -DUSE_OGR -DUSE_GEOS 
-DHAVE_SYNC_FETCH_AND_ADD -DUSE_PROJ -DUSE_GD -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF -DUSE_PNG -DUSE_FREETYPE 
-DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR 
-DDISABLE_CVSID mapscript_wrap.c

mapscript_wrap.c: In function '_wrap_scaleTokenEntryObj_minscale_set':
mapscript_wrap.c:21664:5: error: unknown type name 'scaleTokenEntryObj'
mapscript_wrap.c:21664:33: error: 'scaleTokenEntryObj' undeclared (first 
use in this function)
mapscript_wrap.c:21664:33: note: each undeclared identifier is reported 
only once for each function it appears in

mapscript_wrap.c:21664:53: error: expected expression before ')' token
mapscript_wrap.c:21680:33: error: expected expression before ')' token
...Lots more...


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


[mapserver-users] line issue in mapserver 6

2013-02-14 Thread Murat Beyhan
Dear All,

I have installed mapserver 6.0.1 on ubuntu 12.10 and I tried to draw map
which is including some line and polygon layers.
By the way I have been using mapserver 5.4.2 for a long time.

Same map file which is working to draw map using mapserver 5.4.2 working
well under mandriva 2010.
When I try to draw it on new Mapserver the line looking like a point on the
map even if its shapefile is line data.
BUt for old mapsever it seems line without any problem.

When I try to find reason I understood style and symbol has minor change.

Then I would like to solve my problem making some test.

Then I have found a solution but it is little bit strange.
like this

for old version of mapserver layers as follows in the map and it seems like
a point on the map when I zoomed much.


LAYER
NAME Faults
TYPE line
DATA faults_line
STATUS on
   CLASS
   SYMBOL cline
   SIZE 1
   COLOR 200 10 0
   END
END

and symbol cline as follows

SYMBOL
  NAME cline
  TYPE line
  POINTS 0 0  END
  FILLED TRUE
 END
these are workng for the mapserver 5.4.2 well.

But for Mapserver 6.0 it look like a points instead of line on the map.
Then I have used style and I modified map file as follows

 LAYER
TYPE line
STATUS on
 CLASS
  STYLE
  WIDTH 2.0
   COLOR 200 10 20
  END
END

LAYER
  NAME Faults
  DATA fault_lines
  STATUS on
 END

it works well but for all line layer I should use layer for style for any
layer which are including line data.

I mean if I try to draw another layer after the fault_lines layer I have to
add layer for style before the layer.

So if I use layer for style for all line layer it gives confusion on the
map file.
Do you have any suggestion What I'm missing.

Regards.
Murat



/usr/lib/cgi-bin/mapserv -v
MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] posting variable to map file from html page

2013-02-14 Thread Murat Beyhan
Dear Friend
After installing mapserver 6.0.1 I have faced a problem that
I could not post string variable into the map file.
It was working well for mapserver 5.4.2 but it doesn't work for new version
from html file I have sending eq_id to the map file
and in layer I use the following

 SrcSQLSELECT sta_id,latitude,longitude from pgav where eq_id like
%eq_id%  /SrcSQL


it was worked for mapserver 5.4.2 but I could not sent when I installed new
version of map file.
May be it caused by new apache2 server. But in case please help me.
Regards...
Murat
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver 6.2.0 perl mapscript

2013-02-14 Thread Umberto Nicoletti
make clean

fixed it for me
Umberto


On Thu, Feb 14, 2013 at 3:48 PM, Andy Colson a...@squeakycode.net wrote:

 On 2/14/2013 8:09 AM, Umberto Nicoletti wrote:

 It's in the 6.2 branch, please review it:

 https://github.com/mapserver/**mapserver/commit/**
 a4ac07d8da7d81f42090890a7e359b**dc1f277dbfhttps://github.com/mapserver/mapserver/commit/a4ac07d8da7d81f42090890a7e359bdc1f277dbf

 Umberto



 Mmm.. No, that didnt seem to work.

 andy@mapper:/pub/apps/**mapserver$ git branch
 * branch-6-2
   master



 top level ./configure and make went ok, then:

 andy@mapper:/pub/apps/**mapserver$ cd mapscript/perl

 andy@mapper:/pub/apps/**mapserver/mapscript/perl$ perl Makefile.PL
 -I/pub/apps/mapserver -I/usr/local/include -I/usr/include
 -L/usr/lib -L/pub/apps/mapserver/.libs -lmapserver
 -rpath /usr/lib -lmapserver -lfreetype -lz -lbz2 -L/usr/lib64 -lgd -lproj
 -ljpeg -lpng -lgif -L/usr/local/lib -lgdal -L/usr/local/pg92/lib -lpq
 -L/usr/lib64 -lgeos_c -lc -lm -ldl -lstdc++
 6.2.0
 Writing Makefile for mapscript
 Writing MYMETA.yml and MYMETA.json

 andy@mapper:/pub/apps/**mapserver/mapscript/perl$ make
 cp mapscript.pm blib/lib/mapscript.pm
 cc -c  -I/pub/apps/mapserver -I/usr/local/include -I/usr/include
 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector
 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fPIC
 -DVERSION=\6.2.0\ -DXS_VERSION=\6.2.0\ -fPIC -I/usr/lib64/perl5/CORE
  -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT -DNEED_STRRSTR
 -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_GDAL
 -DUSE_OGR -DUSE_GEOS -DHAVE_SYNC_FETCH_AND_ADD -DUSE_PROJ -DUSE_GD
 -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_GIF -DUSE_ICONV -DUSE_JPEG -DUSE_GIF
 -DUSE_PNG -DUSE_FREETYPE -DHAVE_VSNPRINTF -DNEED_STRLCPY -DNEED_STRLCAT
 -DNEED_STRRSTR -DDISABLE_CVSID mapscript_wrap.c
 mapscript_wrap.c: In function '_wrap_scaleTokenEntryObj_**minscale_set':
 mapscript_wrap.c:21664:5: error: unknown type name 'scaleTokenEntryObj'
 mapscript_wrap.c:21664:33: error: 'scaleTokenEntryObj' undeclared (first
 use in this function)
 mapscript_wrap.c:21664:33: note: each undeclared identifier is reported
 only once for each function it appears in
 mapscript_wrap.c:21664:53: error: expected expression before ')' token
 mapscript_wrap.c:21680:33: error: expected expression before ')' token
 ...Lots more...



 __**_
 mapserver-users mailing list
 mapserver-users@lists.osgeo.**org mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/mapserver-**usershttp://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] mapserver 6.2.0 perl mapscript

2013-02-14 Thread Andy Colson

Ok, got it.

inside mapscript/perl, make clean didnt remove mapscript_wrap.c.  I 
manually removed it, then make clean'ed everywhere.  Then started over, 
and it compiled clean.


On to testing...

-Andy

On 2/14/2013 9:19 AM, Umberto Nicoletti wrote:

make clean

fixed it for me
Umberto




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


Re: [mapserver-users] posting variable to map file from html page

2013-02-14 Thread Fawcett, David (MNIT)
Murat,

Starting at 6.0, you need to add a validation block to your layer.  With 
validation, you include an expression that defines which characters are allowed 
to be passed in that variable.

http://mapserver.org/cgi/runsub.html

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Murat Beyhan
Sent: Thursday, February 14, 2013 9:12 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] posting variable to map file from html page

Dear Friend
After installing mapserver 6.0.1 I have faced a problem that
I could not post string variable into the map file.
It was working well for mapserver 5.4.2 but it doesn't work for new version
from html file I have sending eq_id to the map file
and in layer I use the following

 SrcSQLSELECT sta_id,latitude,longitude from pgav where eq_id like  %eq_id% 
 /SrcSQL


it was worked for mapserver 5.4.2 but I could not sent when I installed new 
version of map file.
May be it caused by new apache2 server. But in case please help me.
Regards...
Murat
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] posting variable to map file from html page

2013-02-14 Thread Stephen Woodbridge

On 2/14/2013 10:11 AM, Murat Beyhan wrote:

Dear Friend
After installing mapserver 6.0.1 I have faced a problem that
I could not post string variable into the map file.
It was working well for mapserver 5.4.2 but it doesn't work for new version
from html file I have sending eq_id to the map file
and in layer I use the following

  SrcSQLSELECT sta_id,latitude,longitude from pgav where eq_id like
%eq_id%  /SrcSQL


it was worked for mapserver 5.4.2 but I could not sent when I installed
new version of map file.
May be it caused by new apache2 server. But in case please help me.
Regards...
Murat


In the newer version of mapserver you have to add validation regexs to 
all variables. This is a security update.


read: http://mapserver.org/cgi/runsub.html

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


Re: [mapserver-users] mapserver 6.2.0 perl mapscript

2013-02-14 Thread Andy Colson
It works!  My package build script ran as-is, the libs link ok, and my 
maps serve correctly from apache.


Thank you much.

-Andy


On 2/14/2013 9:43 AM, Andy Colson wrote:

Ok, got it.

inside mapscript/perl, make clean didnt remove mapscript_wrap.c.  I
manually removed it, then make clean'ed everywhere.  Then started over,
and it compiled clean.

On to testing...

-Andy

On 2/14/2013 9:19 AM, Umberto Nicoletti wrote:

make clean

fixed it for me
Umberto




___
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] Photo Viewer

2013-02-14 Thread Weisbender, Eric
I would like to use MapServer as just an unreferenced image viewer for jpgs so 
I can zoom in and out on the image.  Everything I read says that images have to 
be georeferenced.  Any idea or even examples would be greatly appreciated.

Thanks,

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


Re: [mapserver-users] Photo Viewer

2013-02-14 Thread Basques, Bob (CI-StPaul)
Eric,

Interesting idea.  I remember a thread a few years back about something similar 
being asked.

As far as the geo-referencing part, you can simply use the size of the image as 
your reference coordinate system for each image.  Mapserver is more generally 
suit towards combining different data into a single output, thus the need for a 
coordinate system to reference more than one layer.

So, the real question boils down to a technique for fooling MapServer into some 
sort of projection some how for each image.   Let me think on this a bit.  I 
wonder though about setting up something to register images to a location via a 
loading form which grabs the image size, etc.  Then they are put away with the 
sudo projection assigned to each image at the uploading point.

Bobb



From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric
Sent: Thursday, February 14, 2013 10:03 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Photo Viewer

I would like to use MapServer as just an unreferenced image viewer for jpgs so 
I can zoom in and out on the image.  Everything I read says that images have to 
be georeferenced.  Any idea or even examples would be greatly appreciated.

Thanks,

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


Re: [mapserver-users] Photo Viewer

2013-02-14 Thread Lime, Steve D (MNIT)
I would think it could be done, your extent would be given in pixels. Full 
extent is given as 0 0 width-1 height-1. Depends if the raster code respects 
the layer TRANSFORM parameter.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Thursday, February 14, 2013 10:34 AM
To: Weisbender, Eric; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Photo Viewer

Eric,

Interesting idea.  I remember a thread a few years back about something similar 
being asked.

As far as the geo-referencing part, you can simply use the size of the image as 
your reference coordinate system for each image.  Mapserver is more generally 
suit towards combining different data into a single output, thus the need for a 
coordinate system to reference more than one layer.

So, the real question boils down to a technique for fooling MapServer into some 
sort of projection some how for each image.   Let me think on this a bit.  I 
wonder though about setting up something to register images to a location via a 
loading form which grabs the image size, etc.  Then they are put away with the 
sudo projection assigned to each image at the uploading point.

Bobb



From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric
Sent: Thursday, February 14, 2013 10:03 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Photo Viewer

I would like to use MapServer as just an unreferenced image viewer for jpgs so 
I can zoom in and out on the image.  Everything I read says that images have to 
be georeferenced.  Any idea or even examples would be greatly appreciated.

Thanks,

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


Re: [mapserver-users] Photo Viewer

2013-02-14 Thread Basques, Bob (CI-StPaul)
Ok, I sort of got something to work . . .

http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map

http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925

Danged if I can figure out how to rotate the image (via the world file), 
nothing is happening with edits to the world file.

Still not responding to all the CGI parameters either.

MAPFILE:

MAP

NAME PHOTO
SIZE 2048 1536
EXTENT 0 0 2048 1536
UNITS feet

LAYER
  NAME photo
  DATA up_a_tree.jpg
  TYPE RASTER
  TRANSFORM FALSE
  STATUS DEFAULT
  UNITS PIXELS
END

END

WORLD FILE:

1.
0.
0.
1.
0.5
0.5

bobb



From: Lime, Steve D (MNIT)
Sent: Thursday, February 14, 2013 10:53 AM
To: Basques, Bob (CI-StPaul); Weisbender, Eric; mapserver-users@lists.osgeo.org
Subject: RE: Photo Viewer

I would think it could be done, your extent would be given in pixels. Full 
extent is given as 0 0 width-1 height-1. Depends if the raster code respects 
the layer TRANSFORM parameter.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Thursday, February 14, 2013 10:34 AM
To: Weisbender, Eric; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Photo Viewer

Eric,

Interesting idea.  I remember a thread a few years back about something similar 
being asked.

As far as the geo-referencing part, you can simply use the size of the image as 
your reference coordinate system for each image.  Mapserver is more generally 
suit towards combining different data into a single output, thus the need for a 
coordinate system to reference more than one layer.

So, the real question boils down to a technique for fooling MapServer into some 
sort of projection some how for each image.   Let me think on this a bit.  I 
wonder though about setting up something to register images to a location via a 
loading form which grabs the image size, etc.  Then they are put away with the 
sudo projection assigned to each image at the uploading point.

Bobb



From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric
Sent: Thursday, February 14, 2013 10:03 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Photo Viewer

I would like to use MapServer as just an unreferenced image viewer for jpgs so 
I can zoom in and out on the image.  Everything I read says that images have to 
be georeferenced.  Any idea or even examples would be greatly appreciated.

Thanks,

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


Re: [mapserver-users] Photo Viewer

2013-02-14 Thread Lime, Steve D (MNIT)
Could try ANGLE 90 at the map level?

From: Basques, Bob (CI-StPaul)
Sent: Thursday, February 14, 2013 4:17 PM
To: Lime, Steve D (MNIT); Weisbender, Eric; mapserver-users@lists.osgeo.org
Subject: RE: Photo Viewer

Ok, I sort of got something to work . . .

http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map

http://gis.ci.stpaul.mn.us/datasets/SHP/SAINT_PAUL/PUBLIC_WORKS/TEST/image_pixel_coord_public.map?mapext=750+600+1100+925

Danged if I can figure out how to rotate the image (via the world file), 
nothing is happening with edits to the world file.

Still not responding to all the CGI parameters either.

MAPFILE:

MAP

NAME PHOTO
SIZE 2048 1536
EXTENT 0 0 2048 1536
UNITS feet

LAYER
  NAME photo
  DATA up_a_tree.jpg
  TYPE RASTER
  TRANSFORM FALSE
  STATUS DEFAULT
  UNITS PIXELS
END

END

WORLD FILE:

1.
0.
0.
1.
0.5
0.5

bobb


From: Lime, Steve D (MNIT)
Sent: Thursday, February 14, 2013 10:53 AM
To: Basques, Bob (CI-StPaul); Weisbender, Eric; 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: RE: Photo Viewer
I would think it could be done, your extent would be given in pixels. Full 
extent is given as 0 0 width-1 height-1. Depends if the raster code respects 
the layer TRANSFORM parameter.

Steve

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Thursday, February 14, 2013 10:34 AM
To: Weisbender, Eric; 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Photo Viewer

Eric,

Interesting idea.  I remember a thread a few years back about something similar 
being asked.

As far as the geo-referencing part, you can simply use the size of the image as 
your reference coordinate system for each image.  Mapserver is more generally 
suit towards combining different data into a single output, thus the need for a 
coordinate system to reference more than one layer.

So, the real question boils down to a technique for fooling MapServer into some 
sort of projection some how for each image.   Let me think on this a bit.  I 
wonder though about setting up something to register images to a location via a 
loading form which grabs the image size, etc.  Then they are put away with the 
sudo projection assigned to each image at the uploading point.

Bobb



From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Weisbender, Eric
Sent: Thursday, February 14, 2013 10:03 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Photo Viewer

I would like to use MapServer as just an unreferenced image viewer for jpgs so 
I can zoom in and out on the image.  Everything I read says that images have to 
be georeferenced.  Any idea or even examples would be greatly appreciated.

Thanks,

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


[mapserver-users] java - mapscript, using hibernate-jpa2

2013-02-14 Thread Ahmet Temiz
Hello

 I would like to know your view.

In java - mapscript, using hibernate-jpa2 is a good choice ?

If you have any experiences in this respect, could you share your
experiences ?

regards

-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı




Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users