Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Stefan Schantz
Well, here is the MAP definition, but the same mapfile works with the 
Shapefile, which I have transformed from the CSV/VRT-files, so I think, 
that the mapfile shouldn't be the issue.

Stefan
-
MAP
 NAME "rodos_bgefirst"
 STATUS ON
 EXTENT 458690.8459237 1746161.3670216 6216440.5477323 6216440.5477323
 UNITS METERS

 DEBUG 5
 CONFIG  "MS_ERRORFILE" "/data/tmp/ms_debug.log"

 SYMBOLSET "../symbols/symbols.sym"
 FONTSET "../fonts/fonts.list"
 SHAPEPATH "/daten/rasterkarten/"

 PROJECTION
   "init=epsg:3035"
 END
 OUTPUTFORMAT
   NAME png
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   EXTENSION PNG
   IMAGEMODE PC256 
   TRANSPARENT ON   
   END
  
 WEB

   IMAGEPATH "/data/tmp/"
   IMAGEURL "http://10.162.18.107/tmp/";
   METADATA
 "WMS_ACCESSCONSTRAINTS""none"
 "WMS_SRS"   "EPSG:4326 EPSG:32632 EPSG:25832 EPSG:31466 EPSG:31467 
EPSG:31468 EPSG:3035" 
 "WMS_ONLINERESOURCE"
"http://10.162.18.107/cgi-bin/mapserv?map=/data/umn/bfs/map/rodos_bgefirst_ssh.map"; 


 "WMS_TITLE""RODOS Prognose Karte interpoliert"
 "WMS_FEATURE_INFO_MIME_TYPE""text/html"
 "WMS_ABSTRACT""RODOS Prognose Karte"
   END
 END

 INCLUDE "../include/legend_rodos.map"
---
Carlos Ruiz schrieb:

Can you show me the MAP definition ? Maybe I can find something there

IC Carlos Ruiz


*From:* Stefan Schantz 
*To:* Carlos Ruiz 
*Cc:* mapserver-users@lists.osgeo.org
*Sent:* Wed, January 20, 2010 12:01:40 PM
*Subject:* Re: [mapserver-users] VRT / CSV data sources are not 
displayed in a layer


Hello Carlos,
my CSV-file ans VRT-file looks like your examples:

My CSV is
x-utm,y-utm,Wert
  742226.,  5374978., 0.00E+00
  743422.,  5375072., 0.00E+00
  744620.,  5375166., 0.00E+00
...

and my VTR is

  
  /daten/csv/boden.csv
  wkbPoint
  
  


and as I wrote, ogr2ogr could read my vrt/csv data and transform it 
into a shapefile..


Stefan

Carlos Ruiz schrieb:
> Check that you have your CSV like this:
>
> Lat,Lng,House
> 48.1,0.25,"My house"
> 49.2,1.1,"My girlfriend's house"
> 47.5,0.75,"My mother in law's house"
>
> And that you have your VTR like this:
>
> 
> 
>[FILE]
>wkbPoint
>[YOUR SRS]
>
> 
> 
>IC Carlos Ruiz
>
> 
> *From:* Stefan Schantz mailto:sscha...@bfs.de>>
> *To:* mapserver-users@lists.osgeo.org 


> *Sent:* Wed, January 20, 2010 9:32:12 AM
> *Subject:* [mapserver-users] VRT / CSV data sources are not 
displayed in a layer

>
> Hello List,
>
> The following layer uses a CSV-file (together with a VRT-File 
(Virtual Format) ) as datasource . When I try to visualize the layer, 
nothing is shown (neither the data nor error messages; shp2img shows 
also nothing)

>
> LAYER
>  NAME "boden"
>  DEBUG on
>  STATUS ON
>  TYPE POINT
> # DATA "/daten/csv/boden/boden" # Datenquelle Shapefile
>  CONNECTION  "/daten/csv/boden.vrt"
>  CONNECTIONTYPE OGR
>
>  PROJECTION
>  "init=epsg:25832"
>  END
>METADATA
>  "WMS_TITLE""test"
>  "WMS_SRS"  "EPSG:25832"
>  "WMS_ABSTRACT""test"
>  "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'
>  END
>
>  CLASS
>  NAME "test"
>  STYLE
>  SYMBOL "circle"
>  SIZE 15  COLOR 90 90 90
>  END
>  END  END
>
>
> But if I transform the CSV/VRT-file into a Shapefile  via ogr2ogr
>
> ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" 
boden boden.vrt

>
>
> the layer displays the data.
> What is wrong with my VRT/CSV-datasource in the mapfile?
>
> Thanks for any idea.
>
> Best regards
> Stefan
> ___
> 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] Announcement: Dracones, a web mapping framework for MapServer

2010-01-20 Thread Barend Köbben
Hi Christian,

Thanks for bringing this. It looks like a very promising framework, but
while checking out your examples I did notice that the client apparently is
not registering a CTRL-click in my setup (Firefox 3.5.7 on MacOSX 10.6),
nothing ahpens (SHIFT-drag and doubleclick work). This makes the client side
app a bit handicapped...

Yours,


-- 
Barend Köbben
Senior Lecturer
ITC ­ University of Twente, Faculty of Geo-Information Science and
Earth Observation
PO Box 6, 7500AA Enschede, The Netherlands
+31 (0)53 4874253




On 20-01-10 17:31, "Christian Jauvin"  wrote:

> Dear MapServer users,
> 
> I have created Dracones, a Python and JavaScript web mapping framework
> based on MapServer, which I think could be of interest to the open
> source web mapping/GIS community. It is available at:
> 
> http://surveillance.mcgill.ca/dracones
> 
> This framework began its life as a surveillance application for
> Montreal Public Health. After a lot of refactoring sessions, I had the
> idea of abstracting a set of core client/server services, that would
> become the framework, and to rewrite the original application in terms
> of those. Thus the set of features offered by Dracones stems from
> pre-existing application needs, rather than the opposite.
> 
> In a nutshell, here is what Dracones provides..
> 
> On the client side:
> 
> * A lightweight but powerful map widget (100% JS), with state of the
> art features like AJAX-based smooth scrolling and visual selection
> * An extension mechanism to define new UI behaviors (e.g. what happens
> when clicking on the map, or drawing a selection box around objects)
> 
> On the server side:
> 
> * A set of Python classes and functions (written on top of
> Python-MapScript) that encapsulate the application state, and ease the
> interaction with its map objects
> * A well-thought extension mechanism, to define custom requests and queries
> 
> Dracones also provides a bunch of other application-centric features,
> like easy map image export and undo/redo. Last but not least, I've
> been very careful in writing the documentation and tutorials, which I
> think cover a wide range of issues and possibilities.
> 
> This work is still in Alpha stage, and I will be of course very
> interested to hear the community's comments and suggestions.
> 
> Best regards,
> 
> Christian Jauvin
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

Faculty of Geo-Information Science and Earth Observation (ITC)
University of Twente

E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the 
addressee only. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, distribution or action in relation to the content 
of this information is strictly prohibited. If you have received this e-mail by 
mistake, please delete the message and any attachment and inform the sender by 
return e-mail. ITC accepts no liability for any error or omission in the 
message content or for damage of any kind that may arise as a result of e-mail 
transmission.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] RE: Images returning blank

2010-01-20 Thread Jeff McKenna

Kent Morrison wrote:

I think I figured out my own answer. X_0 is the False_easting * the unit 
value... In this case foot_us = 0.3048006096012192



A really good page to keep handy which describes the PROJ.4 parameters 
(which are used by MapServer) is: 
http://trac.osgeo.org/proj/wiki/GenParms   Everyone should bookmark that 
one for sure.


-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


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


RE: [mapserver-users] RE: Images returning blank

2010-01-20 Thread Kent Morrison
I think I figured out my own answer. X_0 is the False_easting * the unit 
value... In this case foot_us = 0.3048006096012192



-Original Message-
From: Kent Morrison 
Sent: Wednesday, January 20, 2010 1:49 PM
To: 'Fawcett, David (MPCA)'; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

One question I have is:
1. The PROJECTION settings from spatialreference.org for 
NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet is

  PROJECTION 
"proj=lcc"
"lat_1=47.5"
"lat_2=49.73"
"lat_0=47.0"
"lon_0=-120.83" 
"x_0=50.01"
"y_0=0"
"ellps=GRS80"
"to_meter=0.3048006096012192"
"no_defs"
  END

I can see where all the settings come fro mthe .PRJ file except for the x_0 and 
y_0, where did these come from?

I though tit might be the "False_Easting"/"False_Northing" settings but 
changing x_0 = 1640416.7 caused the images to disapear so that's not 
it. 


The .PRJ file is:

PROJCS["NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet",
GEOGCS["GCS_North_American_1983_HARN",
DATUM["D_North_American_1983_HARN",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1640416.7],
PARAMETER["False_Northing",0.0],
PARAMETER["Central_Meridian",-120.8],
PARAMETER["Standard_Parallel_1",47.5],
PARAMETER["Standard_Parallel_2",48.73],
PARAMETER["Latitude_Of_Origin",47.0],
UNIT["Foot_US",0.3048006096012192]],

VERTCS["NAVD_1988",
VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],
PARAMETER["Direction",1.0],
UNIT["Foot_US",0.3048006096012192]]
 
I need to be able to create the PROJECTION settings from the .PRJ file. My 
application needs to allow users to upload shape files on their own. The 
PROJECTION settings is the last part.



-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Wednesday, January 20, 2010 11:06 AM
To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

If you were just trying to display the data in a simple map, you could go 
without the projection info and still see something if you only wanted to 
display that layer.

Let's add a PROJECTION obj to your layer:

Take a look at http://spatialreference.org/ref/esri/102740/.  I am pretty sure 
that this is the spatial reference system (SRS) that your data is in.  

MapServer uses SRS definitions in Proj.4 format.  Here is a link to this SRS in 
Proj.4:  http://spatialreference.org/ref/esri/102740/proj4/

In your LAYER, add

PROJECTION
   "proj=lcc"
   "lat_1=28.38"
   "lat_2=30.283334"
   "lat_0=27.83"
   "lon_0=-99" 
   "x_0=60.01"
   "y_0=400"
   "ellps=GRS80"
   "datum=NAD83"
   "to_meter=0.3048006096012192"
   "no_defs"
END

Does this work?

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Wednesday, January 20, 2010 10:45 AM
To: 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to figure out PROJECTIONS... Any suggestions or sites with 
examples that will help me here would be greatly appreciated.

Thanks
Kent 

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi]
Sent: Tuesday, January 19, 2

RE: [mapserver-users] RE: Images returning blank

2010-01-20 Thread Kent Morrison
One question I have is:
1. The PROJECTION settings from spatialreference.org for 
NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet is

  PROJECTION 
"proj=lcc"
"lat_1=47.5"
"lat_2=49.73"
"lat_0=47.0"
"lon_0=-120.83" 
"x_0=50.01"
"y_0=0"
"ellps=GRS80"
"to_meter=0.3048006096012192"
"no_defs"
  END

I can see where all the settings come fro mthe .PRJ file except for the x_0 and 
y_0, where did these come from?

I though tit might be the "False_Easting"/"False_Northing" settings but 
changing x_0 = 1640416.7 caused the images to disapear so that's not 
it. 


The .PRJ file is:

PROJCS["NAD_1983_HARN_StatePlane_Washington_North_FIPS_4601_Feet",
GEOGCS["GCS_North_American_1983_HARN",
DATUM["D_North_American_1983_HARN",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1640416.7],
PARAMETER["False_Northing",0.0],
PARAMETER["Central_Meridian",-120.8],
PARAMETER["Standard_Parallel_1",47.5],
PARAMETER["Standard_Parallel_2",48.73],
PARAMETER["Latitude_Of_Origin",47.0],
UNIT["Foot_US",0.3048006096012192]],

VERTCS["NAVD_1988",
VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],
PARAMETER["Direction",1.0],
UNIT["Foot_US",0.3048006096012192]]
 
I need to be able to create the PROJECTION settings from the .PRJ file. My 
application needs to allow users to upload shape files on their own. The 
PROJECTION settings is the last part.



-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] 
Sent: Wednesday, January 20, 2010 11:06 AM
To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

If you were just trying to display the data in a simple map, you could go 
without the projection info and still see something if you only wanted to 
display that layer.

Let's add a PROJECTION obj to your layer:

Take a look at http://spatialreference.org/ref/esri/102740/.  I am pretty sure 
that this is the spatial reference system (SRS) that your data is in.  

MapServer uses SRS definitions in Proj.4 format.  Here is a link to this SRS in 
Proj.4:  http://spatialreference.org/ref/esri/102740/proj4/

In your LAYER, add

PROJECTION
   "proj=lcc"
   "lat_1=28.38"
   "lat_2=30.283334"
   "lat_0=27.83"
   "lon_0=-99" 
   "x_0=60.01"
   "y_0=400"
   "ellps=GRS80"
   "datum=NAD83"
   "to_meter=0.3048006096012192"
   "no_defs"
END

Does this work?

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Wednesday, January 20, 2010 10:45 AM
To: 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to figure out PROJECTIONS... Any suggestions or sites with 
examples that will help me here would be greatly appreciated.

Thanks
Kent 

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi]
Sent: Tuesday, January 19, 2010 4:25 PM
To: Kent Morrison; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Images returning blank

Hi,

The non-working one is in some other projection than epsg:4326. You will get 
that layer visible by removing projection also from the MAP level and using the 
extents from ogrinfo, but in order to show both layers together you s

RE: [mapserver-users] query by point results in IE vs. Firefox

2010-01-20 Thread Lime, Steve D (DNR)
Anything browser related is most definitely an issue with your client 
environment/programming and not MapServer itself. Might be best to ask on that 
mailing list if one exists...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeanette McBride
Sent: Tuesday, January 19, 2010 5:30 PM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] query by point results in IE vs. Firefox

Query by point works fine in IE, but in Firefox it actually returns a point 
about half an inch (screen units) north of the one selected.  (see link below) 
Any ideas?  Thanks!  Jenny
http://www.plantconservation.us/map.phtml

___
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] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Stefan Schantz

Hello Carlos,
my CSV-file ans VRT-file looks like your examples:

My CSV is
x-utm,y-utm,Wert
  742226.,  5374978., 0.00E+00
  743422.,  5375072., 0.00E+00
  744620.,  5375166., 0.00E+00
...

and my VTR is

   
   /daten/csv/boden.csv
   wkbPoint
   
   


and as I wrote, ogr2ogr could read my vrt/csv data and transform it into 
a shapefile..


Stefan

Carlos Ruiz schrieb:

Check that you have your CSV like this:

Lat,Lng,House
48.1,0.25,"My house"
49.2,1.1,"My girlfriend's house"
47.5,0.75,"My mother in law's house"

And that you have your VTR like this:



[FILE]
wkbPoint
[YOUR SRS]



  
 
IC Carlos Ruiz



*From:* Stefan Schantz 
*To:* mapserver-users@lists.osgeo.org
*Sent:* Wed, January 20, 2010 9:32:12 AM
*Subject:* [mapserver-users] VRT / CSV data sources are not displayed 
in a layer


Hello List,

The following layer uses a CSV-file (together with a VRT-File (Virtual 
Format) ) as datasource . When I try to visualize the layer, nothing 
is shown (neither the data nor error messages; shp2img shows also nothing)


LAYER
  NAME "boden"
  DEBUG on
  STATUS ON
  TYPE POINT
# DATA "/daten/csv/boden/boden" # Datenquelle Shapefile
  CONNECTION  "/daten/csv/boden.vrt"
  CONNECTIONTYPE OGR

  PROJECTION
  "init=epsg:25832"
  END
METADATA
  "WMS_TITLE""test"
  "WMS_SRS"  "EPSG:25832"
  "WMS_ABSTRACT""test"
  "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'
  END

  CLASS
  NAME "test"
  STYLE
  SYMBOL "circle"
  SIZE 15  COLOR 90 90 90
  END
  END  END


But if I transform the CSV/VRT-file into a Shapefile  via ogr2ogr

ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden 
boden.vrt



the layer displays the data.
What is wrong with my VRT/CSV-datasource in the mapfile?

Thanks for any idea.

Best regards
Stefan
___
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] Contents of mapserver-users digest

2010-01-20 Thread Muammar (Mario) Manzanares
shp2img shows also nothing)

LAYER
    NAME "boden"
    DEBUG on
    STATUS ON
    TYPE POINT
# DATA "/daten/csv/boden/boden" # Datenquelle Shapefile
    CONNECTION  "/daten/csv/boden.vrt"
    CONNECTIONTYPE OGR

    PROJECTION
        "init=epsg:25832"
    END
      
    METADATA
        "WMS_TITLE"    "test"
        "WMS_SRS"  "EPSG:25832"
    "WMS_ABSTRACT"    "test"
        "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'
    END

        CLASS
          NAME "test"
          STYLE
                SYMBOL "circle"
                SIZE 15  
                COLOR 90 90 90
          END
        END          
END


But if I transform the CSV/VRT-file into a Shapefile  via ogr2ogr

ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt


the layer displays the data.
What is wrong with my VRT/CSV-datasource in the mapfile?

Thanks for any idea.

Best regards
Stefan


--

Message: 4
Date: Wed, 20 Jan 2010 08:20:10 -0800 (PST)
From: Carlos Ruiz 
Subject: Re: [mapserver-users] VRT / CSV data sources are not
    displayed in a    layer
To: Stefan Schantz , mapserver-users@lists.osgeo.org
Message-ID: <785497.50057...@web38201.mail.mud.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Check that you have your CSV like this:

Lat,Lng,House
48.1,0.25,"My house"
49.2,1.1,"My girlfriend's house"
47.5,0.75,"My mother in law's house"

And that you have your VTR like this:



    [FILE]
    wkbPoint
    [YOUR SRS]
    




IC Carlos Ruiz



From: Stefan Schantz 
To: mapserver-users@lists.osgeo.org
Sent: Wed, January 20, 2010 9:32:12 AM
Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer

Hello List,

The following layer uses a CSV-file (together with a VRT-File (Virtual Format) 
) as datasource . When I try to visualize the layer, nothing is shown (neither 
the data nor error messages; shp2img shows also nothing)

LAYER
  NAME "boden"
  DEBUG on
  STATUS ON
  TYPE POINT
# DATA "/daten/csv/boden/boden" # Datenquelle Shapefile
  CONNECTION  "/daten/csv/boden.vrt"
  CONNECTIONTYPE OGR

  PROJECTION
      "init=epsg:25832"
  END
        METADATA
      "WMS_TITLE"    "test"
      "WMS_SRS"  "EPSG:25832"
  "WMS_ABSTRACT"    "test"
      "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'
  END

      CLASS
          NAME "test"
          STYLE
              SYMBOL "circle"
              SIZE 15                  COLOR 90 90 90
          END
      END          END


But if I transform the CSV/VRT-file into a Shapefile  via ogr2ogr

ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt


the layer displays the data.
What is wrong with my VRT/CSV-datasource in the mapfile?

Thanks for any idea.

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



      
-- next part --
An HTML attachment was scrubbed...
URL: 
http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100120/1a7c10da/attachment-0001.html

--

Message: 5
Date: Wed, 20 Jan 2010 11:31:04 -0500
From: Christian Jauvin 
Subject: [mapserver-users] Announcement: Dracones,    a web mapping
    framework for MapServer
To: mapserver-users@lists.osgeo.org, ms4w-us...@lists.maptools.org,
    commun...@lists.gispython.org
Message-ID:
    
Content-Type: text/plain; charset=ISO-8859-1

Dear MapServer users,

I have created Dracones, a Python and JavaScript web mapping framework
based on MapServer, which I think could be of interest to the open
source web mapping/GIS community. It is available at:

http://surveillance.mcgill.ca/dracones

This framework began its life as a surveillance application for
Montreal Public Health. After a lot of refactoring sessions, I had the
idea of abstracting a set of core client/server services, that would
become the framework, and to rewrite the original application in terms
of those. Thus the set of features offered by Dracones stems from
pre-existing application needs, rather than the opposite.

In a nutshell, here is what Dracones provides..

On the client side:

* A lightweight but powerful map widget (100% JS), with state of the
art features like AJAX-based smooth scrolling and visual selection
* An extension mechanism to define new UI behaviors (e.g. what happens
when clicking on the map, or drawing a selection box around objects)

On the server side:

* A set of Python classes and functions (written on top of
Python-MapScript) that encapsulate the application state, and ease the
inter

RE: [mapserver-users] RE: Images returning blank

2010-01-20 Thread Kent Morrison
I am trying to display the data as a map layer that can overly a Vitural Earth 
map.

Some of my shape files that were not working before are now working where 
others are still not, but at least I now have a clue to what the heck I am 
doing!

I'll look at the links you sent me and try to figure out the other files.

Thanks!

Kent

-Original Message-
From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us] 
Sent: Wednesday, January 20, 2010 11:06 AM
To: Kent Morrison; 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

If you were just trying to display the data in a simple map, you could go 
without the projection info and still see something if you only wanted to 
display that layer.

Let's add a PROJECTION obj to your layer:

Take a look at http://spatialreference.org/ref/esri/102740/.  I am pretty sure 
that this is the spatial reference system (SRS) that your data is in.  

MapServer uses SRS definitions in Proj.4 format.  Here is a link to this SRS in 
Proj.4:  http://spatialreference.org/ref/esri/102740/proj4/

In your LAYER, add

PROJECTION
   "proj=lcc"
   "lat_1=28.38"
   "lat_2=30.283334"
   "lat_0=27.83"
   "lon_0=-99" 
   "x_0=60.01"
   "y_0=400"
   "ellps=GRS80"
   "datum=NAD83"
   "to_meter=0.3048006096012192"
   "no_defs"
END

Does this work?

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Wednesday, January 20, 2010 10:45 AM
To: 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to figure out PROJECTIONS... Any suggestions or sites with 
examples that will help me here would be greatly appreciated.

Thanks
Kent 

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi]
Sent: Tuesday, January 19, 2010 4:25 PM
To: Kent Morrison; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Images returning blank

Hi,

The non-working one is in some other projection than epsg:4326. You will get 
that layer visible by removing projection also from the MAP level and using the 
extents from ogrinfo, but in order to show both layers together you should know 
the correct projection for both datasets.
If projection is given at map level it must suit the extents.  Epsg:4326 and 
EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit.

-Jukka-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Kent Morrison
Lähetetty: ke 20.1.2010 0:14
Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users@lists.osgeo.org'
Aihe: [mapserver-users] RE: Images returning blank
 
I ran ogrinfo.exe on the non-working file.

C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200
7.shp trafficflow_2007 -so
INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp'
  using driver `ESRI Shapefile' successful.

Layer name: trafficflow_2007
Geometry: Line String
Feature Count: 4212
Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer 
SRS WKT:
(unknown)
CounterID: Integer (10.0)
Location: String (50.0)
StartDate: Date (10.0)
ADT_Total: Integer (10.0)
AWD_Total: Integer (10.0)
XCoord: Real (19.8)
YCoord: Real (19.8)
StreetID: String (16.0)
Shape_len: Real (19.11)


I added:

EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704

to the map file and changed the Layer Status to Default.

[Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 
21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) 
(-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 
msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 
201

RE: [mapserver-users] RE: Images returning blank

2010-01-20 Thread Fawcett, David (MPCA)
If you were just trying to display the data in a simple map, you could go 
without the projection info and still see something if you only wanted to 
display that layer.

Let's add a PROJECTION obj to your layer:

Take a look at http://spatialreference.org/ref/esri/102740/.  I am pretty sure 
that this is the spatial reference system (SRS) that your data is in.  

MapServer uses SRS definitions in Proj.4 format.  Here is a link to this SRS in 
Proj.4:  http://spatialreference.org/ref/esri/102740/proj4/

In your LAYER, add

PROJECTION
   "proj=lcc"
   "lat_1=28.38"
   "lat_2=30.283334"
   "lat_0=27.83"
   "lon_0=-99" 
   "x_0=60.01"
   "y_0=400"
   "ellps=GRS80"
   "datum=NAD83"
   "to_meter=0.3048006096012192"
   "no_defs"
END

Does this work?

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Kent Morrison
Sent: Wednesday, January 20, 2010 10:45 AM
To: 'Rahkonen Jukka'; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] RE: Images returning blank

Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to figure out PROJECTIONS... Any suggestions or sites with 
examples that will help me here would be greatly appreciated.

Thanks
Kent 

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: Tuesday, January 19, 2010 4:25 PM
To: Kent Morrison; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Images returning blank

Hi,

The non-working one is in some other projection than epsg:4326. You will get 
that layer visible by removing projection also from the MAP level and using the 
extents from ogrinfo, but in order to show both layers together you should know 
the correct projection for both datasets.
If projection is given at map level it must suit the extents.  Epsg:4326 and 
EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit.

-Jukka-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Kent Morrison
Lähetetty: ke 20.1.2010 0:14
Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users@lists.osgeo.org'
Aihe: [mapserver-users] RE: Images returning blank
 
I ran ogrinfo.exe on the non-working file.

C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200
7.shp trafficflow_2007 -so
INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp'
  using driver `ESRI Shapefile' successful.

Layer name: trafficflow_2007
Geometry: Line String
Feature Count: 4212
Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer 
SRS WKT:
(unknown)
CounterID: Integer (10.0)
Location: String (50.0)
StartDate: Date (10.0)
ADT_Total: Integer (10.0)
AWD_Total: Integer (10.0)
XCoord: Real (19.8)
YCoord: Real (19.8)
StreetID: String (16.0)
Shape_len: Real (19.11)


I added:

EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704

to the map file and changed the Layer Status to Default.

[Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 
21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) 
(-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 
msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 
2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 
2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 
msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv 
request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 
2010].822000 msFreeMap(): freeing map at 01A5AF10.

Still a blank image.

When I ran ogrinfo.exe on the working shapefile:


C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp 
-s o co48_d00
INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp'
  using drive

[mapserver-users] RE: Images returning blank

2010-01-20 Thread Kent Morrison
One thing I tried was to use the ogr2ogr tool to convert the files so they use 
the same projection.  I need to create an srs def ... any sites with examples 
or tutorials suggested?

The other alternative is to figure out how to create a PROJECTION element in 
the map file to match the shp file.  which I am also trying to learn.

thanks,

Kent




From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Tuesday, January 19, 2010 4:22 PM
To: Kent Morrison; 'mapserver-users@lists.osgeo.org'
Subject: RE: Images returning blank

I think that this is pretty obviously your problem.

Before you can transform between spatial reference systems (SRS), you need to 
know what the original SRS is.  To create VE image tiles, it needs to transform 
to 'Web Mercator'.  It can't do that if you don't correctly identify the SRS of 
your layer.

I believe that your lat/lon layer works because it is inheriting the projection 
from the MAP.  For your 'something else' layer, you will need to define the 
correct projection for that layer.

David.

From: Kent Morrison [mailto:kmorri...@advantrack.com]
Sent: Tuesday, January 19, 2010 4:15 PM
To: Fawcett, David (MPCA); 'mapserver-users@lists.osgeo.org'
Subject: RE: Images returning blank


The Extents on the working file are in lat/lon. In the non-working file it 
looks to be in something else.

I'm trying to return VE image tiles..


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


RE: [mapserver-users] RE: Images returning blank

2010-01-20 Thread Kent Morrison
Removing the PROJECTION from the trafficflow_2007 map results in the following 
error:

Cannot set new SRS on a map that doesn't have any projection set. Please 
make sure your mapfile has a PROJECTION defined at the top level.

So what I need to do is figure out how to setup the PROJECTION. Which I have no 
idea on.

The .prj file that can with the shp file is:

PROJCS["NAD_1983_StatePlane_Texas_South_Central_FIPS_4204_Feet",
GEOGCS["GCS_North_American_1983",
DATUM["D_North_American_1983",
SPHEROID["GRS_1980",6378137.0,298.257222101]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],

PROJECTION["Lambert_Conformal_Conic"],
PARAMETER["False_Easting",1968500.0],
PARAMETER["False_Northing",1312.],
PARAMETER["Central_Meridian",-99.0],
PARAMETER["Standard_Parallel_1",28.38],
PARAMETER["Standard_Parallel_2",30.283334],
PARAMETER["Latitude_Of_Origin",27.83],
UNIT["Foot_US",0.3048006096012192]]


So now I am trying to figure out PROJECTIONS... Any suggestions or sites with 
examples that will help me here would be greatly appreciated.

Thanks
Kent 

-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi] 
Sent: Tuesday, January 19, 2010 4:25 PM
To: Kent Morrison; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] RE: Images returning blank

Hi,

The non-working one is in some other projection than epsg:4326. You will get 
that layer visible by removing projection also from the MAP level and using the 
extents from ogrinfo, but in order to show both layers together you should know 
the correct projection for both datasets.
If projection is given at map level it must suit the extents.  Epsg:4326 and 
EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704 do not suit.

-Jukka-



-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Kent Morrison
Lähetetty: ke 20.1.2010 0:14
Vastaanottaja: 'Fawcett, David (MPCA)'; 'mapserver-users@lists.osgeo.org'
Aihe: [mapserver-users] RE: Images returning blank
 
I ran ogrinfo.exe on the non-working file.

C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\trafficflow_200
7.shp trafficflow_2007 -so
INFO: Open of `c:\mapserverdata\shapefiles\1\trafficflow_2007.shp'
  using driver `ESRI Shapefile' successful.

Layer name: trafficflow_2007
Geometry: Line String
Feature Count: 4212
Extent: (2460247.751004, 232706.929725) - (2507483.898985, 294550.472704) Layer 
SRS WKT:
(unknown)
CounterID: Integer (10.0)
Location: String (50.0)
StartDate: Date (10.0)
ADT_Total: Integer (10.0)
AWD_Total: Integer (10.0)
XCoord: Real (19.8)
YCoord: Real (19.8)
StreetID: String (16.0)
Shape_len: Real (19.11)


I added:

EXTENT 2460247.751004 232706.929725 2507483.898985 294550.472704

to the map file and changed the Layer Status to Default.

[Tue Jan 19 21:43:35 2010].791000 CGI Request 1 on process 2676 [Tue Jan 19 
21:43:35 2010].791000 msTileSetExtent (-13073784.538762, 6051371.431753) 
(-13071348.108486, 6053807.862029) [Tue Jan 19 21:43:35 2010].791000 
msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s [Tue Jan 19 21:43:35 
2010].791000 msDrawMap(): Drawing Label Cache, 0.000s [Tue Jan 19 21:43:35 
2010].791000 msDrawMap() total time: 0.000s [Tue Jan 19 21:43:35 2010].822000 
msSaveImage() total time: 0.031s [Tue Jan 19 21:43:35 2010].822000 mapserv 
request processing time (loadmap not incl.): 0.031s [Tue Jan 19 21:43:35 
2010].822000 msFreeMap(): freeing map at 01A5AF10.

Still a blank image.

When I ran ogrinfo.exe on the working shapefile:


C:\ms4w\tools\gdal-ogr>ogrinfo.exe c:\mapserverdata\shapefiles\1\co48_d00.shp 
-s o co48_d00
INFO: Open of `c:\mapserverdata\shapefiles\1\co48_d00.shp'
  using driver `ESRI Shapefile' successful.

Layer name: co48_d00
Geometry: Polygon
Feature Count: 265
Extent: (-106.645646, 25.837377) - (-93.516407, 36.500704) Layer SRS WKT:
(unknown)
AREA: Real (20.5)
PERIMETER: Real (20.5)
CO48_D00_: Real (11.0)
CO48_D00_I: Real (11.0)
STATE: String (2.0)
COUNTY: String (3.0)
NAME: String (90.0)
LSAD: String (2.0)
LSAD_TRANS: String (50.0)


The Extents on the working file are in lat/lon. In the non-working file it 
looks to be in something else.

I'm trying to return VE image tiles..

not sure where to go from here to get the first file to work.

Thanks


From: Fawcett, David (MPCA) [mailto:david.fawc...@state.mn.us]
Sent: Tuesday, January 19, 2010 3:28 PM
To: Kent Morrison; 'mapserver-users@lists.osgeo.org'
Subject: RE: Images returning blank



Based on the errors, it looks like you will need EXTENT to your map file at the 
MAP level.

What do you get when you run ogrinfo against the two shapefiles?  Any 
difference?

Are you adding a URL var for the layer name?  Try setting LAYER STATUS to 
DEFAULT for both layers and see if you get an ima

[mapserver-users] Announcement: Dracones, a web mapping framework for MapServer

2010-01-20 Thread Christian Jauvin
Dear MapServer users,

I have created Dracones, a Python and JavaScript web mapping framework
based on MapServer, which I think could be of interest to the open
source web mapping/GIS community. It is available at:

http://surveillance.mcgill.ca/dracones

This framework began its life as a surveillance application for
Montreal Public Health. After a lot of refactoring sessions, I had the
idea of abstracting a set of core client/server services, that would
become the framework, and to rewrite the original application in terms
of those. Thus the set of features offered by Dracones stems from
pre-existing application needs, rather than the opposite.

In a nutshell, here is what Dracones provides..

On the client side:

* A lightweight but powerful map widget (100% JS), with state of the
art features like AJAX-based smooth scrolling and visual selection
* An extension mechanism to define new UI behaviors (e.g. what happens
when clicking on the map, or drawing a selection box around objects)

On the server side:

* A set of Python classes and functions (written on top of
Python-MapScript) that encapsulate the application state, and ease the
interaction with its map objects
* A well-thought extension mechanism, to define custom requests and queries

Dracones also provides a bunch of other application-centric features,
like easy map image export and undo/redo. Last but not least, I've
been very careful in writing the documentation and tutorials, which I
think cover a wide range of issues and possibilities.

This work is still in Alpha stage, and I will be of course very
interested to hear the community's comments and suggestions.

Best regards,

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


Re: [mapserver-users] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Carlos Ruiz
Check that you have your CSV like this:

Lat,Lng,House
48.1,0.25,"My house"
49.2,1.1,"My girlfriend's house"
47.5,0.75,"My mother in law's house"

And that you have your VTR like this:



[FILE]
wkbPoint
[YOUR SRS]




 
IC Carlos Ruiz



From: Stefan Schantz 
To: mapserver-users@lists.osgeo.org
Sent: Wed, January 20, 2010 9:32:12 AM
Subject: [mapserver-users] VRT / CSV data sources are not displayed in a layer

Hello List,

The following layer uses a CSV-file (together with a VRT-File (Virtual Format) 
) as datasource . When I try to visualize the layer, nothing is shown (neither 
the data nor error messages; shp2img shows also nothing)

LAYER
   NAME "boden"
   DEBUG on
   STATUS ON
   TYPE POINT
# DATA "/daten/csv/boden/boden" # Datenquelle Shapefile
   CONNECTION   "/daten/csv/boden.vrt"
   CONNECTIONTYPE OGR

   PROJECTION
   "init=epsg:25832"
   END
 METADATA
   "WMS_TITLE""test"
   "WMS_SRS"   "EPSG:25832"
   "WMS_ABSTRACT""test"
   "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'
   END

   CLASS
  NAME "test"
  STYLE
   SYMBOL "circle"
   SIZE 15  COLOR 90 90 90
  END
   END   END


But if I transform the CSV/VRT-file into a Shapefile  via ogr2ogr

ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt


the layer displays the data.
What is wrong with my VRT/CSV-datasource in the mapfile?

Thanks for any idea.

Best regards
Stefan
___
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] VRT / CSV data sources are not displayed in a layer

2010-01-20 Thread Stefan Schantz

Hello List,

The following layer uses a CSV-file (together with a VRT-File (Virtual 
Format) ) as datasource . When I try to visualize the layer, nothing is 
shown (neither the data nor error messages; shp2img shows also nothing)


LAYER
   NAME "boden"
   DEBUG on
   STATUS ON
   TYPE POINT
# DATA "/daten/csv/boden/boden" # Datenquelle Shapefile
   CONNECTION   "/daten/csv/boden.vrt"
   CONNECTIONTYPE OGR

   PROJECTION
   "init=epsg:25832"
   END
  
   METADATA

   "WMS_TITLE""test"
   "WMS_SRS"   "EPSG:25832"
   "WMS_ABSTRACT""test"
   "WMS_FEATURE_INFO_MIME_TYPE" 'text/html'
   END

   CLASS
  NAME "test"
  STYLE
   SYMBOL "circle"
   SIZE 15   
   COLOR 90 90 90

  END
   END   
END



But if I transform the CSV/VRT-file into a Shapefile  via ogr2ogr

ogr2ogr -s_srs EPSG:25832 -t_srs EPSG:25832 -f "ESRI Shapefile" boden boden.vrt


the layer displays the data.
What is wrong with my VRT/CSV-datasource in the mapfile?

Thanks for any idea.

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


[mapserver-users] Re: 5.6.1 Postgis problem

2010-01-20 Thread Sandeep Kumar Chauhan

Hi Steve,

 Thanks for help, i changed my code according to your suggestion.

if (layer.queryByPoint(Map, point, (int)mapscript.MS_SINGLE, tolerance) ==
...
{
resultCacheObj result = layer.getResults();
if (result.numresults > 0)
{
resultCacheMemberObj rrr = result.getResult(0);
 shapeObj shape = new shapeObj((int)layer.type);
 layer.resultsGetShape(shape, rrr.shapeindex,
rrr.tileindex);
...
...
...
Now it is working fine. Again thanks for help

Thanks,
   -Sandeep 
-- 
View this message in context: 
http://n2.nabble.com/5-6-1-Postgis-problem-tp4392177p4426856.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] PHP MapScript pixel coordinates to map coordinates

2010-01-20 Thread Daniel Degasperi

Hi David,

have you already tried with this conversion:

$geo_x = $minx + (($pix_x / $map_width) * ($maxx- $minx));
$geo_y = $maxy - (($pix_y / $map_height) * ($maxy - $miny));

Daniel

Am 20.01.2010 04:57, schrieb Shorthouse, David:

Folks,

This question has no doubt been asked many times, but for the life of
me I cannot find a solution. Here's what I'm trying to do:

I have a jQuery-based front-end that uses the wonderful jcrop
extension (http://deepliquid.com/content/Jcrop.html) that helps
coordinate zoom. I'm hoping to use this same front-end to permit
cropping of a resultant map image, which means I need to pass the four
pixel corner coordinates, convert to map coordinates (projection may
be variable), then set the extent such that the resultant map image
will have the same dimensions as that described by the user on the
front-end. So, how can I convert pixel coordinates to map coordinates?
Note that the map projection is not always DD so I cannot merely use
proportions as I have seen in some solutions. Surely this is easier
than I am making it out to be.

Thanks for any advice,

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

   



--
  Daniel Degasperi
  Software Developer
  daniel.degasp...@r3-gis.com

---
  R3 GIS Srl
  Via Johann Kravogl 2
  I-39010 Merano - Sinigo (BZ)
  Tel. +39 0473 494949
  Fax. +39 0473 069902
  Web  http://www.r3-gis.com
-

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


[mapserver-users] lanczos in mapserver

2010-01-20 Thread Liang Jian
Hi,

Is that possible to use lanczos resample method in mapserver? I can find this 
option in GDAL but not in mapserver.
Thanks!

/Liang


Confidentiality Notice: This e-mail transmission may contain confidential or 
legally privileged information that is intended only
for the individual or entity named in the e-mail address. If you are not the 
intended recipient, you are hereby notified that any
disclosure, copying, distribution, or reliance upon the contents of this e-mail 
is strictly prohibited and may be unlawful. If you have received this e-mail in 
error, please notify the sender immediately by return e-mail and delete all 
copies of this message.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users