Revision 4167
Added by ben leinfelder over 16 years ago
src/edu/ucsb/nceas/metacat/spatial/SldFactory.java | ||
---|---|---|
117 | 117 |
|
118 | 118 |
try { |
119 | 119 |
String certPath = SystemUtil.getContextDir(); |
120 |
String filename = certPath + "data/styles/" + dataset; |
|
120 |
String filename = certPath + "/data/styles/" + dataset;
|
|
121 | 121 |
String sld = getSld(filename); |
122 | 122 |
System.out.println(sld); |
123 | 123 |
response.setContentType("text/xml"); |
src/edu/ucsb/nceas/metacat/spatial/SpatialFeatureSchema.java | ||
---|---|---|
53 | 53 |
pnfe.printStackTrace(); |
54 | 54 |
} |
55 | 55 |
} |
56 |
public static String polygonShpUri = certPath + "data/metacat_shps/data_bounds.shp"; |
|
57 |
public static String pointShpUri = certPath + "data/metacat_shps/data_points.shp"; |
|
56 |
public static String polygonShpUri = certPath + "/data/metacat_shps/data_bounds.shp";
|
|
57 |
public static String pointShpUri = certPath + "/data/metacat_shps/data_points.shp";
|
|
58 | 58 |
|
59 | 59 |
|
60 | 60 |
// EPSG for latlong coordinate system w/ WGS84 datum |
Also available in: Unified diff
include leading slash for path to the spatial files (context is given without a trailing slash)