[mapserver-users] Building maps without a .map using MapScript only

Rob Martinson cathode at nichebox.com
Thu Jul 5 13:43:09 EDT 2001


Thanks for such a quick reply. I'll add myself to Bugzilla and continue
playing with this. Maybe I'll experiment a bit with Mapscript in Perl to
see if I get the same results.

I have a small working sample of Spokane County (ctycu poly, water
polys, place polys and streets)based on TIGER 97 data and have had great
luck so far. Mapserver is fast! 

I do have one question though. Since SDE is the only db format available
currently I have to deal with shape files (and hopefully TAB if I can
get OGR working right). How does Mapserver (or does it) handle loading
layers outside of the current extent? If I have a single map with street
layers for the country by county or state and I zoom to an extent where
they should be displayed (to a place polygon for example) does Mapserver
attempt to load the street layer for the next county over if it's
included in the .map definition? It seems to me that it has no idea
where the extents are unless it does in fact load each layer so I'd like
to load layers dynamically based on the requested extent of the view. Am
I way off base here?

Rob Martinson
Nichebox - http://www.nichebox.com
Development - http://dev.nichebox.com 

> -----Original Message-----
> From: Daniel Morissette [mailto:morissette at dmsolutions.ca] 
> Sent: Thursday, July 05, 2001 8:21 PM
> To: Rob Martinson
> Cc: 'MapServer List'
> Subject: Re: [mapserver-users] Building maps without a .map 
> using MapScript only
> 
> 
> Rob Martinson wrote:
> > 
> > With the PHP library I'm using ms_newMapObj('') to return 
> an empty map 
> > object to work with. The Mapscript documentation states 
> that this will 
> > return an emtpy object, the PHP does not specifically state 
> this, but 
> > I get no errors at this line. After adding layers and 
> classes I get an 
> > error stating "Invalid Handle" whenever I attempt to call the draw 
> > method of the map using the above.
> > 
> > The same mapping functionality when I use an existing .map 
> file seem 
> > to work fine.
> > 
> 
> Rob,
> 
> I looked at the php_mapscript.c code quickly and I see no 
> reason why this wouldn't work.  It must be a bug that will 
> have to be looked into, hopefully before the 3.5 release.
> 
> I filed it in the bugzilla system as
>     http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=23
> You can add yourself to the CC: field in the bugzilla 
> interface if you want to be notified when the bug gets fixed.
> 
> Regards,
> -- 
> ------------------------------------------------------------
>  Daniel Morissette               morissette at dmsolutions.ca
>  DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
>   Don't put for tomorrow what you can do today, because if 
>       you enjoy it today you can do it again tomorrow.
> 




More information about the mapserver-users mailing list