|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
virtual spatial dataHello list I need some help with de Virtual Spatial
Data I have this ovf and mapfile definition: <OGRVRTDataSource> <OGRVRTLayer
name=xy> <SrcDataSource>ODBC:@access</SrcDataSource>
<SrcSQL>SELECT * FROM XY</SrcSQL> <GeometryField
encoding='PointFromColumns' x='Long' y='Lat'/>
<GeometryType>wkbPoint</GeometryType> <LayerSRS>WGS84</LayerSRS> </OGRVRTLayer> </OGRVRTDataSource> LAYER CONNECTIONTYPE
OGR CONNECTION
"compress.ovf" DATA xy METADATA
"wms_srs" "4326"
"wms_title" "Compress" END NAME
"Compress" PROJECTION "init=epsg:4326" END SIZEUNITS PIXELS STATUS ON TOLERANCE 0 TOLERANCEUNITS
PIXELS TYPE POINT DUMP FALSE UNITS METERS CLASS NAME
"Compress"
STYLE
COLOR 255 0 0
MAXSIZE 100
MINSIZE 1
SIZE 6
SYMBOL "star" END END END With this
configuration the ogr test work, and is generated the image with shp2img . But it
doesn't work when I call it from my chameleon application. Can
anybody help me. Thanks!! _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: virtual spatial dataAlejandro Narvaez wrote:
> Hello list > > > > I need some help with de Virtual Spatial Data > > > > I have this ovf and mapfile definition: > > > > > > <OGRVRTDataSource> > > <OGRVRTLayer name=xy> > > <SrcDataSource>ODBC:@access</SrcDataSource> > > <SrcSQL>SELECT * FROM XY</SrcSQL> > > <GeometryField encoding='PointFromColumns' x='Long' y='Lat'/> > > <GeometryType>wkbPoint</GeometryType> > > <LayerSRS>WGS84</LayerSRS> > > </OGRVRTLayer> > > </OGRVRTDataSource> > > > > LAYER > > CONNECTIONTYPE OGR > > CONNECTION "compress.ovf" > > DATA xy > > METADATA > > "wms_srs" "4326" > > "wms_title" "Compress" > > END > > NAME "Compress" > > PROJECTION > > "init=epsg:4326" > > END > > SIZEUNITS PIXELS > > STATUS ON > > TOLERANCE 0 > > TOLERANCEUNITS PIXELS > > TYPE POINT > > DUMP FALSE > > UNITS METERS > > CLASS > > NAME "Compress" > > STYLE > > COLOR 255 0 0 > > MAXSIZE 100 > > MINSIZE 1 > > SIZE 6 > > SYMBOL "star" > > END > > END > > END > > > > With this configuration the ogr test work, and is generated the image > with shp2img . But it doesn't work when I call it from my chameleon > application. > Since your mapfile works with shp2img, your map should load in whatever MapServer-application environment you use. Maybe you should explain in detail what "doesn't work when I call it from my chameleon application" means. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
|
|
|
Re: RV: virtual spatial dataMore information about this
I test ovf file with ogrinfo and it is OK like with shp2img, but when I insert this url into Internet Explorer: http://127.0.0.1/fcgi-bin/mapserv.exe/?mode=map&map=map.map&LAYERS=Compress I receive this message: writeLog(): Unable to access file. /tmp/gmap.log msDrawMap(): Image handling error. Failed to draw layer named 'Compress'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `Compress'. Unable to initialize ODBC connection to DSN for @access. Any idea, Thanks Alejandro -----Mensaje original----- De: chameleon-bounces@... [mailto:chameleon-bounces@...] En nombre de Alejandro Narvaez Enviado el: Miércoles, 18 de Febrero de 2009 11:13 Para: chameleon@... Asunto: [Chameleon] RV: virtual spatial data When I introduce this layer into the mapfile the Chameleon application send this message: Error rendering map image: A fatal error occurred drawing the map -----Mensaje original----- De: chameleon-bounces@... [mailto:chameleon-bounces@...] En nombre de Jeff McKenna Enviado el: Martes, 17 de Febrero de 2009 15:01 Para: chameleon@... Asunto: Re: [Chameleon] virtual spatial data Alejandro Narvaez wrote: > Hello list > > > > I need some help with de Virtual Spatial Data > > > > I have this ovf and mapfile definition: > > > > > > <OGRVRTDataSource> > > <OGRVRTLayer name=xy> > > <SrcDataSource>ODBC:@access</SrcDataSource> > > <SrcSQL>SELECT * FROM XY</SrcSQL> > > <GeometryField encoding='PointFromColumns' x='Long' y='Lat'/> > > <GeometryType>wkbPoint</GeometryType> > > <LayerSRS>WGS84</LayerSRS> > > </OGRVRTLayer> > > </OGRVRTDataSource> > > > > LAYER > > CONNECTIONTYPE OGR > > CONNECTION "compress.ovf" > > DATA xy > > METADATA > > "wms_srs" "4326" > > "wms_title" "Compress" > > END > > NAME "Compress" > > PROJECTION > > "init=epsg:4326" > > END > > SIZEUNITS PIXELS > > STATUS ON > > TOLERANCE 0 > > TOLERANCEUNITS PIXELS > > TYPE POINT > > DUMP FALSE > > UNITS METERS > > CLASS > > NAME "Compress" > > STYLE > > COLOR 255 0 0 > > MAXSIZE 100 > > MINSIZE 1 > > SIZE 6 > > SYMBOL "star" > > END > > END > > END > > > > With this configuration the ogr test work, and is generated the image > with shp2img . But it doesn't work when I call it from my chameleon > application. > Since your mapfile works with shp2img, your map should load in whatever MapServer-application environment you use. Maybe you should explain in detail what "doesn't work when I call it from my chameleon application" means. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: RV: virtual spatial dataHi,
Did you try to run the Chameleon mapfile with shp2img? That will give you a more helpful error message. Julien Alejandro Narvaez wrote: > When I introduce this layer into the mapfile the Chameleon application > send this message: > > Error rendering map image: > A fatal error occurred drawing the map > > > > > > -----Mensaje original----- > De: chameleon-bounces@... > [mailto:chameleon-bounces@...] En nombre de Jeff McKenna > Enviado el: Martes, 17 de Febrero de 2009 15:01 > Para: chameleon@... > Asunto: Re: [Chameleon] virtual spatial data > > Alejandro Narvaez wrote: >> Hello list >> >> >> >> I need some help with de Virtual Spatial Data >> >> >> >> I have this ovf and mapfile definition: >> >> >> >> >> >> <OGRVRTDataSource> >> >> <OGRVRTLayer name=xy> >> >> <SrcDataSource>ODBC:@access</SrcDataSource> >> >> <SrcSQL>SELECT * FROM XY</SrcSQL> >> >> <GeometryField encoding='PointFromColumns' x='Long' y='Lat'/> >> >> <GeometryType>wkbPoint</GeometryType> >> >> <LayerSRS>WGS84</LayerSRS> >> >> </OGRVRTLayer> >> >> </OGRVRTDataSource> >> >> >> >> LAYER >> >> CONNECTIONTYPE OGR >> >> CONNECTION "compress.ovf" >> >> DATA xy >> >> METADATA >> >> "wms_srs" "4326" >> >> "wms_title" "Compress" >> >> END >> >> NAME "Compress" >> >> PROJECTION >> >> "init=epsg:4326" >> >> END >> >> SIZEUNITS PIXELS >> >> STATUS ON >> >> TOLERANCE 0 >> >> TOLERANCEUNITS PIXELS >> >> TYPE POINT >> >> DUMP FALSE >> >> UNITS METERS >> >> CLASS >> >> NAME "Compress" >> >> STYLE >> >> COLOR 255 0 0 >> >> MAXSIZE 100 >> >> MINSIZE 1 >> >> SIZE 6 >> >> SYMBOL "star" >> >> END >> >> END >> >> END >> >> >> >> With this configuration the ogr test work, and is generated the image >> with shp2img . But it doesn't work when I call it from my chameleon >> application. >> > > Since your mapfile works with shp2img, your map should load in whatever > MapServer-application environment you use. Maybe you should explain in > detail what "doesn't work when I call it from my chameleon application" > means. > > -jeff > > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: RV: virtual spatial dataYes, I tried and and I obtained a correct image of the map
-----Mensaje original----- De: Julien-Samuel Lacroix [mailto:jlacroix@...] Enviado el: Miércoles, 18 de Febrero de 2009 12:19 Para: Alejandro Narvaez CC: chameleon@... Asunto: Re: [Chameleon] RV: virtual spatial data Hi, Did you try to run the Chameleon mapfile with shp2img? That will give you a more helpful error message. Julien Alejandro Narvaez wrote: > When I introduce this layer into the mapfile the Chameleon application > send this message: > > Error rendering map image: > A fatal error occurred drawing the map > > > > > > -----Mensaje original----- > De: chameleon-bounces@... > [mailto:chameleon-bounces@...] En nombre de Jeff McKenna > Enviado el: Martes, 17 de Febrero de 2009 15:01 > Para: chameleon@... > Asunto: Re: [Chameleon] virtual spatial data > > Alejandro Narvaez wrote: >> Hello list >> >> >> >> I need some help with de Virtual Spatial Data >> >> >> >> I have this ovf and mapfile definition: >> >> >> >> >> >> <OGRVRTDataSource> >> >> <OGRVRTLayer name=xy> >> >> <SrcDataSource>ODBC:@access</SrcDataSource> >> >> <SrcSQL>SELECT * FROM XY</SrcSQL> >> >> <GeometryField encoding='PointFromColumns' x='Long' y='Lat'/> >> >> <GeometryType>wkbPoint</GeometryType> >> >> <LayerSRS>WGS84</LayerSRS> >> >> </OGRVRTLayer> >> >> </OGRVRTDataSource> >> >> >> >> LAYER >> >> CONNECTIONTYPE OGR >> >> CONNECTION "compress.ovf" >> >> DATA xy >> >> METADATA >> >> "wms_srs" "4326" >> >> "wms_title" "Compress" >> >> END >> >> NAME "Compress" >> >> PROJECTION >> >> "init=epsg:4326" >> >> END >> >> SIZEUNITS PIXELS >> >> STATUS ON >> >> TOLERANCE 0 >> >> TOLERANCEUNITS PIXELS >> >> TYPE POINT >> >> DUMP FALSE >> >> UNITS METERS >> >> CLASS >> >> NAME "Compress" >> >> STYLE >> >> COLOR 255 0 0 >> >> MAXSIZE 100 >> >> MINSIZE 1 >> >> SIZE 6 >> >> SYMBOL "star" >> >> END >> >> END >> >> END >> >> >> >> With this configuration the ogr test work, and is generated the image >> with shp2img . But it doesn't work when I call it from my chameleon >> application. >> > > Since your mapfile works with shp2img, your map should load in whatever > MapServer-application environment you use. Maybe you should explain in > detail what "doesn't work when I call it from my chameleon application" > means. > > -jeff > > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: RV: virtual spatial dataI have solved it. The problem was that I had created a User DSN and a System DSN with a same name. When erasing them and creating only a System DSN the problem was solved.
By Alejandro -----Mensaje original----- De: chameleon-bounces@... [mailto:chameleon-bounces@...] En nombre de Alejandro Narvaez Enviado el: Miércoles, 18 de Febrero de 2009 11:13 Para: chameleon@... Asunto: [Chameleon] RV: virtual spatial data When I introduce this layer into the mapfile the Chameleon application send this message: Error rendering map image: A fatal error occurred drawing the map -----Mensaje original----- De: chameleon-bounces@... [mailto:chameleon-bounces@...] En nombre de Jeff McKenna Enviado el: Martes, 17 de Febrero de 2009 15:01 Para: chameleon@... Asunto: Re: [Chameleon] virtual spatial data Alejandro Narvaez wrote: > Hello list > > > > I need some help with de Virtual Spatial Data > > > > I have this ovf and mapfile definition: > > > > > > <OGRVRTDataSource> > > <OGRVRTLayer name=xy> > > <SrcDataSource>ODBC:@access</SrcDataSource> > > <SrcSQL>SELECT * FROM XY</SrcSQL> > > <GeometryField encoding='PointFromColumns' x='Long' y='Lat'/> > > <GeometryType>wkbPoint</GeometryType> > > <LayerSRS>WGS84</LayerSRS> > > </OGRVRTLayer> > > </OGRVRTDataSource> > > > > LAYER > > CONNECTIONTYPE OGR > > CONNECTION "compress.ovf" > > DATA xy > > METADATA > > "wms_srs" "4326" > > "wms_title" "Compress" > > END > > NAME "Compress" > > PROJECTION > > "init=epsg:4326" > > END > > SIZEUNITS PIXELS > > STATUS ON > > TOLERANCE 0 > > TOLERANCEUNITS PIXELS > > TYPE POINT > > DUMP FALSE > > UNITS METERS > > CLASS > > NAME "Compress" > > STYLE > > COLOR 255 0 0 > > MAXSIZE 100 > > MINSIZE 1 > > SIZE 6 > > SYMBOL "star" > > END > > END > > END > > > > With this configuration the ogr test work, and is generated the image > with shp2img . But it doesn't work when I call it from my chameleon > application. > Since your mapfile works with shp2img, your map should load in whatever MapServer-application environment you use. Maybe you should explain in detail what "doesn't work when I call it from my chameleon application" means. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: RV: virtual spatial dataAlejandro Narvaez wrote:
> More information about this > > I test ovf file with ogrinfo and it is OK like with shp2img, but when I insert this url into Internet Explorer: http://127.0.0.1/fcgi-bin/mapserv.exe/?mode=map&map=map.map&LAYERS=Compress > > I receive this message: > > writeLog(): Unable to access file. /tmp/gmap.log msDrawMap(): Image handling error. Failed to draw layer named 'Compress'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `Compress'. Unable to initialize ODBC connection to DSN for @access. > Odd. You say that shp2img works for you but the application does not. The only thing I can think of is to make sure that you are using a System DSN. I also recommend that you go through this wiki page: http://trac.osgeo.org/mapserver/wiki/VirtualSpatialData -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
| Free embeddable forum powered by Nabble | Forum Help |